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

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #10B981;
    --bg-color: #F3F4F6;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --sidebar-bg: #111827;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-text: #F9FAFB;
    --border-color: #E5E7EB;
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism utilities */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Sidebar Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all 0.3s;
    min-height: 100vh;
    position: fixed;
    z-index: 100;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

#sidebar .sidebar-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 15px 25px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: #fff;
    background: var(--sidebar-hover);
    border-left: 4px solid var(--primary-color);
}

/* Main Content */
#content {
    width: calc(100% - 260px);
    margin-left: 260px;
    min-height: 100vh;
    transition: all 0.3s;
}

.top-navbar {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}

.main-container {
    padding: 30px;
}

/* Custom Buttons */
.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: white;
}

/* Table styling */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 10px;
}
.table-custom tbody tr {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border-radius: 8px;
    transition: transform 0.2s;
}
.table-custom tbody tr:hover {
    transform: scale(1.01);
}
.table-custom td, .table-custom th {
    border: none;
    padding: 15px;
}
.table-custom th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.table-custom td:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.table-custom td:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

/* Dashboard Stat Cards */
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.stat-icon.blue { background: rgba(79, 70, 229, 0.1); color: var(--primary-color); }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--secondary-color); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }

/* Visitor Page Specific */
.visitor-bg {
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.visitor-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 950px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}
