:root {
    /* Amazon Modern Flat Palette */
    --amazon-navy: #232F3E;
    --amazon-blue: #131921;
    --amazon-orange: #FF9900;
    --amazon-orange-hover: #e68a00;
    --amazon-link: #007185;
    --bg-color: #F8F9F9;
    --card-bg: #FFFFFF;
    --text-primary: #111111;
    --text-secondary: #565959;
    --error-color: #c40000;
    --success-color: #067D62;
    --border-color: #D5D9D9;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    width: 100% !important;
    background-color: var(--amazon-blue) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
    color: white;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo span {
    color: var(--amazon-orange);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
    color: white;
}

.nav-profile:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-profile .user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.nav-profile i.fa-chevron-down {
    font-size: 0.7rem;
    color: white;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: none;
    z-index: 1001;
    overflow: hidden;
    padding: 0.5rem 0;
}

.dropdown-menu.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.7rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: background 0.1s;
}

.dropdown-item:hover {
    background-color: #f3f3f3;
}

.dropdown-item i {
    width: 16px;
    color: #565959;
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 0.5rem 0;
}

/* Footer Styles */
footer {
    background-color: var(--amazon-blue);
    color: #999;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 1px solid #333;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: var(--transition);
}

.btn-close:hover {
    color: var(--text-primary);
}

/* Utilities & Components */
.btn-primary {
    background-color: var(--amazon-orange);
    border: 1px solid #a88734;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--amazon-orange-hover);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f7fafa;
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #888C8C;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--amazon-link);
    box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.active {
    background: #e6f4ea;
    color: #1e7e34;
}

.badge.inactive {
    background: #fce8e6;
    color: #d93025;
}

.message {
    padding: 0.8rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

.message.error {
    background: #fce8e6;
    color: #c40000;
    border: 1px solid #f5c2c7;
    display: block;
}

.message.success {
    background: #e6f4ea;
    color: #067d62;
    border: 1px solid #badbcc;
    display: block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--amazon-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8f9f9;
    text-align: left;
    padding: 1rem;
    font-size: 0.85rem;
    color: #565959;
    border-bottom: 1px solid #eee;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.data-table tr:hover {
    background: #fafafa;
}

.action-link {
    color: var(--amazon-link);
    cursor: pointer;
    font-weight: 500;
}

.action-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1rem;
    }

    .header-right {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        background: var(--amazon-blue);
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 1.5rem;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .header-right.mobile-active {
        left: 0;
    }

    .mobile-only {
        display: block;
    }

    .toggle-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
}