:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4caf50;
    --danger: #f44336;
    --warning: #ff9800;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background: white !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Styles */
.card-modern {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card-header-gradient {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 20px 25px;
}

/* Button Styles */
.btn-gradient {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    padding: 8px 20px;
    transition: all 0.3s;
}

.btn-outline-gradient:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

/* Gallery Styles */
.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

/* Form Styles */
.form-modern {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Table Styles */
.table-modern {
    border-radius: 15px;
    overflow: hidden;
}

.table-modern thead {
    background: var(--gradient);
    color: white;
}

.table-modern tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

/* Stat Card */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-icon i {
    font-size: 28px;
    color: white;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* Sidebar */
.sidebar-modern {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--gradient);
    color: white;
}

.sidebar-menu a i {
    width: 25px;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-number {
        font-size: 24px;
    }
    
    .gallery-card img {
        height: 180px;
    }
}

/* Loading Animation */
.loader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}