/* c:/xampp/htdocs/puc/assets/css/style.css */
:root {
    --primary-color: #2563EB;
    --primary-dark: #1D4ED8;
    --success-color: #22C55E;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-color: #F8FAFC;
    --sidebar-bg: #1E293B;
    --sidebar-hover: #334155;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --card-bg: #FFFFFF;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1D4ED8;
    border-color: #1D4ED8;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    padding: 1rem;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.auth-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

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

/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #ffffff;
    color: var(--text-dark);
    transition: all 0.3s;
    min-height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid #e2e8f0;
}

#sidebar .nav-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
    cursor: pointer;
}

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

#sidebar ul li {
    margin-bottom: 0.2rem;
}

#sidebar ul li > a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
}

#sidebar ul li > a:hover {
    color: var(--primary-color);
    background: #f8fafc;
}

#sidebar ul li.active > a {
    color: #fff;
    background: var(--primary-color);
}

#sidebar ul li.active > a i {
    color: #fff;
}

/* Content */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Top Navbar */
.top-navbar {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cards */
.stats-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.stats-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);
}

.stats-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.icon-primary { background: rgba(37,99,235,0.1); color: var(--primary-color); }
.icon-success { background: rgba(34,197,94,0.1); color: var(--success-color); }
.icon-warning { background: rgba(245,158,11,0.1); color: var(--warning-color); }
.icon-danger { background: rgba(239,68,68,0.1); color: var(--danger-color); }

.stats-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Quick Actions */
.quick-btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
        position: fixed;
        z-index: 999;
        height: 100%;
    }
    #sidebar.active {
        margin-left: 0;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
    #sidebarCollapse {
        display: block !important;
    }
}
#sidebarCollapse {
    display: none;
}
