/* 
 * Premium UI Redesign CSS 
 * Exclusively scoped for enhanced UI interactions and layout
 */

/* ==========================================================
   Animated Background Keyframes
   ========================================================== */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================
   Login Page Scoped Styles
   ========================================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #f0f4f8, #e0e8f0, #c8d8e8, #f0f4f8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 40px 0;
    font-family: 'Montserrat', sans-serif;
}

.auth-section .auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.auth-section .auth-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    transition: all 0.3s ease;
}

.auth-section .auth-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.auth-section .auth-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 5px;
}

.auth-section .auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.auth-section .auth-tab.active {
    background: #fff;
    color: #288495;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.auth-section .auth-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-section .auth-tab-content.active {
    display: block;
    opacity: 1;
}

.auth-section h3 {
    color: #333;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 24px;
}

.auth-section p {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-section .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-section .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
    font-size: 13px;
}

.auth-section .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-section .form-group input:focus {
    outline: none;
    border-color: #288495;
    box-shadow: 0 0 0 3px rgba(40, 132, 149, 0.15);
    background: #fff;
}

.auth-section .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.auth-section .form-options a {
    color: #288495;
    text-decoration: none;
    font-weight: 600;
}

.auth-section .btn.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #288495, #1d6573);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 132, 149, 0.3);
}

.auth-section .btn.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 132, 149, 0.4);
    background: linear-gradient(135deg, #1d6573, #154c57);
}

.auth-section .auth-footer {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.auth-section .auth-footer p {
    margin-bottom: 0;
}

.auth-section .auth-footer a {
    color: #288495;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================
   Dashboard Page Scoped Styles
   ========================================================== */
.user-dashboard-area {
    padding: 50px 0;
    background-color: #f7f9fc;
}

.dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.dash-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border-top: 4px solid transparent;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dash-card.primary { border-top-color: #288495; }
.dash-card.primary-dark { border-top-color: #1d6573; }
.dash-card.secondary { border-top-color: #4da6b7; }
.dash-card.secondary-dark { border-top-color: #f39c12; }
.dash-card.complement { border-top-color: #8e44ad; }

.dash-icon {
    font-size: 36px;
    color: #288495;
    margin-bottom: 15px;
}

.dash-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.dash-text p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.dash-arrow {
    margin-top: 15px;
    font-size: 20px;
    color: #999;
    align-self: flex-end;
    transition: color 0.3s ease;
}

.dash-card:hover .dash-arrow {
    color: #288495;
}

/* Sidebar Styles */
.user-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
}

.user-sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.user-sidebar-menu a i {
    font-size: 20px;
    margin-right: 15px;
    color: #888;
    transition: color 0.3s ease;
    width: 25px;
    text-align: center;
}

.user-sidebar-menu a:hover, .user-sidebar-menu a.active {
    background: #f0f7f9;
    color: #288495;
    border-left-color: #288495;
}

.user-sidebar-menu a:hover i, .user-sidebar-menu a.active i {
    color: #288495;
}

/* Layout Grid */
.user-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

@media (max-width: 1200px) {
    .user-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Header and Footer Scoped Styles
   ========================================================== */
.admin-wrapper .header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-wrapper #footer {
    background: #111;
    color: #eee;
    padding: 60px 0 30px;
}

.admin-wrapper .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.admin-wrapper .footer-grid h4 {
    color: #288495;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-wrapper .footer-grid a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    font-size: 14px;
}

.admin-wrapper .footer-grid a:hover {
    color: #288495;
}

.admin-wrapper .footer-grid .socials span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-wrapper .footer-grid .socials span:hover {
    background: #288495;
    transform: translateY(-3px);
}

.admin-wrapper .footer-grid .copy {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .auth-section .auth-card {
        padding: 25px;
        margin: 0 15px;
    }
}

/* Additional Responsive Scopes */
@media (max-width: 480px) {
    .auth-section .auth-card {
        padding: 20px;
        margin: 0 10px;
    }
    .auth-section h3 { font-size: 20px; }
    .dashboard-cards-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 360px) {
    .auth-section .auth-tabs { flex-direction: column; }
    .auth-section .auth-tab { margin-bottom: 5px; }
}

/* ==========================================================
   Header Alignment & Logout Button Fixes
   ========================================================== */
.admin-wrapper header {
    height: auto !important;
    min-height: 80px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
}

.admin-wrapper .header-tools {
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: 0 !important;
}

.admin-wrapper .hamb {
    margin-top: 0 !important;
    align-self: center !important;
}

.admin-wrapper .header-greeting {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.admin-wrapper .header-auth-btn {
    background: #e74c3c;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-wrapper .header-auth-btn:hover {
    background: #c0392b;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

/* ==========================================================
   Breadcrumb Fixes
   ========================================================== */
.user-breadcrumb-area {
    padding-top: 20px;
    background-color: #f7f9fc;
}

.user-breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: -10px;
}

.user-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-breadcrumb ol li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.user-breadcrumb ol li::after {
    content: "\203A";
    margin-left: 12px;
    color: #999;
    font-size: 16px;
    line-height: 1;
}

.user-breadcrumb ol li:last-child::after {
    display: none;
}

.user-breadcrumb ol li a {
    color: #288495;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.user-breadcrumb ol li a:hover {
    color: #1d6573;
}

.user-breadcrumb-actions a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-breadcrumb-actions a::before {
    content: "\f2a8"; /* ion-log-out if using ionicons */
    font-family: "Ionicons";
}

/* ==========================================================
   Quick Tips Card Redesign
   ========================================================== */
.quick-tips-box {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 32px;
    margin-top: 35px;
    border-left: 6px solid #288495;
    transition: box-shadow 0.3s ease;
}

.quick-tips-box:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.quick-tips-box h4 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #333;
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-tips-box h4 i {
    color: #288495;
    font-size: 28px;
    line-height: 1;
}

.quick-tips-box ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-tips-box li {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f7f9fc;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-tips-box li::before {
    content: "\f121"; /* ion-checkmark-circled */
    font-family: "Ionicons";
    font-size: 22px;
    color: #288495;
    margin-right: 15px;
    line-height: 1;
}

.quick-tips-box li:hover {
    background: #ffffff;
    border-color: rgba(40, 132, 149, 0.15);
    box-shadow: 0 5px 15px rgba(40, 132, 149, 0.06);
    transform: translateX(6px);
    color: #288495;
}

/* Responsive Quick Tips */
@media (max-width: 768px) {
    .quick-tips-box {
        padding: 24px;
        margin-top: 25px;
    }
    .quick-tips-box li {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* ==========================================================
   Professional Banking Stepper (Wizard)
   ========================================================== */
.wizard-progress-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0;
    margin-bottom: 40px;
    margin-top: 20px;
}

.wizard-progress-wrapper::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
    text-align: center;
}

.wizard-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    margin-bottom: 12px;
    border: 4px solid #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wizard-step-label {
    font-size: 13px;
    font-weight: 700;
    max-width: 100px;
    line-height: 1.3;
}

/* Default state (Completed Steps) */
.wizard-step .wizard-step-num {
    background: #2ecc71;
    font-size: 0;
    color: transparent;
}
.wizard-step .wizard-step-num::after {
    content: "\f122";
    font-family: "Ionicons";
    font-size: 20px;
    color: #fff;
}
.wizard-step .wizard-step-label {
    color: #2ecc71;
}

/* Current Step (Active) */
.wizard-step.active .wizard-step-num {
    background: #288495;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(40, 132, 149, 0.2);
}
.wizard-step.active .wizard-step-num::after {
    display: none;
}
.wizard-step.active .wizard-step-label {
    color: #288495;
    font-weight: 900;
}

/* Upcoming Steps (Siblings after Active) */
.wizard-step.active ~ .wizard-step .wizard-step-num {
    background: #e0e0e0;
    font-size: 16px;
    color: #777;
}
.wizard-step.active ~ .wizard-step .wizard-step-num::after {
    display: none;
}
.wizard-step.active ~ .wizard-step .wizard-step-label {
    color: #999;
}

@media (max-width: 768px) {
    .wizard-progress-wrapper {
        overflow-x: auto;
        padding-bottom: 15px;
        justify-content: flex-start;
    }
    .wizard-step {
        flex: 0 0 120px;
    }
    .wizard-progress-wrapper::before {
        right: auto;
        width: 800px;
    }
}

/* ==========================================================
   Premium Form Card Redesign
   ========================================================== */
.premium-form-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    padding: 32px !important;
    border-top: 5px solid #288495 !important;
    margin-bottom: 30px !important;
}

.premium-form-card h2 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #222 !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.premium-form-card .text-muted {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 24px !important;
}

.premium-divider {
    border: 0 !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    margin: 20px 0 30px 0 !important;
}

.premium-form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .premium-form-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }
}

/* ==========================================================
   Inputs, Labels & Select2
   ========================================================== */
.premium-form-card .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.premium-form-card .form-group label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #444 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.premium-form-card .form-control, .premium-form-card .form-control[type="text"], .form-control[type="email"], .form-control[type="number"], .form-control[type="tel"], .form-control[type="date"] {
    height: 48px !important;
    padding: 10px 16px !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #333 !important;
    background-color: #fcfcfc !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
    line-height: normal !important;
}

.premium-form-card .form-control:focus {
    border-color: #288495 !important;
    box-shadow: 0 0 0 4px rgba(40, 132, 149, 0.12) !important;
    outline: none !important;
    background-color: #fff !important;
}

.premium-form-card textarea.form-control {
    height: auto !important;
    min-height: 120px !important;
    resize: vertical;
}

/* Select2 Premium Override */
.premium-form-card .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 8px !important;
    background-color: #fcfcfc !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.premium-form-card .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #288495 !important;
    box-shadow: 0 0 0 4px rgba(40, 132, 149, 0.12) !important;
    background-color: #fff !important;
}

.premium-form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 16px !important;
    color: #333 !important;
    font-size: 15px !important;
    line-height: normal !important;
}

.premium-form-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

/* ==========================================================
   Buttons
   ========================================================== */
.premium-form-card .btn-primary, .premium-form-card button[type="submit"] {
    background: linear-gradient(135deg, #288495, #1d6573) !important;
    border: none !important;
    height: 48px !important;
    padding: 0 36px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 5px 15px rgba(40, 132, 149, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.premium-form-card .btn-primary:hover, .premium-form-card button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(40, 132, 149, 0.35) !important;
}

/* ==========================================================
   Validation Alerts
   ========================================================== */
.premium-form-card .alert-danger {
    margin-bottom: 24px !important;
    border-radius: 8px !important;
    border-left: 5px solid #d9534f !important;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.1) !important;
}

/* Fix sidebar to match dashboard */
.user-sidebar {
    border-radius: 18px !important;
}

/* ==========================================================
   Auth Card Width & Layout Enhancements (Premium Login/Register)
   ========================================================== */
/* Desktop */
.auth-section .auth-card {
    width: 620px !important;
    max-width: 95% !important;
    padding: 48px !important;
    border-radius: 22px !important;
}

/* Tablet */
@media (max-width: 1200px) {
    .auth-section .auth-card {
        width: 520px !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .auth-section .auth-card {
        width: 95% !important;
        padding: 30px !important;
    }
}

/* ==========================================================
   Input Design Override
   ========================================================== */
.auth-section .form-group input {
    height: 52px !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
}

/* ==========================================================
   Button Design Override
   ========================================================== */
.auth-section .btn.auth-btn {
    height: 54px !important;
    width: 100% !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

/* ==========================================================
   Spacing Adjustments
   ========================================================== */
.auth-section h3 {
    margin-bottom: 8px !important;
}
.auth-section p {
    margin-bottom: 30px !important;
}
.auth-section .form-group label {
    margin-bottom: 8px !important;
}
#register-tab .form-group {
    margin-bottom: 0 !important; /* Rely on grid gap */
}
#login-tab .form-group {
    margin-bottom: 24px !important;
}

/* ==========================================================
   Two-Column Register Layout (Using FLEXBOX instead of Grid)
   ========================================================== */
#register-tab form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px 24px !important; 
}

/* Row 1: First Name & Last Name (Already in .form-row) */
#register-tab .form-row {
    width: 100% !important;
    display: flex !important;
    gap: 24px !important;
    margin: 0 !important;
}

#register-tab .form-row .form-group.half {
    flex: 1 !important;
    width: auto !important;
}

/* Row 2: Identity & Email */
#register-tab .form-group:nth-of-type(2), /* Identity Number */
#register-tab .form-group:nth-of-type(3)  /* Email Address */ {
    width: calc(50% - 12px) !important;
    flex: 0 0 calc(50% - 12px) !important;
}

/* Row 3: Password */
#register-tab form > .form-group:last-of-type {
    width: 100% !important;
    flex: 0 0 100% !important;
}

#register-tab button {
    width: 100% !important;
    margin-top: 10px !important;
}

/* Mobile Fallback */
@media (max-width: 768px) {
    #register-tab .form-row {
        flex-direction: column !important;
        gap: 16px !important;
    }
    #register-tab .form-group:nth-of-type(2),
    #register-tab .form-group:nth-of-type(3) {
        width: 100% !important;
}

.premium-form-card textarea.form-control {
    height: auto !important;
    min-height: 120px !important;
    resize: vertical;
}

/* Select2 Premium Override */
.premium-form-card .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 8px !important;
    background-color: #fcfcfc !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.premium-form-card .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #288495 !important;
    box-shadow: 0 0 0 4px rgba(40, 132, 149, 0.12) !important;
    background-color: #fff !important;
}

.premium-form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 16px !important;
    color: #333 !important;
    font-size: 15px !important;
    line-height: normal !important;
}

.premium-form-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

/* ==========================================================
   Buttons
   ========================================================== */
.premium-form-card .btn-primary, .premium-form-card button[type="submit"] {
    background: linear-gradient(135deg, #288495, #1d6573) !important;
    border: none !important;
    height: 48px !important;
    padding: 0 36px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 5px 15px rgba(40, 132, 149, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.premium-form-card .btn-primary:hover, .premium-form-card button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(40, 132, 149, 0.35) !important;
}

/* ==========================================================
   Validation Alerts
   ========================================================== */
.premium-form-card .alert-danger {
    margin-bottom: 24px !important;
    border-radius: 8px !important;
    border-left: 5px solid #d9534f !important;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.1) !important;
}

/* Fix sidebar to match dashboard */
.user-sidebar {
    border-radius: 18px !important;
}

/* ==========================================================
   Auth Card Width & Layout Enhancements (Premium Login/Register)
   ========================================================== */
/* Desktop */
.auth-section .auth-card {
    width: 620px !important;
    max-width: 95% !important;
    padding: 48px !important;
    border-radius: 22px !important;
}

/* Tablet */
@media (max-width: 1200px) {
    .auth-section .auth-card {
        width: 520px !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .auth-section .auth-card {
        width: 95% !important;
        padding: 30px !important;
    }
}

/* ==========================================================
   Input Design Override
   ========================================================== */
.auth-section .form-group input {
    height: 52px !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
}

/* ==========================================================
   Button Design Override
   ========================================================== */
.auth-section .btn.auth-btn {
    height: 54px !important;
    width: 100% !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

/* ==========================================================
   Spacing Adjustments
   ========================================================== */
.auth-section h3 {
    margin-bottom: 8px !important;
}
.auth-section p {
    margin-bottom: 30px !important;
}
.auth-section .form-group label {
    margin-bottom: 8px !important;
}
#register-tab .form-group {
    margin-bottom: 0 !important; /* Rely on grid gap */
}
#login-tab .form-group {
    margin-bottom: 24px !important;
}

/* ==========================================================
   Two-Column Register Layout (Using FLEXBOX instead of Grid)
   ========================================================== */
#register-tab form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px 24px !important; 
}

/* Row 1: First Name & Last Name (Already in .form-row) */
#register-tab .form-row {
    width: 100% !important;
    display: flex !important;
    gap: 24px !important;
    margin: 0 !important;
}

#register-tab .form-row .form-group.half {
    flex: 1 !important;
    width: auto !important;
}

/* Row 2: Identity & Email */
#register-tab .form-group:nth-of-type(2), /* Identity Number */
#register-tab .form-group:nth-of-type(3)  /* Email Address */ {
    width: calc(50% - 12px) !important;
    flex: 0 0 calc(50% - 12px) !important;
}

/* Row 3: Password */
#register-tab form > .form-group:last-of-type {
    width: 100% !important;
    flex: 0 0 100% !important;
}

#register-tab button {
    width: 100% !important;
    margin-top: 10px !important;
}

/* Mobile Fallback */
@media (max-width: 768px) {
    #register-tab .form-row {
        flex-direction: column !important;
        gap: 16px !important;
    }
    #register-tab .form-group:nth-of-type(2),
    #register-tab .form-group:nth-of-type(3) {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}


/* ==========================================================
   Helper Classes
   ========================================================== */
.text-danger {
    color: #dc3545 !important;
}

/* ==========================================================
   Mobile Responsive Header Fix (320px - 560px)
   ========================================================== */
@media (max-width: 560px) {
    .header header {
        height: auto !important;
        min-height: 80px !important;
        flex-wrap: wrap !important;
        padding-top: 15px !important;
        padding-bottom: 20px !important;
        gap: 15px !important;
    }
    
    .header .header-logo {
        width: 180px !important;
        max-width: 100% !important;
        padding-top: 0 !important;
    }

    .header-tools {
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 15px !important;
        margin: 0 !important;
    }

    /* Target the inline-flex div wrapping the user info/links */
    .header-tools > div {
        flex: 1 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px 15px !important;
        margin: 0 !important;
        justify-content: flex-start !important;
    }
    
    .header-tools .header-greeting {
        width: 100% !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

    .header-tools .login-link {
        padding-top: 0 !important;
        margin: 0 !important;
    }

    .hamb {
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}
