@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

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

body {
    font-family: 'Roboto', 'Noto Sans Bengali', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header-logo {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.form-header h1 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-title {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.lang-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

h3 {
    color: #667eea;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Roboto', 'Noto Sans Bengali', Arial, sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

#family_members_list input {
    margin-bottom: 10px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
    }
}

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

.admin-header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.logout-btn {
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.filter-btn {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

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

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

table th {
    background: #667eea;
    color: white;
    font-weight: 700;
}

table tr:hover {
    background: #f5f5f5;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

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

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

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

.action-btn {
    padding: 6px 12px;
    margin: 0 3px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.view-btn {
    background: #28a745;
    color: white;
}

.view-btn:hover {
    background: #218838;
}

.pdf-btn {
    background: #dc3545;
    color: white;
}

.pdf-btn:hover {
    background: #c82333;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.detail-container {
    max-width: 900px;
}

.detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 5px;
    gap: 15px;
}

.detail-label {
    font-weight: 700;
    color: #555;
    font-size: 14px;
}

.detail-value {
    color: #333;
    font-size: 14px;
}

.image-preview {
    max-width: 300px;
    margin-top: 10px;
    border-radius: 5px;
    border: 2px solid #ddd;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.status-actions {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.status-actions h3 {
    margin-top: 0;
}

.status-btn {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.reject-btn {
    background: #dc3545;
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .lang-btn {
        position: static;
        margin-top: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .admin-header div {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        width: 100%;
    }
    
    .logout-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    table {
        font-size: 11px;
    }
    
    table th,
    table td {
        padding: 6px 3px;
    }
    
    .action-btn {
        padding: 4px 3px;
        font-size: 9px;
        margin: 1px 0;
        display: inline-block;
        min-width: 35px;
    }
    
    table td {
        min-width: 50px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}
