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

:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f72585;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #8d99ae;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --sidebar-width: 280px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    background: #f0f2f5;
    background-image: radial-gradient(at 0% 0%, hsla(225, 39%, 30%, 0.05) 0, transparent 50%),
                      radial-gradient(at 50% 0%, hsla(225, 39%, 23%, 0.05) 0, transparent 50%),
                      radial-gradient(at 100% 0%, hsla(225, 39%, 23%, 0.05) 0, transparent 50%);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
}

/* Auth Layout */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    padding: 20px;
}

.auth-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: slideUp 0.6s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0,0,0,0.02);
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 30px;
    text-align: center;
}

.sidebar-brand h2 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.sidebar-menu {
    flex: 1;
    padding: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 8px;
    transition: var(--transition);
}

.menu-item i {
    margin-right: 15px;
    font-size: 1.1rem;
}

.menu-item:hover, .menu-item.active {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Main Content */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    width: calc(100% - var(--sidebar-width));
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-profile {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    z-index: 5;
}

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Cards & Stats */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: none;
    margin-bottom: 25px;
}

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

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 400;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #eee;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

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

th {
    text-align: left;
    padding: 15px;
    color: var(--gray);
    font-weight: 500;
    border-bottom: 2px solid #f8f9fa;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
}

tr:hover td {
    background: #fbfcfe;
}

/* Badge */
.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success { background: rgba(76, 175, 80, 0.1); color: var(--success); }
.badge-warning { background: rgba(255, 152, 0, 0.1); color: var(--warning); }
.badge-danger { background: rgba(244, 67, 54, 0.1); color: var(--danger); }

/* Grid Layout for Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Responsive Tables for Mobile */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .main-wrapper { margin-left: 0; width: 100%; padding: 15px; padding-bottom: 80px; }
    .form-grid { grid-template-columns: 1fr; }
    
    /* Table to Cards Transformation */
    .table-container table, .table-container thead, .table-container tbody, .table-container th, .table-container td, .table-container tr { 
        display: block; 
    }
    .table-container thead tr { position: absolute; top: -9999px; left: -9999px; }
    .table-container tr { border: 1px solid #eee; border-radius: 12px; margin-bottom: 15px; padding: 10px; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
    .table-container td { border: none; position: relative; padding-left: 50% !important; text-align: right; min-height: 40px; border-bottom: 1px solid #f8f9fa; }
    .table-container td:last-child { border-bottom: none; }
    .table-container td:before { 
        content: attr(data-label); 
        position: absolute; 
        left: 10px; 
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap; 
        text-align: left; 
        font-weight: 600;
        color: var(--gray);
    }

/* Bottom Nav (Hidden on Desktop) */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .main-wrapper { margin-left: 0; width: 100%; padding: 15px; padding-bottom: 80px; }
    .form-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr !important; }
    
    /* Mobile Nav (Visible only on Mobile) */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 2000;
        border-radius: 20px 20px 0 0;
    }
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--gray);
        font-size: 0.75rem;
    }
    .mobile-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
    .mobile-nav-item.active { color: var(--primary); }
}

/* Score Radio Buttons Enhancements */
.score-buttons label {
    flex: 1;
    text-align: center;
}
.score-buttons input[type="radio"] {
    display: none;
}
.score-buttons span {
    display: block;
    padding: 10px;
    background: #f0f2f5;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}
.score-buttons input[type="radio"]:checked + span {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}
