/* Society ERP Theme Styles */

/* Login Page Styles */
.login-aside {
    min-height: 100vh;
}

.login-aside.bg-secondary-gradient {
    background: linear-gradient(135deg, #E67E22 0%, #D97706 100%);
    position: relative;
    overflow: hidden;
}

.login-aside.bg-secondary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.login-aside.bg-secondary-gradient > * {
    position: relative;
    z-index: 1;
}

.login-aside .title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-aside h3.title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.login-aside .subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.login-aside img {
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-top: 1.5rem;
}

.container-login {
    max-width: 450px;
    width: 100%;
    padding: 3rem 2.5rem !important;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    border: 1px solid #f0f0f0;
}

.container-login h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: #E67E22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #a0aec0;
}

.position-relative {
    position: relative;
}

.show-password {
    color: #718096;
    transition: color 0.2s ease;
}

.show-password:hover {
    color: #E67E22;
}

.link {
    color: #E67E22;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.link:hover {
    color: #D97706;
    text-decoration: none;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #E67E22;
    border-color: #E67E22;
}

.custom-control-label {
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-secondary {
    background: linear-gradient(135deg, #E67E22 0%, #D97706 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
    background: linear-gradient(135deg, #D97706 0%, #C65D00 100%);
}

.btn-secondary:active {
    transform: translateY(0);
}

.login-account {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.login-account .msg {
    color: #718096;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.alert-danger, .text-danger {
    background-color: #fed7d7;
    color: #c53030;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #c53030;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-action-d-flex {
    gap: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .login-aside {
        min-height: auto;
        padding: 3rem 2rem !important;
    }
    .login-aside.w-50 {
        width: 100% !important;
    }
    .container-login {
        margin: 2rem auto;
    }
}

@media (max-width: 576px) {
    .container-login {
        padding: 2rem 1.5rem !important;
        margin: 1rem;
    }
    .login-aside .title {
        font-size: 2rem;
    }
    .form-action-d-flex {
        flex-direction: column;
    }
    .btn-secondary {
        width: 100%;
        margin-top: 1rem;
    }
}

/* ============================================
   Application-wide Saffron Theme Overrides
   ============================================ */

/* Buttons - Primary & Secondary */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:disabled {
    background: #E67E22 !important;
    border-color: #E67E22 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #D97706 !important;
    border-color: #D97706 !important;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:disabled {
    background: #F97316 !important;
    border-color: #F97316 !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background: #EA580C !important;
    border-color: #EA580C !important;
}

/* Button Outlines */
.btn-outline-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    border-color: #E67E22 !important;
    color: #E67E22 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
    background: #E67E22 !important;
    color: #ffffff !important;
}

.btn-outline-secondary,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    border-color: #F97316 !important;
    color: #F97316 !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:active {
    background: #F97316 !important;
    color: #ffffff !important;
}

/* Links */
a,
a:link,
a:visited {
    color: #E67E22;
}

a:hover,
a:focus {
    color: #D97706;
}

/* Badges */
.badge-primary,
.badge.badge-primary {
    background-color: #E67E22 !important;
    color: #ffffff !important;
}

.badge-secondary,
.badge.badge-secondary {
    background-color: #F97316 !important;
    color: #ffffff !important;
}

/* Cards - Header Backgrounds */
.card-header.bg-primary {
    background-color: #E67E22 !important;
    color: #ffffff !important;
}

.card-header.bg-secondary {
    background-color: #F97316 !important;
    color: #ffffff !important;
}

/* Navigation & Sidebar */
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:hover {
    color: #E67E22 !important;
}

/* Sidebar Menu Styles - Saffron Theme */
/* Override layouts.scss hardcoded blue colors */
.sidebar .nav > .nav-item.active > a {
    background: #E67E22 !important;
    box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.1), 4px 4px 15px -5px rgba(230, 126, 34, 0.4) !important;
}

.sidebar .nav > .nav-item.active > a:before {
    background: #E67E22 !important;
}

.sidebar .nav > .nav-item.active:hover > a:before {
    background: #E67E22 !important;
}

.sidebar .nav > .nav-item.active > a p,
.sidebar .nav > .nav-item.active > a i,
.sidebar .nav > .nav-item.active > a .caret,
.sidebar .nav > .nav-item.active > a span {
    color: #ffffff !important;
}

.sidebar .nav > .nav-item.active a i {
    color: #ffffff !important;
}

.sidebar .nav > .nav-item.active > a[data-toggle=collapse][aria-expanded=true] i {
    color: #ffffff !important;
}

.sidebar .nav > .nav-item a[data-toggle=collapse][aria-expanded=true] i {
    color: #E67E22 !important;
}

.sidebar .nav > .nav-item a[data-toggle=collapse][aria-expanded=true]:before {
    background: #E67E22 !important;
}

/* Sidebar Hover States */
.sidebar .nav > .nav-item > a:hover,
.sidebar .nav > .nav-item > a:focus {
    background: rgba(230, 126, 34, 0.1) !important;
}

.sidebar .nav > .nav-item > a:hover p,
.sidebar .nav > .nav-item > a:focus p {
    color: #E67E22 !important;
    font-weight: 600 !important;
}

.sidebar .nav > .nav-item > a:hover i,
.sidebar .nav > .nav-item > a:focus i {
    color: #E67E22 !important;
}

/* Override hardcoded blue colors from layouts.scss */
.sidebar .nav > .nav-item.submenu > li > a i {
    color: rgba(230, 126, 34, 0.76) !important;
}

/* Sidebar Collapse/Expanded States */
.sidebar .nav > .nav-item > a[data-toggle=collapse][aria-expanded=true] {
    background: rgba(230, 126, 34, 0.1) !important;
}

.sidebar .nav > .nav-item > a[data-toggle=collapse][aria-expanded=true] p,
.sidebar .nav > .nav-item > a[data-toggle=collapse][aria-expanded=true] i {
    color: #E67E22 !important;
}

/* Sidebar Submenu Items */
.sidebar .nav .nav-collapse li.active > a,
.sidebar .nav .nav-collapse li.active > a .sub-item {
    color: #E67E22 !important;
    font-weight: 600 !important;
}

.sidebar .nav .nav-collapse li > a:hover,
.sidebar .nav .nav-collapse li > a:focus {
    background: rgba(230, 126, 34, 0.08) !important;
}

.sidebar .nav .nav-collapse li > a:hover .sub-item,
.sidebar .nav .nav-collapse li > a:focus .sub-item {
    color: #D97706 !important;
}

.sidebar .nav .nav-collapse li > a .sub-item:before {
    background: #E67E22 !important;
}

/* Sidebar Style 2 Specific */
.sidebar.sidebar-style-2 .nav .nav-item.active > a,
.sidebar.sidebar-style-2 .nav .nav-item.active > a:hover,
.sidebar.sidebar-style-2 .nav .nav-item.active > a:focus,
.sidebar.sidebar-style-2 .nav .nav-item.active > a[data-toggle=collapse][aria-expanded=true] {
    background: #E67E22 !important;
    box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.1), 4px 4px 15px -5px rgba(230, 126, 34, 0.4) !important;
}

.sidebar.sidebar-style-2 .nav .nav-item.active > a p,
.sidebar.sidebar-style-2 .nav .nav-item.active > a i,
.sidebar.sidebar-style-2 .nav .nav-item.active > a .caret {
    color: #ffffff !important;
}

.sidebar.sidebar-style-2 .nav .nav-item a:hover,
.sidebar.sidebar-style-2 .nav .nav-item a:focus,
.sidebar.sidebar-style-2 .nav .nav-item a[data-toggle=collapse][aria-expanded=true] {
    background: rgba(230, 126, 34, 0.12) !important;
}

.sidebar.sidebar-style-2 .nav .nav-item a:hover p,
.sidebar.sidebar-style-2 .nav .nav-item a:hover i,
.sidebar.sidebar-style-2 .nav .nav-item a:focus p,
.sidebar.sidebar-style-2 .nav .nav-item a:focus i,
.sidebar.sidebar-style-2 .nav .nav-item a[data-toggle=collapse][aria-expanded=true] p,
.sidebar.sidebar-style-2 .nav .nav-item a[data-toggle=collapse][aria-expanded=true] i {
    color: #E67E22 !important;
}

.sidebar.sidebar-style-2 .nav .nav-item .active a {
    background: rgba(230, 126, 34, 0.12) !important;
}

.sidebar.sidebar-style-2 .nav .nav-item .active a p,
.sidebar.sidebar-style-2 .nav .nav-item .active a i {
    color: #E67E22 !important;
}

/* Sidebar User Profile Section */
.sidebar .user .info a > span {
    color: #575962;
}

.sidebar .user .info a:hover > span {
    color: #E67E22;
}

.sidebar .user .info .link-collapse {
    color: #575962;
}

.sidebar .user .info .link-collapse:hover {
    color: #E67E22;
}

/* Sidebar Section Headers */
.sidebar .nav .nav-section .text-section {
    color: #727275;
}

/* Sidebar Icon Colors */
.sidebar .nav > .nav-item a i {
    color: #8d9498;
}

.sidebar .nav > .nav-item.active a i {
    color: #ffffff !important;
}

.sidebar .nav > .nav-item.submenu > li > a i {
    color: rgba(230, 126, 34, 0.76) !important;
}

/* Progress Bars */
.progress-bar.bg-primary {
    background-color: #E67E22 !important;
}

.progress-bar.bg-secondary {
    background-color: #F97316 !important;
}

/* Alerts */
.alert-primary {
    background-color: rgba(230, 126, 34, 0.08) !important;
    border-color: #E67E22 !important;
    color: #C65D00 !important;
}

.alert-secondary {
    background-color: rgba(249, 115, 22, 0.08) !important;
    border-color: #F97316 !important;
    color: #EA580C !important;
}

/* Form Elements */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #E67E22 !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.2) !important;
}

.form-check-input:checked {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
}

/* Pagination */
.page-link {
    color: #E67E22;
}

.page-link:hover {
    color: #D97706;
    background-color: rgba(230, 126, 34, 0.1);
}

.page-item.active .page-link {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
}

/* Dropdowns */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #E67E22 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(230, 126, 34, 0.1) !important;
    color: #D97706 !important;
}

/* Tabs */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #E67E22 !important;
    border-color: #E67E22 #E67E22 #fff !important;
}

.nav-tabs .nav-link:hover {
    border-color: rgba(230, 126, 34, 0.2) !important;
    color: #E67E22 !important;
}

/* Breadcrumbs */
.breadcrumb-item.active {
    color: #E67E22 !important;
}

/* Tables */
.table-primary,
.table-primary > th,
.table-primary > td {
    background-color: rgba(230, 126, 34, 0.08) !important;
    color: #C65D00 !important;
}

.table-secondary,
.table-secondary > th,
.table-secondary > td {
    background-color: rgba(249, 115, 22, 0.08) !important;
    color: #EA580C !important;
}

/* List Groups */
.list-group-item.active {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    background-color: rgba(230, 126, 34, 0.1) !important;
    color: #D97706 !important;
}

/* Modals */
.modal-header.bg-primary {
    background-color: #E67E22 !important;
    color: #ffffff !important;
}

/* Tooltips & Popovers */
.tooltip-inner {
    background-color: #E67E22 !important;
}

.popover-header {
    background-color: rgba(230, 126, 34, 0.1) !important;
    border-bottom-color: #E67E22 !important;
    color: #C65D00 !important;
}

/* Background Colors */
.bg-primary {
    background-color: #E67E22 !important;
}

.bg-secondary {
    background-color: #F97316 !important;
}

/* Text Colors */
.text-primary {
    color: #E67E22 !important;
}

.text-secondary {
    color: #F97316 !important;
}

/* Border Colors */
.border-primary {
    border-color: #E67E22 !important;
}

.border-secondary {
    border-color: #F97316 !important;
}

/* Custom Scrollbar (if using custom scrollbar) */
.simplebar-scrollbar::before {
    background-color: #E67E22 !important;
}

/* Charts & Graphs - Primary Color */
.chart-legend .legend-item.legend-primary .legend-marker {
    background-color: #E67E22 !important;
}

/* Timeline */
.timeline-item-primary .timeline-marker {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
}

/* Stats Cards */
.card-stats .card-header .card-icon {
    background: linear-gradient(135deg, #E67E22 0%, #D97706 100%) !important;
}

/* Select2 Dropdown (if used) */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #E67E22 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(230, 126, 34, 0.1) !important;
    color: #D97706 !important;
}

/* Datepicker & Timepicker */
.datepicker table tr td.active.active,
.datepicker table tr td.active.highlighted.active,
.datepicker table tr td.active.highlighted:active,
.datepicker table tr td.active:active {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
}

/* Switch/Toggle */
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
    background: #E67E22 !important;
}

/* Wizard Steps */
.wizard-container .wizard-card .moving-tab {
    background-color: #E67E22 !important;
}

/* Tags Input */
.bootstrap-tagsinput .tag {
    background-color: #E67E22 !important;
    color: #ffffff !important;
}

/* File Upload */
.dropzone .dz-preview .dz-success-mark,
.dropzone .dz-preview .dz-error-mark {
    background-color: #E67E22 !important;
}

/* Override compiled CSS hardcoded blue colors until SCSS is recompiled */
/* These override background: #1572E8 !important from compiled atlantis.css */
[style*="background: #1572E8"],
[style*="background-color: #1572E8"] {
    background: #E67E22 !important;
    background-color: #E67E22 !important;
}

/* Override all instances of #1572E8 in compiled CSS */
* {
    &[style*="#1572E8"] {
        background: #E67E22 !important;
        background-color: #E67E22 !important;
        border-color: #E67E22 !important;
        color: #E67E22 !important;
    }
}

/* Specific overrides for common patterns from compiled CSS */
.bg-primary,
.bg-primary2 {
    background-color: #E67E22 !important;
}

.bg-secondary,
.bg-secondary2 {
    background-color: #F97316 !important;
}

/* Override any remaining hardcoded blue backgrounds */
[class*="primary"][style*="#1572E8"],
[class*="secondary"][style*="#6861CE"] {
    background: #E67E22 !important;
    background-color: #E67E22 !important;
}

/* ============================================
   Text Shadow Utilities
   ============================================ */

/* Basic Text Shadow */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Light Text Shadow */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Medium Text Shadow */
.text-shadow-md {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Large Text Shadow */
.text-shadow-lg {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Extra Large Text Shadow */
.text-shadow-xl {
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Colored Text Shadow (Saffron) */
.text-shadow-primary {
    text-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
}

.text-shadow-secondary {
    text-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

/* White Text Shadow (for dark backgrounds) */
.text-shadow-white {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* Glow Effect */
.text-shadow-glow {
    text-shadow: 0 0 10px rgba(230, 126, 34, 0.5), 0 0 20px rgba(230, 126, 34, 0.3);
}

/* Multiple Shadows for Depth */
.text-shadow-depth {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 
                 0 2px 0 rgba(0, 0, 0, 0.1), 
                 0 3px 0 rgba(0, 0, 0, 0.1), 
                 0 4px 0 rgba(0, 0, 0, 0.1), 
                 0 5px 0 rgba(0, 0, 0, 0.1);
}

/* Soft Shadow for Headings */
h1.text-shadow, h2.text-shadow, h3.text-shadow, h4.text-shadow, h5.text-shadow, h6.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Button Text Shadow */
.btn.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Card Title Shadow */
.card-title.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation Text Shadow */
.nav-link.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Notification Styles - Saffron Theme
   ============================================ */

/* Notification Badge */
.navbar .navbar-nav .notification {
    background-color: #E67E22 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(230, 126, 34, 0.3) !important;
}

.navbar .navbar-nav .notification:hover {
    background-color: #D97706 !important;
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.4) !important;
}

/* Notification Dropdown */
.messages-notif-box,
.notif-box {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-title {
    color: #2d3748;
    font-weight: 600;
    border-bottom-color: #e2e8f0;
}

.dropdown-title a {
    color: #E67E22 !important;
}

.dropdown-title a:hover {
    color: #D97706 !important;
}

/* Notification Items */
.notif-center a:hover,
.messages-notif-box .notif-center a:hover {
    background: rgba(230, 126, 34, 0.08) !important;
}

.notif-center a .notif-content,
.messages-notif-box .notif-center a .notif-content {
    color: #4a5568;
}

.notif-center a:hover .notif-content,
.messages-notif-box .notif-center a:hover .notif-content {
    color: #E67E22;
}

/* Notification Icon Colors */
.notif-icon.notif-primary {
    background: #E67E22 !important;
    box-shadow: 0 2px 4px rgba(230, 126, 34, 0.3) !important;
}

.notif-icon.notif-secondary {
    background: #F97316 !important;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3) !important;
}

/* See All Link */
.see-all {
    color: #E67E22 !important;
    font-weight: 500;
}

.see-all:hover {
    color: #D97706 !important;
}

.see-all i {
    color: #E67E22;
    transition: transform 0.2s ease;
}

.see-all:hover i {
    color: #D97706;
    transform: translateX(3px);
}

/* Notification Envelope Icon */
.nav-link .fa-envelope.text-primary {
    color: #E67E22 !important;
}

.nav-link:hover .fa-envelope.text-primary {
    color: #D97706 !important;
}

