* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    margin: 0 auto;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

/* Untuk mobile */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 15px;
        margin: 10px auto;
    }
    .menu-grid {
        grid-template-columns: 1fr !important;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    table {
        font-size: 12px;
    }
    th, td {
        padding: 6px 8px !important;
    }
}

h1 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 30px;
    font-size: 28px;
}

h1 span {
    color: #d32f2f;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #1a237e;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e3f2fd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
    background: white;
}

.btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.btn-success:hover {
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.link {
    text-align: center;
    margin-top: 20px;
}

.link a {
    color: #1a237e;
    text-decoration: none;
}

.link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #2e7d32;
}

.alert-danger {
    background: #ffebee;
    color: #b71c1c;
    border-color: #d32f2f;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #1976d2;
}

.dashboard {
    max-width: 1200px;
    width: 100%;
}

.dashboard-header {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #1a237e;
}

.dashboard-title h2 {
    color: #1a237e;
    font-size: 24px;
}

.dashboard-title p {
    color: #666;
    margin-top: 5px;
}

.dashboard-title a {
    color: #1976d2;
    text-decoration: none;
}

.dashboard-title a:hover {
    text-decoration: underline;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logout-btn {
    padding: 8px 20px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.menu-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid #e3f2fd;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #1a237e;
}

.menu-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.menu-card h3 {
    color: #1a237e;
    margin-bottom: 10px;
    font-size: 20px;
}

.menu-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.menu-card .btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

.table-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    overflow-x: auto;
    border: 1px solid #e3f2fd;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: white;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f5f5f5;
}

.status-pending {
    color: #f57c00;
    font-weight: 600;
    padding: 4px 12px;
    background: #fff3e0;
    border-radius: 20px;
    display: inline-block;
}

.status-lunas {
    color: #2e7d32;
    font-weight: 600;
    padding: 4px 12px;
    background: #e8f5e9;
    border-radius: 20px;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #f57c00;
}

.badge-info {
    background: #e3f2fd;
    color: #0d47a1;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e3f2fd;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.stat-card .number {
    font-size: 32px;
    font-weight: 700;
    color: #1a237e;
    margin: 10px 0;
}

.stat-card .label {
    color: #666;
    font-size: 14px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Card styles untuk dashboard */
.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e3f2fd;
}

.card-title {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* Form inline untuk filter */
.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.filter-group .btn {
    width: auto;
    padding: 10px 20px;
}

@media (max-width: 480px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group .btn {
        width: 100%;
    }
}
/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    body {
        padding: 5px !important;
        margin: 0 !important;
    }
    
    .container {
        padding: 10px !important;
        margin: 5px !important;
        border-radius: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .dashboard-header {
        padding: 15px !important;
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    
    .dashboard-title h2 {
        font-size: 18px !important;
    }
    
    .dashboard-title p {
        font-size: 14px !important;
    }
    
    .menu-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .menu-card {
        padding: 20px !important;
    }
    
    .menu-card .icon {
        font-size: 36px !important;
    }
    
    .menu-card h3 {
        font-size: 16px !important;
    }
    
    .btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
        width: 100% !important;
        display: block !important;
    }
    
    .btn-group {
        flex-direction: column !important;
    }
    
    .filter-group {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .filter-group select,
    .filter-group .btn {
        width: 100% !important;
        min-width: unset !important;
    }
    
    .table-container {
        padding: 10px !important;
        margin: 0 -5px !important;
    }
    
    table {
        font-size: 11px !important;
        min-width: 500px !important;
    }
    
    th, td {
        padding: 6px 8px !important;
        white-space: nowrap !important;
    }
    
    .stat-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    
    .stat-card .number {
        font-size: 20px !important;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    .card {
        padding: 15px !important;
    }
    
    .card-title {
        font-size: 16px !important;
    }
    
    h1 {
        font-size: 20px !important;
    }
    
    .user-info {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .logout-btn {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Modal mobile */
    #editModal > div {
        padding: 20px !important;
        margin: 10px !important;
        max-height: 80vh !important;
    }
    
    /* Alert mobile */
    .alert {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px !important;
        margin: 3px !important;
    }
    
    .dashboard-header {
        padding: 10px !important;
    }
    
    .menu-card {
        padding: 15px !important;
    }
    
    .stat-grid {
        grid-template-columns: 1fr !important;
    }
    
    table {
        font-size: 10px !important;
        min-width: 400px !important;
    }
    
    th, td {
        padding: 4px 6px !important;
    }
    
    .btn {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    h1 {
        font-size: 18px !important;
    }
    
    .dashboard-title h2 {
        font-size: 16px !important;
    }
    
    .table-container {
        padding: 5px !important;
    }
}
/* Beasiswa styles */
.beasiswa-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
    border: 1px solid #1976d2;
}

.beasiswa-active {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
    border-color: #2e7d32;
}

.beasiswa-inactive {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border-color: #f57c00;
}

/* Tabel beasiswa */
.beasiswa-table td {
    vertical-align: middle;
}

.beasiswa-table .actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .beasiswa-table .actions {
        flex-direction: column;
    }
    .beasiswa-table .actions .btn {
        width: 100% !important;
        font-size: 11px !important;
        padding: 5px 8px !important;
    }
}