body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}



.disabled-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.disabled-link:hover {
    background-color: transparent !important;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 50%, #56ab2f 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.login-container {
    width: 100%;
    max-width: 350px;
    padding: 20px;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.2);
}

.logo {
    font-size: 50px;
    margin-bottom: 15px;
    color: #11998e;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-card h1 {
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.login-card p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.input-group input:focus {
    outline: none;
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.1);
    background: white;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 12px rgba(17, 153, 142, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #0e7c6b 0%, #32d66b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.error {
    color: #e74c3c;
    margin-bottom: 15px;
    background: rgba(231, 76, 60, 0.1);
    padding: 8px;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
    font-weight: 500;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #333;
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input[type="text"], input[type="password"], input[type="date"], textarea, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="radio"] {
    margin-right: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #45a049;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.error {
    color: red;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

fieldset {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
}

legend {
    font-weight: bold;
}

/* Form Card Styles */
.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

.form-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.2);
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #11998e;
}

.form-section h3 {
    margin-top: 0;
    color: #11998e;
    font-size: 18px;
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.form-group input[type="file"] {
    margin-top: 5px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.1);
    background: white;
}

.radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.radio-group input[type="radio"] {
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 12px rgba(17, 153, 142, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0e7c6b 0%, #32d66b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Mobile styles now handled by mobile-optimization.css */

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

/* Enhanced Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: top;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: rgba(17, 153, 142, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.family-details {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.family-details.expanded {
    max-height: 200px;
}

.toggle-btn {
    background: #11998e;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-top: 5px;
    transition: background 0.3s ease;
    display: inline-block;
}

.toggle-btn:hover {
    background: #0e7c6b;
    color: white;
}

.action-links a {
    color: #11998e;
    text-decoration: none;
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.action-links a:hover {
    background: #11998e;
    color: white;
}

/* Detail Table Styles */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-table th, .detail-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.detail-table th {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-weight: 600;
}

.detail-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Contributions Table Styles */
.contributions-section {
    margin-top: 20px;
}

.contributions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contributions-table th, .contributions-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #e1e5e9;
}

.contributions-table th {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-weight: 600;
}

.contributions-table input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

/* Contribution Table Styles (Legacy) */
.contribution-table {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1);
    animation: fadeIn 0.5s ease-in-out;
    table-layout: fixed;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contribution-table th, .contribution-table td {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.contribution-table th {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-size: 10px;
}

.contribution-table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contribution-table th:hover::before {
    left: 100%;
}

.contribution-table td {
    vertical-align: middle;
    background: rgba(255,255,255,0.8);
}

/* Tetapkan lebar kolom */
.contribution-table th:nth-child(1),
.contribution-table td:nth-child(1) { /* Nama Keluarga */
    width: 20%; /* Lebar lebih besar untuk daftar anggota */
    max-width: 200px;
    text-align: left;
}
.contribution-table th:nth-child(2),
.contribution-table td:nth-child(2) { /* Alamat */
    width: 15%;
    max-width: 150px;
}
.contribution-table th:nth-child(3),
.contribution-table td:nth-child(3) { /* No HP */
    width: 10%;
    max-width: 100px;
}
.contribution-table th:nth-child(4),
.contribution-table td:nth-child(4) { /* Pendidikan */
    width: 10%;
    max-width: 100px;
}
.contribution-table th:nth-child(5),
.contribution-table td:nth-child(5) { /* Keterangan */
    width: 15%;
    max-width: 150px;
}
.contribution-table th:nth-child(n+6),
.contribution-table td:nth-child(n+6) { /* Kolom tahun */
    width: 5%;
    max-width: 50px;
}

.family-members-list {
    max-height: 100px; /* Batasi tinggi */
    overflow-y: auto; /* Gulir jika terlalu panjang */
    padding: 5px;
}

.family-member {
    margin: 2px 0;
    font-size: 12px;
}

.contribution-table input {
    width: 60px;
    padding: 4px 6px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    background: white;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.contribution-table input::-webkit-outer-spin-button,
.contribution-table input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.contribution-table input:focus {
    outline: none;
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.2), inset 0 1px 3px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.contribution-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.contribution-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(17, 153, 142, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contribution-table tbody tr:hover td {
    color: #11998e;
}

/* Simple Contributions Section Styles */
.contributions-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contributions-section h2 {
    color: #11998e;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.contributions-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 3px solid #11998e;
}

.contributions-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.contributions-table-container {
    overflow-x: auto;
}

.contributions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 0;
}

.contributions-table th,
.contributions-table td {
    padding: 12px 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.contributions-table th {
    background: #11998e;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.contributions-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.contributions-table tbody tr:hover {
    background: #f0f8ff;
}

.contributions-table tbody tr.current-year {
    background: #e8f5e8;
    font-weight: 600;
}

.year-cell {
    font-weight: 600;
    color: #333;
    position: relative;
}

.current-year-label {
    display: inline-block;
    background: #11998e;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-cell {
    width: 80px;
}

.amount-input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: right;
    font-size: 12px;
    background: white;
    box-sizing: border-box;
    height: 28px;
}

.amount-input:focus {
    outline: none;
    border-color: #11998e;
    box-shadow: 0 0 0 2px rgba(17, 153, 142, 0.1);
}

.status-cell {
    width: 120px;
}

.status-paid {
    color: #28a745;
    font-weight: 600;
    font-size: 13px;
}

.status-unpaid {
    color: #ffc107;
    font-weight: 600;
    font-size: 13px;
}

/* Responsive Design for Simple Contributions */
@media (max-width: 768px) {
    .contributions-section {
        padding: 15px;
    }

    .contributions-table-container {
        font-size: 14px;
    }

    .contributions-table th,
    .contributions-table td {
        padding: 8px 4px;
    }

    .amount-cell {
        width: 120px;
    }

    .status-cell {
        width: 100px;
    }

    .amount-input {
        font-size: 12px;
        padding: 6px;
    }
}

/* File cell hover styles */
.file-cell {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    min-height: 60px;
}

.file-cell:hover {
    background: rgba(17, 153, 142, 0.1);
    border-color: #11998e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    min-width: 100px;
    transform: translateY(-5px);
}

.file-cell:hover .file-options {
    display: block;
}

/* Pastikan tabel nggak memotong submenu */
.family-table {
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Tambah padding di bawah baris untuk ruang hover */
.family-table td {
    padding-bottom: 20px;
}

/* Family Members List Styles */
.family-members-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(17, 153, 142, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(17, 153, 142, 0.1);
}

.main-member {
    font-weight: bold;
    font-size: 16px;
    color: #11998e;
    padding: 4px 0;
    border-bottom: 2px solid #11998e;
    margin-bottom: 8px;
}

.family-member {
    font-size: 14px;
    color: #555;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.family-member::before {
    font-size: 12px;
    opacity: 0.7;
}

/* Detail container styles */
.detail-container {
    max-width: 900px;
    margin: 15px auto;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-in-out;
}

.family-info {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #11998e;
}

.family-info h3 {
    margin-top: 0;
    color: #11998e;
    font-size: 18px;
}

.family-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

.family-table-section {
    margin-bottom: 25px;
}

.family-table-section h2 {
    color: #11998e;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Head of Family Selection Styles */
.head-of-family-section {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(17, 153, 142, 0.1);
}

.head-of-family-section h3 {
    color: #11998e;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.head-selection {
    margin-bottom: 25px;
}

.head-selection p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.head-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.head-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #555;
}

.head-option:hover {
    border-color: #11998e;
    background: rgba(17, 153, 142, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.15);
}

.head-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #11998e;
}

.head-option input[type="radio"]:checked + span {
    color: #11998e;
    font-weight: 600;
}

.head-option span {
    transition: color 0.3s ease;
}

.head-of-family-table {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.head-of-family-table th {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.head-of-family-table td {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* Auto-fill display styles */
.auto-fill-display {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(17, 153, 142, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.display-row:last-child {
    border-bottom: none;
}

.display-row strong {
    color: #11998e;
    font-weight: 600;
    min-width: 150px;
}

.display-row span {
    color: #333;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* Responsive adjustments for head selection */
@media (max-width: 768px) {
    .head-options {
        max-width: 100%;
    }

    .head-option {
        padding: 10px 12px;
        font-size: 13px;
    }

    .head-of-family-section {
        padding: 20px;
    }

    .auto-fill-display {
        padding: 15px;
    }

    .display-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .display-row strong {
        min-width: auto;
    }

    .display-row span {
        text-align: left;
    }
}

/* Step-based Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    margin: 0 5px;
}

.step.active {
    border-color: #11998e;
    background: #11998e;
    color: white;
}

.step-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.step-title {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.family-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.family-member {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-next, .btn-prev, .btn-submit, .btn-add {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-next, .btn-submit {
    background: #11998e;
    color: white;
}

.btn-prev {
    background: #95a5a6;
    color: white;
}

.btn-add {
    background: #27ae60;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.file-preview {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 3px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #27ae60;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

/* Responsive Design for Step Form */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }

    .form-steps {
        flex-direction: column;
        gap: 10px;
    }

    .step {
        margin: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .step-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
/* Google Forms-like Step-based Form Styles */

/* Real-time feedback styles */
.head-option input:disabled + span {
    color: #ccc !important;
    cursor: not-allowed;
}

.auto-fill-display .display-row {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.auto-fill-display .display-row:last-child {
    border-bottom: none;
}

/* Loading animation for real-time updates */
.auto-fill-display.updating {
    opacity: 0.7;
}

/* Success state when head is selected */
.auto-fill-display.valid .display-row {
    color: #27ae60;
}

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
}

.status-badge.pending {
    background-color: #ffc107;
    color: #000;
}

.status-badge.approved {
    background-color: #28a745;
    color: #fff;
}

.status-badge.rejected {
    background-color: #dc3545;
    color: #fff;
}

/* Member Badges */
.member-badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    margin-right: 5px;
}

.member-badge.ayah {
    background-color: #007bff;
    color: #fff;
}

.member-badge.ibu {
    background-color: #e83e8c;
    color: #fff;
}

.member-badge.anak {
    background-color: #6f42c1;
    color: #fff;
}

.member-badge.tanggungan {
    background-color: #fd7e14;
    color: #fff;
}

/* Compact Table */
.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
}

.compact-table th {
    background-color: #f8f9fa;
    padding: 8px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
}

.compact-table td {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.compact-table tr:hover {
    background-color: #f1f1f1;
}

.family-members {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Notification Badge Styles */
.notification-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    margin-left: 5px;
    vertical-align: super;
}

.nav-link.has-notification {
    font-weight: bold;
    color: #e74c3c !important;
}

/* Required field indicator */
.required {
    color: #e74c3c;
}

/* Card styles for forms */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-body {
    padding: 20px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background: #11998e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #0d7d73;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Premium Header Styles */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 2px solid #e74c3c;
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.8;
    pointer-events: none;
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav-logo {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
}

.nav-logo:hover {
    color: #e74c3c;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.nav-logo::before {
    content: "⛪";
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
    to { filter: drop-shadow(0 2px 6px rgba(231, 76, 60, 0.3)); }
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hamburger:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    transform: scale(1.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.nav-link.has-notification {
    position: relative;
}

.nav-link.has-notification::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.notification-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: super;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
    animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.user-info {
    color: #ecf0f1;
    font-size: 13px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-left: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-info:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(231, 76, 60, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .nav-logo {
        font-size: 24px;
        padding: 10px 0;
    }

    .nav-logo::before {
        font-size: 28px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-radius: 8px;
        margin: 2px 0;
    }

    .nav-menu a:hover {
        background: rgba(231, 76, 60, 0.2);
        transform: translateX(5px);
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .user-info {
        margin-left: 0;
        text-align: center;
        font-size: 12px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 20px;
    }

    .nav-logo::before {
        font-size: 24px;
    }

    .nav-menu {
        padding: 15px;
    }

    .nav-menu a {
        padding: 12px 15px;
        font-size: 13px;
    }

    .notification-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}


