/* ========================================
   USER ACCOUNT LAYOUT STYLES
   ======================================== */

.account-page {
    padding: 40px 0;
    background: var(--bg-beige);
    min-height: calc(100vh - 200px);
}

.account-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.account-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.account-nav-item:hover {
    background: var(--bg-beige);
    color: var(--brand-primary);
}

.account-nav-item.active {
    background: var(--brand-primary);
    color: var(--white);
}

.account-nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.account-nav-divider {
    border: 0;
    border-top: 1px solid #E0E0E0;
    margin: 8px 0;
}

.account-nav-logout {
    color: var(--brand-primary);
}

.account-nav-logout:hover {
    background: #FEE;
}

.account-content {
    flex: 1;
    min-width: 0;
}

.account-card {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
}

.account-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 30px;
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.account-card-header .account-card-title {
    margin-bottom: 0;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    width: 180px;
    flex-shrink: 0;
    font-size: 14px;
    color: #6B6B6B;
    font-weight: 500;
}

.profile-value {
    flex: 1;
    font-size: 16px;
    color: var(--text-primary);
}

.profile-note {
    font-size: 14px;
    color: #6B6B6B;
    font-style: italic;
}

.section-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 24px;
    margin-bottom: 16px;
}

.section-heading:first-child {
    margin-top: 0;
}

/* Loading Container */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-primary);
}

.spinner-dark {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--brand-primary);
}

/* Logout Message */
.logout-message {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 30px;
}

/* Link Danger */
.link-danger {
    color: var(--brand-primary) !important;
}

/* Button Small */
.btn-sm {
    padding: 6px 16px;
    font-size: 14px;
}

/* Mobile Account Layout */
@media (max-width: 768px) {
    .account-page {
        padding: 20px 0;
    }

    .account-layout {
        flex-direction: column;
        gap: 20px;
    }

    .account-sidebar {
        width: 100%;
        padding: 15px;
    }

    .account-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .account-nav-item {
        padding: 10px 14px;
        font-size: 14px;
    }

    .account-nav-item span {
        display: none;
    }

    .account-nav-item i {
        margin: 0;
    }

    .account-nav-divider {
        display: none;
    }

    .account-content {
        width: 100%;
    }

    .account-card {
        padding: 20px;
    }

    .account-card-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .account-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .profile-row {
        flex-direction: column;
        gap: 4px;
    }

    .profile-label {
        width: 100%;
        font-size: 12px;
    }

    .profile-value {
        font-size: 15px;
    }
}

/* ========================================
   EMPLOYEES LIST STYLES
   ======================================== */

.employees-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.employee-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-beige);
    border-radius: 8px;
    transition: all 0.2s;
}

.employee-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.employee-card.employee-inactive {
    opacity: 0.6;
}

.employee-info {
    flex: 1;
    min-width: 0;
}

.employee-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.employee-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6B6B6B;
    margin-bottom: 4px;
}

.employee-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.employee-details i {
    font-size: 12px;
}

.employee-meta {
    font-size: 12px;
    color: #999;
}

.employee-meta .text-warning {
    color: #E67E22;
    font-weight: 500;
}

.employee-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 16px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-admin {
    background: var(--brand-primary);
    color: var(--white);
}

.badge-inactive {
    background: #E0E0E0;
    color: #666;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6B6B6B;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-dialog {
    background: var(--white);
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content {
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E0E0E0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    color: var(--text-primary);
}

.btn-close::before {
    content: "×";
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 8px 0;
}

.modal-body .text-muted {
    color: #6B6B6B;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #E0E0E0;
}

/* Button Variants */
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background: var(--brand-primary);
    color: var(--white);
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid #999;
    color: #666;
}

.btn-outline-secondary:hover {
    background: #F5F5F5;
    border-color: #666;
    color: var(--text-primary);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline-danger:hover {
    background: var(--brand-primary);
    color: var(--white);
}

.btn-danger {
    background: #DC3545;
    border-color: #DC3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #C82333;
    border-color: #BD2130;
}

/* Form Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-primary);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Form Description */
.form-description {
    font-size: 16px;
    color: #6B6B6B;
    margin-bottom: 24px;
}

/* Spinner Small */
.spinner-sm {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Mobile Employees */
@media (max-width: 768px) {
    .employee-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .employee-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .employee-details {
        flex-direction: column;
        gap: 4px;
    }

    .modal-dialog {
        margin: 0 16px;
    }
}

/* ========================================
   GDPR / DATA PROTECTION STYLES
   ======================================== */

.gdpr-intro {
    font-size: 16px;
    color: #6B6B6B;
    margin-bottom: 30px;
    line-height: 1.6;
}

.gdpr-section {
    margin-bottom: 24px;
}

.gdpr-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gdpr-section-title i {
    font-size: 20px;
    color: var(--brand-primary);
}

.gdpr-section-desc {
    font-size: 14px;
    color: #6B6B6B;
    margin-bottom: 16px;
    line-height: 1.6;
}

.gdpr-section-danger .gdpr-section-title i {
    color: #DC3545;
}

.gdpr-divider {
    border: 0;
    border-top: 1px solid #E0E0E0;
    margin: 30px 0;
}

.delete-form-container {
    background: #FFF8F8;
    border: 1px solid #FFDDDD;
    border-radius: 8px;
    padding: 24px;
    margin-top: 16px;
}

/* Account Deleted Page */
.account-deleted-container {
    text-align: center;
    padding: 40px 20px;
}

.account-deleted-icon {
    font-size: 64px;
    color: #28A745;
    margin-bottom: 20px;
}

.account-deleted-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.account-deleted-message {
    font-size: 16px;
    color: #6B6B6B;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Form Alert Warning */
.form-alert-warning {
    background: #FFF8E6;
    border: 1px solid #FFE0A3;
    color: #856404;
}

@media (max-width: 768px) {
    .gdpr-section-title {
        font-size: 16px;
    }

    .delete-form-container {
        padding: 16px;
    }

    .account-deleted-icon {
        font-size: 48px;
    }

    .account-deleted-title {
        font-size: 20px;
    }
}

/* ========================================
   VALIDATION STYLES
   ======================================== */

.validation-message {
    color: #DC3545;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.form-input:invalid,
.form-input.invalid {
    border-color: #DC3545;
}

.form-input:invalid:focus,
.form-input.invalid:focus {
    border-color: #DC3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* ========================================
   ADDRESSES LIST STYLES
   ======================================== */

.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-card {
    background: var(--bg-beige);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.address-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.address-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-primary {
    background: var(--brand-primary);
    color: var(--white);
}

.badge-secondary {
    background: #6C757D;
    color: var(--white);
}

.address-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.address-card-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.address-card-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .address-card {
        padding: 16px;
    }

    .address-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .address-card-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

