* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

/* Container */
.container {
    display: flex;
        min-height: 100vh;
        overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e1a3a 0%, #2d1b4e 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 12px 25px;
    margin: 5px 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    font-weight: 500;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
    box-shadow: 0 2px 10px rgba(139,92,246,0.3);
}

.menu-item.logout {
    margin-top: 20px;
    color: #f87171;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
        margin-left: 280px;
        padding: 20px;
    
        max-width: calc(100vw - 280px);
        overflow-x: hidden;
}

.main-content-1 {
    flex: 1;
    margin-left: 280px;
    margin-right: 280px;
    padding: 20px;

    max-width: calc(100vw - 280px);
    /* 🔥 penting */
    overflow-x: hidden;
}

/* Header */
.header {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    color: #4b5563;
    font-weight: 500;
}

/* Navigation */
.nav {
    background: white;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-item {
    padding: 10px 20px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #8b5cf6;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,92,246,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    min-width: max-content;
}
.table-jawaban {
    min-width: max-content;
}

.table thead {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.table tbody tr:hover {
    background: #f9fafb;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
    border-radius: 10px;
    transition: width 0.5s;
}

/* Alert */
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #10b981;
}

/* Grid */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Stats Cards */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
}

.stat-label {
    color: #6b7280;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header {
        font-size: 10px;
        padding: 15px 5px;
    }
    
    .menu-item {
        padding: 12px 10px;
        margin: 3px 5px;
        text-align: center;
        font-size: 12px;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav {
        flex-direction: column;
    }
    
    .row {
        grid-template-columns: 1fr;
    }
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: white;
    margin-top: 30px;
}

/* ===== Dashboard Mahasiswa Enhancement ===== */

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    animation: fadeIn 0.6s ease-in-out;
}

.welcome-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.welcome-card p {
    opacity: 0.9;
    font-size: 14px;
}

/* Stats Card Upgrade */
.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Angka animasi */
.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
    animation: popUp 0.5s ease;
}

/* Label */
.stat-label {
    color: #6b7280;
    font-size: 13px;
}

/* Info kecil */
.stat-card small {
    display: block;
    margin-top: 8px;
    color: #9ca3af;
}

/* Nav lebih modern */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #8b5cf6;
    transition: 0.3s;
}

.nav-item:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}