/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 10px 10px;
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

nav {
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    flex: 1;
    padding: 0 0 2rem 0;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
    margin: 2px;
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
}

/* Form Styles */
.form-container, .login-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login Info */
.login-info {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 5px;
    text-align: center;
}

.login-info p {
    margin: 0.5rem 0;
    color: #666;
}

/* Admin Dashboard */
.admin-welcome {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-welcome h2 {
    color: #333;
    font-size: 1.8rem;
}

/* Statistics */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.stat-card.pending .stat-number {
    color: #ff9800;
}

.stat-card.accepted .stat-number {
    color: #4CAF50;
}

.stat-card.rejected .stat-number {
    color: #f44336;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.table-container h3 {
    padding: 1rem;
    background-color: #f8f9fa;
    margin: 0;
    color: #333;
    border-bottom: 1px solid #dee2e6;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status.diterima {
    background-color: #d4edda;
    color: #155724;
}

.status.ditolak {
    background-color: #f8d7da;
    color: #721c24;
}

/* Actions */
.actions {
    white-space: nowrap;
}

/* Detail Page */
.detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.back-button {
    margin-bottom: 2rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.detail-card h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.detail-row {
    display: flex;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: bold;
    color: #333;
    width: 200px;
    flex-shrink: 0;
}

.detail-row span {
    color: #666;
    flex: 1;
}

.action-buttons {
    text-align: center;
}

.action-buttons .btn {
    margin: 0 10px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    border-radius: 10px 10px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    nav a {
        display: block;
        margin: 5px 0;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 8px;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-row label {
        width: auto;
        margin-bottom: 0.5rem;
    }
    
    .action-buttons .btn {
        display: block;
        margin: 10px 0;
    }
}