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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Login Styles */
.login-body {
    background-image: url('/attached_assets/IMG_9947_1754618709804.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.login-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 150, 0, 0.1) 0%,
        rgba(0, 100, 0, 0.05) 50%,
        rgba(0, 80, 0, 0.1) 100%
    );
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent);
}

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



.logo {
    animation: logoFloat 0.8s ease-out 0.2s both;
}

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

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

.logo h1:hover {
    color: #1a2332;
}

.logo p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.logo-img-login {
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-img-login:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 8px 16px rgba(52, 152, 219, 0.2));
}

.login-form {
    animation: formSlideIn 0.8s ease-out 0.4s both;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.login-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 
        0 0 0 3px rgba(52, 152, 219, 0.1),
        0 2px 8px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
}

.login-form input:hover:not(:focus) {
    border-color: #bdc3c7;
    background: rgba(255, 255, 255, 0.95);
}

.login-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 15px rgba(39, 174, 96, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(39, 174, 96, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.login-btn:active {
    transform: translateY(0px);
    box-shadow: 
        0 4px 15px rgba(39, 174, 96, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.error-message {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 15px rgba(231, 76, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #34495e 100%);
    color: white;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #95a5a6;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        transparent 100%);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    position: relative;
    z-index: 2;
}

.header-content .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.header-content .logo:hover {
    transform: scale(1.02);
}

.header-content .logo h2 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.logo-img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-img:hover {
    border-color: #95a5a6;
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.3);
    transform: rotate(5deg);
}

.logo-img-login {
    height: 180px;
    width: 180px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: -1;
}

.main-nav a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.main-nav a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.logout-btn::before {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Dashboard */
body.dashboard-body {
    background-image: url('/attached_assets/image_1754619885613.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body.dashboard-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Roster Page Background */
body.roster-body {
    background-image: url('/attached_assets/image_1754619885613.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body.roster-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Fuel Page Background */
body.fuel-body {
    background-image: url('/attached_assets/image_1754619885613.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body.fuel-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Maintenance Page Background */
body.maintenance-body {
    background-image: url('/attached_assets/image_1754619885613.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body.maintenance-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Supplies Page Background */
body.supplies-body {
    background-image: url('/attached_assets/image_1754619885613.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body.supplies-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Reports Page Background */
body.reports-body {
    background-image: url('/attached_assets/image_1754619885613.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body.reports-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.dashboard-container h1 {
    text-align: center;
    color: #ffffff;
    margin: 0 auto 40px auto;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6);
    max-width: fit-content;
    display: block;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 100px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.dashboard-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.card-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.card-btn:hover {
    transform: translateY(-2px);
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 20px 30px 20px;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #34495e 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    height: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.page-container h1 {
    color: white;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0;
}

/* Form Styles */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.form-card h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.data-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

/* Form validation styles */
@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.error-message {
    animation: fadeInError 0.3s ease;
}

.form-notification {
    animation: slideInRight 0.3s ease;
}

/* Enhanced input validation states */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c !important;
    border-width: 2px !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3) !important;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #27ae60 !important;
    border-width: 2px !important;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.3) !important;
}

.submit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

/* Table Styles */
.data-table-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin-bottom: 30px;
    min-height: 0;
    overflow: hidden;
}

.data-table-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.table-wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    max-width: 100%;
}

.report-card .table-wrapper {
    overflow-x: visible;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #e0e6ed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.data-table th:first-child,
.data-table td:first-child {
    width: 15%;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 12%;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 10%;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 10%;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    width: 10%;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
    width: 12%;
}

.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    width: 11%;
}

.data-table th:nth-child(8),
.data-table td:nth-child(8) {
    width: 12%;
}

.data-table th:last-child,
.data-table td:last-child {
    width: 8%;
    text-align: center;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tr {
    transition: all 0.2s ease;
}

.data-table tr:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .data-table {
        min-width: 600px;
        font-size: 14px;
    }

    .data-table th,
    .data-table td {
        padding: 6px 8px;
        max-width: 120px;
    }

    .data-table th:first-child,
    .data-table td:first-child {
        min-width: 100px;
    }

    .data-table th:nth-child(2),
    .data-table td:nth-child(2) {
        min-width: 80px;
    }

    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        min-width: 70px;
    }
}

/* Controls Section */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.date-range-controls h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.date-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.date-btn {
    background: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.date-btn:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.date-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.custom-range {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.custom-range input[type="date"] {
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
}

.apply-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.apply-btn:hover {
    background: #229954;
}

/* Charts Section */
.charts-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.charts-section .chart-card {
    width: 100%;
    max-width: 800px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ecf0f1;
}

.chart-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.chart-card canvas {
    max-height: 300px;
}

@media (max-width: 768px) {
    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .date-buttons {
        justify-content: center;
    }

    .custom-range {
        justify-content: center;
    }
}

.data-table .highlight {
    color: #27ae60;
    font-weight: 600;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.no-action {
    color: #bdc3c7;
    font-style: italic;
    font-size: 0.9rem;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.low-stock {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.on-order {
    background-color: #d1ecf1;
    color: #0c5460;
}

.low-stock {
    background-color: #fff3cd !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        background-color: #fff3cd; 
        transform: scale(1);
    }
    50% { 
        background-color: #ffeaa7; 
        transform: scale(1.01);
    }
}

/* Reports */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.report-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.report-card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Export Controls */
.export-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.csv-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.csv-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #229954, #1e8449);
}

.preview-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.preview-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

/* Spreadsheet Modal Styles */
.spreadsheet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.spreadsheet-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spreadsheet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e6ed;
}

.spreadsheet-modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.spreadsheet-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: white;
}

.tab-btn:hover {
    color: #2c3e50;
    background: rgba(52, 152, 219, 0.1);
}

.spreadsheet-content {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

.tab-content {
    display: none;
    height: 100%;
    overflow: auto;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.spreadsheet-table-wrapper {
    overflow: auto;
    max-height: 400px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
}

.spreadsheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spreadsheet-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e6ed;
    position: sticky;
    top: 0;
    z-index: 10;
}

.spreadsheet-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f3f4;
}

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

.spreadsheet-table tr:nth-child(even) {
    background: #fdfdfd;
}

.spreadsheet-table tr:nth-child(even):hover {
    background: #f8f9fa;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.spreadsheet-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #e0e6ed;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.download-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-1px);
}

.cancel-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* Missing animations for error messages and notifications */
@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Scroll to top button styles */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
}

/* Spreadsheet Modal Styles */
.spreadsheet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.spreadsheet-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.spreadsheet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e6ed;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.spreadsheet-modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #e74c3c;
    color: white;
}

.spreadsheet-tabs {
    display: flex;
    border-bottom: 1px solid #e0e6ed;
    background: #f8f9fa;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: white;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
}

.spreadsheet-content {
    flex: 1;
    overflow: hidden;
}

.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: block;
}

.spreadsheet-table-wrapper {
    height: 60vh;
    overflow: auto;
    padding: 0;
}

.spreadsheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.report-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.data-table.compact th,
.data-table.compact td {
    padding: 8px;
    font-size: 14px;
    word-wrap: break-word;
    max-width: 150px;
}

.report-card .data-table {
    table-layout: fixed;
    width: 100%;
}

/* Roster specific styles */
.roster-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

.roster-table th {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #e0e6ed;
}

.roster-table th:nth-child(1) { width: 30%; }
.roster-table th:nth-child(2) { width: 20%; }
.roster-table th:nth-child(3) { width: 25%; }
.roster-table th:nth-child(4) { width: 15%; }
.roster-table th:nth-child(5) { width: 10%; }

.roster-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #ecf0f1;
    color: #2c3e50;
    font-weight: 500;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.roster-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.roster-table tr:hover {
    background-color: #e8f4f8;
    transform: none;
    box-shadow: inset 3px 0 0 #3498db;
}

.roster-table td a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.roster-table td a:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-1px);
}

.roster-table .delete-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.roster-table .delete-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.roster-name {
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.roster-position {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Position divider styling */
.position-divider {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.position-divider:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

.position-header {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px !important;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #3498db !important;
}

.category-icon {
    font-size: 1rem;
    margin-right: 8px;
}

.roster-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .header-content .logo h2 {
        font-size: 18px;
    }

    .logo-img {
        height: 40px;
        width: 40px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

    .form-row {
        grid-template-columns: 1fr;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .report-stats {
        justify-content: center;
    }

    .page-container {
        padding: 0 15px;
    }
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #34495e 100%);
    color: white;
    margin-top: auto;
    position: relative;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #3498db;
}

.footer-content {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.footer-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.footer-section {
    padding: 10px;
    text-align: left;
}

.footer-section:first-child {
    text-align: center;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #3498db;
}

.footer-section h4 {
    font-size: 0.9rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: white;
}

.footer-section p {
    color: #ecf0f1;
    line-height: 1.4;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    border: 3px solid rgba(52, 152, 219, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    border-color: #3498db;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transform: scale(1.05);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
    padding-left: 0;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
    padding: 5px 0;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

.footer-section ul li a:hover {
    color: #3498db;
    border-left-color: #3498db;
    transform: translateX(5px);
}

.system-info {
    font-size: 0.85rem;
    color: #ecf0f1;
    background: rgba(52, 152, 219, 0.2);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.system-info span {
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
    color: white;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
}

.footer-bottom-content p {
    color: #bdc3c7;
    font-size: 0.8rem;
    margin: 3px 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .dashboard-container h1,
    .page-container h1 {
        font-size: 2rem;
    }

    .data-table-container {
        padding: 20px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-logo {
        justify-content: center;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}


/* Error page styles */
.error-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-container h1 {
    color: #e74c3c;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.error-container p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.read-only-text {
    color: #95a5a6;
    font-size: 12px;
    font-style: italic;
    font-weight: 500;
}

/* Spencer's fun error page styling */
.spencer-error {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 50px;
    color: white;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    margin: 20px;
}

.spencer-error::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.spencer-message {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.emoji-large {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.spencer-error h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-weight: 900;
    text-stroke: 2px #000;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

.fun-message {
    font-size: 22px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f8f9fa;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.construction-animation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    font-size: 40px;
}

.construction-animation span {
    animation: wiggle 1s ease-in-out infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.construction-animation span:nth-child(2) {
    animation-delay: 0.3s;
}

.construction-animation span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.cheeky-note {
    font-size: 18px;
    font-style: italic;
    margin: 20px 0;
    color: #e8f4f8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

/* Performance optimizations */
* {
    will-change: auto;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* PWA styles */
@media (display-mode: standalone) {
    body {
        padding-top: 0;
        user-select: none;
    }
}

/* Reduce animations for performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.spencer-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.spencer-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.error-container .btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.error-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}