* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.mahasiswa-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.mahasiswa-container .main-content-1 {
    margin: 0;
    max-width: 1000px;
    width: 100%;
}
/* 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.05);
    border-right: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
    color: #e2e8f0
}

.menu-item:hover {
    background: #e9ecef;
    color: #667eea;
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.menu-item.logout {
    margin-top: 20px;
    color: #ef4444;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
    width: calc(100% - 280px);
    overflow-x: auto;
}

/* Header */
.header {
    background: white;
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    color: #4a5568;
    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.05);
    border: 1px solid #e2e8f0;
}

.nav-item {
    padding: 10px 20px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #667eea;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow-x: auto;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    color: #2d3748;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.form-input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    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(102, 126, 234, 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;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    min-width: 600px;
}

.table thead {
    background: #f8fafc;
}

.table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    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(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Stats Cards */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
}

.stat-label {
    color: #718096;
    font-size: 14px;
}

/* 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: #718096;
    margin-top: 30px;
    background: white;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 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;
}

/* 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;
    }
}

/* ===== RESPONSIVE DESIGN - MOBILE FRIENDLY ===== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
    }

    .card-header {
        font-size: 18px;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {

    /* Sidebar menjadi toggle/hidden */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        position: fixed;
        z-index: 1001;
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Tombol menu untuk mobile */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border: none;
        border-radius: 10px;
        padding: 10px 15px;
        cursor: pointer;
        font-size: 20px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 60px 15px 15px 15px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .logo {
        font-size: 18px;
    }

    .user-info {
        font-size: 12px;
    }

    .nav {
        flex-direction: column;
    }

    .nav-item {
        text-align: center;
        white-space: normal;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    .card-header {
        font-size: 16px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
        text-align: center;
    }

    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .form-input,
    select,
    textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .welcome-card h2 {
        font-size: 18px;
    }

    .welcome-card p {
        font-size: 12px;
    }
}

/* Mobile Portrait (max-width: 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 55px 10px 10px 10px;
    }

    .header {
        padding: 12px;
    }

    .logo {
        font-size: 16px;
    }

    .card {
        padding: 12px;
        border-radius: 12px;
    }

    .card-header {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .table th,
    .table td {
        padding: 6px 8px;
        font-size: 11px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input,
    select,
    textarea {
        padding: 8px 10px;
        font-size: 13px;
    }

    .alert-error,
    .alert-success {
        padding: 10px;
        font-size: 12px;
    }

    .footer {
        padding: 12px;
        font-size: 11px;
    }
}

/* Tambahan untuk modal di mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .close-modal {
        font-size: 20px;
    }
}

/* Print style */
@media print {

    .sidebar,
    .menu-toggle,
    .btn-group,
    .nav {
        display: none;
    }

    .main-content {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Tambahan untuk dashboard mahasiswa */
.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 10px;
    }
}

/* Untuk wrapper kuesioner */
.kuesioner-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .kuesioner-wrapper {
        padding: 10px;
    }
}

/* Tombol menu toggle untuk mobile */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border: none;
        border-radius: 10px;
        padding: 10px 15px;
        cursor: pointer;
        font-size: 20px;
    }

    /* Overlay saat sidebar terbuka */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* Fix untuk tabel yang overflow */
@media (max-width: 768px) {
    .table-container {
        margin: 0 -10px;
        padding: 0 10px;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        white-space: nowrap;
    }
}

/* Fix untuk progress bar di mobile */
@media (max-width: 768px) {
    .progress-container {
        margin: 10px 0;
    }

    .progress-label {
        font-size: 12px;
    }
}

/* Fix untuk stat cards di mobile */
@media (max-width: 480px) {
    .stats-grid {
        gap: 10px;
    }

    .stat-card-modern {
        padding: 15px;
    }
}