/* ============================================
   CROSS-BROWSER COMPATIBILITY CSS RESET
   ============================================ */

/* Box sizing rules */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Remove default margin and padding */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Body reset */
body {
    line-height: 1;
}

/* Lists reset */
ol, ul {
    list-style: none;
}

/* Quotes reset */
blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

/* Tables reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Form elements reset */
input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Remove blue highlighting on mobile Safari */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove focus outline for better UX */
button:focus, input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ============================================
   CUSTOM CSS VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: linear-gradient(-45deg, #4f46e5, #4338ca, #3730a3, #5b21b6, #7c3aed);
    background: -webkit-linear-gradient(-45deg, #4f46e5, #4338ca, #3730a3, #5b21b6, #7c3aed);
    background: -moz-linear-gradient(-45deg, #4f46e5, #4338ca, #3730a3, #5b21b6, #7c3aed);
    background: -o-linear-gradient(-45deg, #4f46e5, #4338ca, #3730a3, #5b21b6, #7c3aed);
    background-size: 400% 400%;
    -webkit-animation: gradientShift 10s ease infinite;
    -moz-animation: gradientShift 10s ease infinite;
    -o-animation: gradientShift 10s ease infinite;
    animation: gradientShift 10s ease infinite;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

@-webkit-keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@-moz-keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@-o-keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Background Shapes */
.login-page::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    -webkit-animation: floatShape 20s ease-in-out infinite;
    -moz-animation: floatShape 20s ease-in-out infinite;
    -o-animation: floatShape 20s ease-in-out infinite;
    animation: floatShape 20s ease-in-out infinite;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    -webkit-animation: floatShape 15s ease-in-out infinite reverse;
    -moz-animation: floatShape 15s ease-in-out infinite reverse;
    -o-animation: floatShape 15s ease-in-out infinite reverse;
    animation: floatShape 15s ease-in-out infinite reverse;
    pointer-events: none;
}

@-webkit-keyframes floatShape {
    0%, 100% {
        -webkit-transform: translate(0, 0) scale(1);
        transform: translate(0, 0) scale(1);
    }
    25% {
        -webkit-transform: translate(50px, 30px) scale(1.1);
        transform: translate(50px, 30px) scale(1.1);
    }
    50% {
        -webkit-transform: translate(-30px, 60px) scale(0.9);
        transform: translate(-30px, 60px) scale(0.9);
    }
    75% {
        -webkit-transform: translate(-60px, -30px) scale(1.05);
        transform: translate(-60px, -30px) scale(1.05);
    }
}

@-moz-keyframes floatShape {
    0%, 100% {
        -moz-transform: translate(0, 0) scale(1);
        transform: translate(0, 0) scale(1);
    }
    25% {
        -moz-transform: translate(50px, 30px) scale(1.1);
        transform: translate(50px, 30px) scale(1.1);
    }
    50% {
        -moz-transform: translate(-30px, 60px) scale(0.9);
        transform: translate(-30px, 60px) scale(0.9);
    }
    75% {
        -moz-transform: translate(-60px, -30px) scale(1.05);
        transform: translate(-60px, -30px) scale(1.05);
    }
}

@-o-keyframes floatShape {
    0%, 100% {
        -o-transform: translate(0, 0) scale(1);
        transform: translate(0, 0) scale(1);
    }
    25% {
        -o-transform: translate(50px, 30px) scale(1.1);
        transform: translate(50px, 30px) scale(1.1);
    }
    50% {
        -o-transform: translate(-30px, 60px) scale(0.9);
        transform: translate(-30px, 60px) scale(0.9);
    }
    75% {
        -o-transform: translate(-60px, -30px) scale(1.05);
        transform: translate(-60px, -30px) scale(1.05);
    }
}

@keyframes floatShape {
    0%, 100% {
        -webkit-transform: translate(0, 0) scale(1);
        -moz-transform: translate(0, 0) scale(1);
        -o-transform: translate(0, 0) scale(1);
        transform: translate(0, 0) scale(1);
    }
    25% {
        -webkit-transform: translate(50px, 30px) scale(1.1);
        -moz-transform: translate(50px, 30px) scale(1.1);
        -o-transform: translate(50px, 30px) scale(1.1);
        transform: translate(50px, 30px) scale(1.1);
    }
    50% {
        -webkit-transform: translate(-30px, 60px) scale(0.9);
        -moz-transform: translate(-30px, 60px) scale(0.9);
        -o-transform: translate(-30px, 60px) scale(0.9);
        transform: translate(-30px, 60px) scale(0.9);
    }
    75% {
        -webkit-transform: translate(-60px, -30px) scale(1.05);
        -moz-transform: translate(-60px, -30px) scale(1.05);
        -o-transform: translate(-60px, -30px) scale(1.05);
        transform: translate(-60px, -30px) scale(1.05);
    }
}

/* Animated Floating Bubbles */
.login-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.login-bubbles span {
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    -webkit-animation: rise 15s infinite ease-in;
    -moz-animation: rise 15s infinite ease-in;
    -o-animation: rise 15s infinite ease-in;
    animation: rise 15s infinite ease-in;
    bottom: -100px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.login-bubbles span:nth-child(1) {
    left: 10%;
    width: 80px;
    height: 80px;
    -webkit-animation-delay: 0s;
    -moz-animation-delay: 0s;
    -o-animation-delay: 0s;
    animation-delay: 0s;
    -webkit-animation-duration: 12s;
    -moz-animation-duration: 12s;
    -o-animation-duration: 12s;
    animation-duration: 12s;
}

.login-bubbles span:nth-child(2) {
    left: 20%;
    width: 60px;
    height: 60px;
    -webkit-animation-delay: 2s;
    -moz-animation-delay: 2s;
    -o-animation-delay: 2s;
    animation-delay: 2s;
    -webkit-animation-duration: 10s;
    -moz-animation-duration: 10s;
    -o-animation-duration: 10s;
    animation-duration: 10s;
}

.login-bubbles span:nth-child(3) {
    left: 35%;
    width: 100px;
    height: 100px;
    -webkit-animation-delay: 4s;
    -moz-animation-delay: 4s;
    -o-animation-delay: 4s;
    animation-delay: 4s;
    -webkit-animation-duration: 14s;
    -moz-animation-duration: 14s;
    -o-animation-duration: 14s;
    animation-duration: 14s;
}

.login-bubbles span:nth-child(4) {
    left: 50%;
    width: 70px;
    height: 70px;
    -webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    -o-animation-delay: 1s;
    animation-delay: 1s;
    -webkit-animation-duration: 11s;
    -moz-animation-duration: 11s;
    -o-animation-duration: 11s;
    animation-duration: 11s;
}

.login-bubbles span:nth-child(5) {
    left: 65%;
    width: 90px;
    height: 90px;
    -webkit-animation-delay: 3s;
    -moz-animation-delay: 3s;
    -o-animation-delay: 3s;
    animation-delay: 3s;
    -webkit-animation-duration: 13s;
    -moz-animation-duration: 13s;
    -o-animation-duration: 13s;
    animation-duration: 13s;
}

.login-bubbles span:nth-child(6) {
    left: 80%;
    width: 50px;
    height: 50px;
    -webkit-animation-delay: 5s;
    -moz-animation-delay: 5s;
    -o-animation-delay: 5s;
    animation-delay: 5s;
    -webkit-animation-duration: 9s;
    -moz-animation-duration: 9s;
    -o-animation-duration: 9s;
    animation-duration: 9s;
}

.login-bubbles span:nth-child(7) {
    left: 90%;
    width: 75px;
    height: 75px;
    -webkit-animation-delay: 2.5s;
    -moz-animation-delay: 2.5s;
    -o-animation-delay: 2.5s;
    animation-delay: 2.5s;
    -webkit-animation-duration: 12s;
    -moz-animation-duration: 12s;
    -o-animation-duration: 12s;
    animation-duration: 12s;
}

@-webkit-keyframes rise {
    0% {
        bottom: -100px;
        -webkit-transform: translateX(0) rotate(0deg);
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        -webkit-transform: translateX(50px) rotate(180deg);
        transform: translateX(50px) rotate(180deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        -webkit-transform: translateX(-50px) rotate(360deg);
        transform: translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

@-moz-keyframes rise {
    0% {
        bottom: -100px;
        -moz-transform: translateX(0) rotate(0deg);
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        -moz-transform: translateX(50px) rotate(180deg);
        transform: translateX(50px) rotate(180deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        -moz-transform: translateX(-50px) rotate(360deg);
        transform: translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

@-o-keyframes rise {
    0% {
        bottom: -100px;
        -o-transform: translateX(0) rotate(0deg);
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        -o-transform: translateX(50px) rotate(180deg);
        transform: translateX(50px) rotate(180deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        -o-transform: translateX(-50px) rotate(360deg);
        transform: translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rise {
    0% {
        bottom: -100px;
        -webkit-transform: translateX(0) rotate(0deg);
        -moz-transform: translateX(0) rotate(0deg);
        -o-transform: translateX(0) rotate(0deg);
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        -webkit-transform: translateX(50px) rotate(180deg);
        -moz-transform: translateX(50px) rotate(180deg);
        -o-transform: translateX(50px) rotate(180deg);
        transform: translateX(50px) rotate(180deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        -webkit-transform: translateX(-50px) rotate(360deg);
        -moz-transform: translateX(-50px) rotate(360deg);
        -o-transform: translateX(-50px) rotate(360deg);
        transform: translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

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

.login-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    -webkit-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    -moz-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.login-header .close-btn {
    position: absolute;
    right: 0;
    top: 0;
    color: var(--text-secondary);
    font-size: 24px;
    text-decoration: none;
    line-height: 1;
    padding: 5px 10px;
    transition: color 0.2s;
    z-index: 10;
}

.login-header .close-btn:hover {
    color: var(--danger-color);
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: width 0.6s, height 0.6s;
    -moz-transition: width 0.6s, height 0.6s;
    -o-transition: width 0.6s, height 0.6s;
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Base button text styling for clear readability */
.btn {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    background: -webkit-linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    background: -moz-linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    background: -o-linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    background: -webkit-linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    background: -moz-linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    background: -o-linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5);
    -moz-box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
    background: -webkit-linear-gradient(135deg, #64748b 0%, #334155 100%);
    background: -moz-linear-gradient(135deg, #64748b 0%, #334155 100%);
    background: -o-linear-gradient(135deg, #64748b 0%, #334155 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    background: -webkit-linear-gradient(135deg, #475569 0%, #1e293b 100%);
    background: -moz-linear-gradient(135deg, #475569 0%, #1e293b 100%);
    background: -o-linear-gradient(135deg, #475569 0%, #1e293b 100%);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(100, 116, 139, 0.5);
    -moz-box-shadow: 0 8px 20px rgba(100, 116, 139, 0.5);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    background: -webkit-linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    background: -moz-linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    background: -o-linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #14532d 100%);
    background: -webkit-linear-gradient(135deg, #16a34a 0%, #14532d 100%);
    background: -moz-linear-gradient(135deg, #16a34a 0%, #14532d 100%);
    background: -o-linear-gradient(135deg, #16a34a 0%, #14532d 100%);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(34, 197, 94, 0.5);
    -moz-box-shadow: 0 8px 20px rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    background: -webkit-linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    background: -moz-linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    background: -o-linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #000000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    background: -webkit-linear-gradient(135deg, #d97706 0%, #92400e 100%);
    background: -moz-linear-gradient(135deg, #d97706 0%, #92400e 100%);
    background: -o-linear-gradient(135deg, #d97706 0%, #92400e 100%);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
    -moz-box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    background: -webkit-linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    background: -moz-linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    background: -o-linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    background: -webkit-linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    background: -moz-linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    background: -o-linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
    -moz-box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background: -webkit-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background: -moz-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background: -o-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background: -webkit-linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background: -moz-linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background: -o-linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    -moz-box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
    display: block;
    font-size: 16px;
    padding: 14px 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    -webkit-box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    -moz-box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-block:hover {
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -o-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 10px 30px rgba(79, 70, 229, 0.5);
    -moz-box-shadow: 0 10px 30px rgba(79, 70, 229, 0.5);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.5);
}

.btn-block:active {
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -o-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    -moz-box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Upload Button */
.btn-upload {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    background: -webkit-linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    background: -moz-linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    background: -o-linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    -webkit-box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-upload:hover {
    background: linear-gradient(135deg, #16a34a 0%, #14532d 100%);
    background: -webkit-linear-gradient(135deg, #16a34a 0%, #14532d 100%);
    background: -moz-linear-gradient(135deg, #16a34a 0%, #14532d 100%);
    background: -o-linear-gradient(135deg, #16a34a 0%, #14532d 100%);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(34, 197, 94, 0.5);
    -moz-box-shadow: 0 8px 20px rgba(34, 197, 94, 0.5);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.5);
}

/* Cancel Button */
.btn-cancel {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
    background: -webkit-linear-gradient(135deg, #64748b 0%, #334155 100%);
    background: -moz-linear-gradient(135deg, #64748b 0%, #334155 100%);
    background: -o-linear-gradient(135deg, #64748b 0%, #334155 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    -webkit-box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    background: -webkit-linear-gradient(135deg, #475569 0%, #1e293b 100%);
    background: -moz-linear-gradient(135deg, #475569 0%, #1e293b 100%);
    background: -o-linear-gradient(135deg, #475569 0%, #1e293b 100%);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(100, 116, 139, 0.5);
    -moz-box-shadow: 0 8px 20px rgba(100, 116, 139, 0.5);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.5);
}

/* Add Button */
.btn-add {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background: -webkit-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background: -moz-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background: -o-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    -webkit-box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-add:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background: -webkit-linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background: -moz-linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    background: -o-linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    -moz-box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

/* File Upload Label */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.file-upload-label input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.file-upload-text {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.file-upload-hint {
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.selected-file {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 8px;
    color: #166534;
    font-weight: 600;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-actions .btn {
    flex: 1;
    max-width: 150px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
    border: 1px solid;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-color: #fecaca;
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-color: #bbf7d0;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.demo-credentials {
    margin-top: 20px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    color: var(--text-secondary);
}

.demo-credentials code {
    background-color: var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Dashboard Layout */
.dashboard-page {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

.admin-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    background: -webkit-linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    background: -moz-linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    background: -o-linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 16px 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-left .logo {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-nav-item:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.header-nav-item.active {
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary-color);
}

.header-nav-item .nav-icon {
    font-size: 18px;
}

.header-nav-item.header-logout-item {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.header-nav-item.header-logout-item:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.header-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(-15deg);
}

.header-logout .nav-icon {
    font-size: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(79, 70, 229, 0.1);
}

.badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge:hover {
    transform: scale(1.05);
}

.badge-admin {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.badge-user {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.badge-active {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.badge-inactive {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.badge-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.badge-danger {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #991b1b;
}

.badge-secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 65px);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    position: fixed;
    height: calc(100vh - 65px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    margin: 2px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.3), transparent);
    transition: width 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(67, 56, 202, 0.3));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-item.active::before {
    width: 100%;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.5), transparent);
}

.nav-item.nav-logout {
    color: rgba(239, 68, 68, 0.8);
    margin-top: auto;
    margin-bottom: 12px;
}

.nav-item.nav-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-item {
    cursor: pointer;
}

.nav-dropdown > .nav-item .dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-dropdown.active > .nav-item .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown > .nav-item:hover .dropdown-arrow {
    opacity: 1;
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 0 12px;
}

.nav-dropdown.active .dropdown-menu {
    max-height: 500px;
}

.dropdown-menu .nav-item {
    padding: 12px 20px 12px 52px;
    font-size: 13px;
    margin: 2px 0;
}

.dropdown-menu .nav-item::before {
    content: '›';
    position: absolute;
    left: 24px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
}

.dropdown-menu .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    padding: 30px;
    margin-left: 260px;
    overflow-y: auto;
    transition: margin-left 0.3s ease;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(79, 70, 229, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 36px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #22c55e;
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #f59e0b;
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #3b82f6;
}

.stat-secondary .stat-icon {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #64748b;
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Dashboard Section */
.dashboard-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.dashboard-section h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.dashboard-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.action-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2), 0 10px 10px -5px rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
}

.action-card:hover::before {
    opacity: 1;
}

.action-card:hover .action-icon,
.action-card:hover span:last-child {
    color: white;
}

.action-icon {
    font-size: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.action-card span:last-child {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: color 0.4s ease;
    z-index: 1;
}

/* Table */
.table-actions {
    margin-bottom: 16px;
}

.table-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

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

.data-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid var(--primary-color);
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.data-table th {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.data-table td {
    font-size: 14px;
    transition: all 0.2s ease;
}

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

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 5% auto;
    padding: 32px;
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    position: relative;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(226, 232, 240, 0.8);
    transform: rotate(90deg);
}

.modal-form .form-group {
    margin-bottom: 18px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 32px;
    border-radius: 16px;
    border: 2px dashed rgba(226, 232, 240, 0.8);
    text-align: center;
}

.info-card p {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.6);
}

.page-header h1 {
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .stats-grid {
        -webkit-grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }

    .header-right {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px;
    }

    .header-nav {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .user-info {
        -webkit-order: -1;
        -ms-flex-order: -1;
        order: -1;
        width: 100%;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .stats-grid {
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-content h3 {
        font-size: 24px;
    }

    .dashboard-section {
        padding: 20px;
    }

    .actions-grid {
        -webkit-grid-template-columns: repeat(2, 1fr);
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 24px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .actions-grid {
        -webkit-grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .form-actions {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .form-actions .btn {
        max-width: 100%;
    }

    .header-nav-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .admin-header,
    .language-switcher,
    .btn,
    .actions {
        display: none !important;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 0;
    }

    body {
        background: white;
    }

    .dashboard-container {
        display: block;
    }
}
