* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(88deg, #eaba66, #c20000);
    min-height: 100vh;
}

/* Container Form */
.form-container {
    max-width: 800px;
   margin: 50px auto; 
    background: white;
 /*   border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);*/
    overflow: hidden;
}

.form-header {
   /* background: linear-gradient(135deg, #7b0a0a, #ff9a00);*/
   background-image: url("/bck.jpg");
   background-repeat: no-repeat;
  background-size: 100% 80%;
    color: white;
    padding: 30px;
    text-align: center;
    height:200px;
}

.form-header1 {
   /* background: linear-gradient(135deg, #7b0a0a, #ff9a00);*/
   background-image: url("/bck.jpg");
   background-repeat: no-repeat;
  background-size: 100% 80%;
    color: white;
    padding: 30px;
    text-align: center;

}

.form-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.form-header p {
    opacity: 0.9;
}


.form-body {
    padding: 40px;
    margin-top: -40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/*.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}*/

.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, auto));
    gap: 12px 20px;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.dob-group {
    display: flex;
    gap: 15px;
}

.dob-group select,
.dob-group input {
    flex: 1;
}

.note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7b0a0a, #ff9a00);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* Admin Panel */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 200px;
    background: linear-gradient(180deg, #1e3c72, #0f2442);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    border-left: 4px solid #4CAF50;
}

.main-content {
    flex: 1;
    margin-left: 200px;
    background: #f5f7fa;
    min-height: 100vh;
}

.top-bar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-wrapper {
    padding: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.table th,
.table td {
    padding: 12px 9px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.table th:hover {
    background: #e9ecef;
}

.table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    font-size: 10px;
  
}

.status-pending {
   
    color: #d63031;
}

.status-paid {
    background: #c8f7c5;
    color: #00b894;
}

.btn {
    padding: 6px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 2px 2px;
}

.btn-success {
    background: #00b894;
    color: white;
}

.btn-danger {
    background: #d63031;
    color: white;
}

.btn-primary {
    background: #2a5298;
    color: white;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.search-box {
   margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box input {
    width: 300px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
  /*  background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb; */
    margin-top:20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar span {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .dob-group {
        flex-direction: column;
    }
    
    .form-header {
   /* background: linear-gradient(135deg, #7b0a0a, #ff9a00);*/
   background-image: url("/bck.jpg");
   background-repeat: no-repeat;
  background-size: 100% 60%;
    color: white;
    padding: 30px;
    text-align: center;
    height:200px;
}

.form-body {
    padding: 40px;
    margin-top: -60px;
}

.alert-success {
  /*  background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb; */
    margin-top:40px;
}

}

@media (max-width: 480px) {
    .radio-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .radio-group label {
        font-size: 13px;
    }
}

/* Untuk layar medium (iPad) */
@media (min-width: 481px) and (max-width: 768px) {
    .radio-group {
        grid-template-columns: repeat(3, auto);
    }
}