/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #10B981;
    --bg-light: #F3F4F6;
    --bg-dark: #111827;
    --text-light: #1F2937;
    --text-dark: #F9FAFB;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --dark-glass-bg: rgba(17, 24, 39, 0.7);
    --dark-glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', sans-serif;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

.dark-mode .glass {
    background: var(--dark-glass-bg);
    border: 1px solid var(--dark-glass-border);
}

.glass-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.15);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: #DC2626;
    color: white;
}
.btn-danger:hover {
    background: #B91C1C;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

.dark-mode .nav-link:hover {
    color: var(--secondary-color);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

.main-content {
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79,70,229,0.1) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #D1D5DB;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.dark-mode .form-control {
    background: rgba(31, 41, 55, 0.8);
    border-color: #374151;
    color: white;
}

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

/* Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

/* Alerts */
.alert {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.alert-error { background: rgba(239, 68, 68, 0.1); color: #DC2626; border: 1px solid rgba(239,68,68,0.2); }
.alert-info { background: rgba(59, 130, 246, 0.1); color: #2563EB; border: 1px solid rgba(59,130,246,0.2); }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #D97706; border: 1px solid rgba(245,158,11,0.2); }

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-pending { background: #FEF3C7; color: #D97706; }
.badge-approved { background: #D1FAE5; color: #059669; }
.badge-rejected { background: #FEE2E2; color: #DC2626; }
.dark-mode .badge-pending { background: rgba(217, 119, 6, 0.2); color: #FCD34D; }
.dark-mode .badge-approved { background: rgba(5, 150, 105, 0.2); color: #6EE7B7; }
.dark-mode .badge-rejected { background: rgba(220, 38, 38, 0.2); color: #FCA5A5; }

/* Dashboard layout */
.dashboard-layout {
    display: flex;
    gap: 30px;
}
.sidebar {
    width: 250px;
    flex-shrink: 0;
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: block;
    font-weight: 500;
}
.sidebar-link:hover, .sidebar-link.active {
    background: var(--primary-color);
    color: white;
}
.dashboard-content {
    flex: 1;
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}
