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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f6cdcd 0%, #e6b5b5 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body.modern-layout {
    background: linear-gradient(135deg, #f6cdcd 0%, #e6b5b5 100%);
    padding: 0;
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) { left: 5%; animation: snowfall1 10s linear infinite; font-size: 0.8em; }
.snowflake:nth-child(2) { left: 15%; animation: snowfall2 12s linear infinite 2s; font-size: 1.2em; }
.snowflake:nth-child(3) { left: 25%; animation: snowfall3 8s linear infinite 4s; font-size: 1em; }
.snowflake:nth-child(4) { left: 35%; animation: snowfall4 11s linear infinite 1s; font-size: 1.5em; }
.snowflake:nth-child(5) { left: 45%; animation: snowfall5 9s linear infinite 3s; font-size: 0.9em; }
.snowflake:nth-child(6) { left: 55%; animation: snowfall6 13s linear infinite 5s; font-size: 1.1em; }
.snowflake:nth-child(7) { left: 65%; animation: snowfall1 10s linear infinite 2.5s; font-size: 1.3em; }
.snowflake:nth-child(8) { left: 75%; animation: snowfall2 11s linear infinite 4.5s; font-size: 0.85em; }
.snowflake:nth-child(9) { left: 85%; animation: snowfall3 9s linear infinite 1.5s; font-size: 1.4em; }
.snowflake:nth-child(10) { left: 95%; animation: snowfall4 12s linear infinite 3.5s; font-size: 1em; }

@keyframes snowfall1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 100vh); }
}

@keyframes snowfall2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 100vh); }
}

@keyframes snowfall3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 100vh); }
}

@keyframes snowfall4 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 100vh); }
}

@keyframes snowfall5 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 100vh); }
}

@keyframes snowfall6 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, 100vh); }
}

.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    font-size: 1.5rem;
    border: 3px solid white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
}

.music-toggle.playing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.top-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    background: #f5f5f5;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.nav-btn:hover {
    background: #e8e8e8;
}

.nav-btn.active {
    background: #e8e8e8;
    color: #333;
}

.nav-btn-primary {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    background: #dc3545;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.nav-btn-primary:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.hero-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.filter-bar {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-icon {
    font-size: 1.2rem;
}

.filter-form-modern {
    display: flex;
    align-items: center;
}

.filter-select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.filter-select:focus {
    outline: none;
    border-color: #c41e3a;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.wishlist-modern-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wishlist-modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.employee-name-modern {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.header-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.dept-badge-modern {
    background: #f5f5f5;
    color: #555;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.gender-badge-modern {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.items-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.item-modern {
    display: flex;
    gap: 0.75rem;
}
wishlist-modern-card
.item-border {
    width: 3px;
    background: #dc3545;
    border-radius: 2px;
    flex-shrink: 0;
}

.item-content-modern {
    flex: 1;
}
.item-desc-modern.fixed p {
    overflow-wrap: break-word;
    word-wrap: break-word;

    /* Adds a hyphen where the word breaks */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

.item-title-modern {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.375rem;
}

.item-desc-modern {
    font-size: 0.9rem;
    color: #666;
    line-height: 3;
    margin: 0;
    width: 200px;
}

.item-desc-modern-auto{
    word-break: break-all;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.price-badge {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.category-badge {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.status-badge {
    border: 1px solid;
}

.status-available {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.status-purchased {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffe0b2;
}

.status-out-of-stock {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    grid-column: 1 / -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.login-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 100px auto;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wishlist-card {
    background: linear-gradient(to right, #fff 0%, #f8f9fa 100%);
    border-left: 5px solid #c41e3a;
}

h1 {
    color: #c41e3a;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

h2 {
    color: #165b33;
    margin-bottom: 20px;
    font-size: 1.5em;
}

h3 {
    color: #333;
    margin-bottom: 10px;
}

.header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.header p {
    margin: 10px 0;
    color: #666;
}

.nav-links {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #c41e3a;
}

textarea {
    resize: vertical;
    font-family: inherit;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn-primary {
    background: #c41e3a;
    color: white;
}

.btn-primary:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: #165b33;
    color: white;
}

.btn-secondary:hover {
    background: #0f4123;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 91, 51, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.links {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.links a {
    color: #c41e3a;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.wishlist-items {
    margin-top: 20px;
}

.wishlist-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #c41e3a;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.view-wishlist-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #165b33;
}

.item-content {
    flex: 1;
}

.item-content p {
    color: #666;
    margin: 10px 0;
}

.item-content small {
    color: #999;
    font-size: 0.85em;
}

.item-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.no-items {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.1em;
}

.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c41e3a;
}

.department-badge {
    background: #165b33;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.filter-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-form label {
    margin: 0;
    font-weight: 600;
}

.filter-form select {
    max-width: 300px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

.table-responsive {
    overflow-x: auto;
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.employee-table th,
.employee-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.employee-table th {
    background: #c41e3a;
    color: white;
    font-weight: 600;
}

.employee-table tr:hover {
    background: #f8f9fa;
}

.help-text {
    text-align: center;
    color: #999;
    font-size: 0.9em;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.login-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.login-modal-close:hover {
    color: #333;
}

.login-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-modal-subtitle {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.login-modal-error {
    background: #fee;
    color: #c33;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid #fcc;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

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

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

.form-group-modal input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-modal input::placeholder {
    color: #999;
}

.form-group-modal input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.login-modal-btn {
    width: 100%;
    padding: 0.875rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.login-modal-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 2.5rem 1.5rem 2rem;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .main-container {
        padding: 1.5rem;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wishlist-modern-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .wishlist-item {
        flex-direction: column;
    }
    
    .item-actions {
        margin-top: 15px;
        width: 100%;
    }
    
    .employee-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .department-badge {
        margin-top: 10px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-form select {
        max-width: 100%;
    }
    
    .section-header-emp {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-toggle-password {
        width: 100%;
        justify-content: center;
    }
    
    .password-form-actions {
        flex-direction: column;
    }
    
    .btn-change-password,
    .btn-cancel-password {
        width: 100%;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.user-name {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.logout-icon {
    font-size: 1rem;
}

.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-title {
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dashboard-subtitle {
    font-size: 0.95rem;
    color: #666;
}

.gift-icon {
    font-size: 3rem;
    line-height: 1;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.password-change-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header-emp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title-emp {
    font-size: 1.3rem;
    color: #2c2c2c;
    font-weight: 600;
}

.btn-toggle-password {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle-password:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.password-form {
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.password-form-collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    border-top: none;
}

.password-form-expanded {
    max-height: 600px;
    opacity: 1;
}

.password-hint {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
    font-style: italic;
}

.form-row-password {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group-password {
    display: flex;
    flex-direction: column;
}

.form-group-password label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 0.5rem;
}

.form-group-password input {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group-password input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.password-form-actions {
    display: flex;
    gap: 1rem;
}

.btn-change-password {
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-change-password:hover {
    background: #388e3c;
    transform: translateY(-1px);
}

.btn-cancel-password {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-password:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.wishlist-form-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.item-number {
    font-size: 1.1rem;
    color: #2c2c2c;
    font-weight: 600;
}

.remove-item-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.5rem;
    color: #666;
}

.remove-item-btn:hover {
    background: #ffebee;
    border-color: #ef5350;
    color: #ef5350;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group-full,
.form-group-half {
    display: flex;
    flex-direction: column;
}

.form-group-full label,
.form-group-half label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group-full input,
.form-group-full textarea,
.form-group-full select,
.form-group-half input,
.form-group-half select {
    padding: 0.75rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-full input:focus,
.form-group-full textarea:focus,
.form-group-full select:focus,
.form-group-half input:focus,
.form-group-half select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group-full textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group-full select,
.form-group-half select {
    background: white;
    cursor: pointer;
}

.add-item-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: white;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-item-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

.plus-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.save-wishlist-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #dc2626;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.save-wishlist-btn:hover {
    background: #b91c1c;
}

.save-icon {
    font-size: 1.1rem;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #000000;
}

.admin-header-sub {
    display: flex;
    justify-content: space-between;
}
.admin-title {
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.admin-subtitle {
    font-size: 0.95rem;
    color: #666;
}

.logout-btn-admin {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.logout-btn-admin:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c2c2c;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

.admin-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    color: #2c2c2c;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #666;
}

.btn-add-employee {
    padding: 0.75rem 1.25rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-employee:hover {
    background: #b91c1c;
}

.csv-upload-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.file-upload-wrapper {
    flex: 1;
    min-width: 250px;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-label:hover {
    border-color: #667eea;
}

.file-label-text {
    color: #999;
    font-size: 0.9rem;
}

#file-name {
    font-weight: 500;
    color: #666;
}

.btn-upload {
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-upload:hover {
    background: #b91c1c;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.modern-table thead {
    background: #f8f9fa;
}

.modern-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #555;
}

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

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.empty-table {
    text-align: center;
    color: #999;
    padding: 3rem 1rem !important;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.edit-btn:hover {
    background: #e3f2fd;
    border-color: #1565c0;
}

.delete-btn:hover {
    background: #ffebee;
    border-color: #c62828;
}

.search-bar {
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.clear-search-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.clear-search-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.search-results-info {
    padding: 0.75rem 1rem;
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #0c4a6e;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-btn {
    background: white;
    color: #dc2626;
    border: 1px solid #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
}

.page-num {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 36px;
    text-align: center;
}

.page-num:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.page-num.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.page-dots {
    color: #999;
    padding: 0 0.25rem;
}

.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.admin-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.admin-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.admin-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-close:hover {
    color: #333;
}

.admin-modal-title {
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-row-admin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group-admin {
    display: flex;
    flex-direction: column;
}

.form-group-admin label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group-admin input,
.form-group-admin select {
    padding: 0.75rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-admin input:focus,
.form-group-admin select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-modal-submit {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-modal-submit:hover {
    background: #b91c1c;
}

.btn-modal-cancel {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: white;
    color: #666;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-cancel:hover {
    background: #f5f5f5;
    border-color: #b0b0b0;
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .user-info {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e0e0e0;
    }
    
    .dashboard-container {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gift-icon {
        align-self: center;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .wishlist-form-item {
        padding: 1.5rem;
    }
    
    .form-row-two {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        padding: 1.5rem 1rem;
    }
    
    .admin-header {
        width: 100%;
        justify-content: center;
        
    }
    .admin-header-sub {
        justify-content: center;
        
    }
    
    .admin-title {
        font-size: 1.5rem;
        align-items: center;
    }
    .logout-btn-admin {
        display: flex;
        justify-content: center;
    }

    .logout-btn-admin button,
    .logout-btn-admin a {
        margin: 0 auto; /* helps if button is inline-block */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-add-employee {
        width: 100%;
        justify-content: center;
    }
    
    .csv-upload-form {
        flex-direction: column;
    }
    
    .file-upload-wrapper {
        width: 100%;
    }
    
    .btn-upload {
        width: 100%;
        justify-content: center;
    }
    
    .admin-section {
        padding: 1.5rem;
    }
    
    .form-row-admin {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-btn,
    .clear-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
    }
}
