/* Reset and 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: linear-gradient(135deg, #009fe3 0%, #007bb8 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding-top: 30px;
}

/* Hide header when top nav is visible */
body:has(#top-nav[style*="block"]) .header {
    display: none;
}

/* Adjust main content when top nav is visible */
body:has(#top-nav[style*="block"]) .main-content {
    margin-top: 0;
    padding-top: 120px; /* Account for fixed navigation height + extra spacing */
}

/* Remove container padding when top nav is visible */
body:has(#top-nav[style*="block"]) .container {
    padding-top: 0;
}

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

.header-logo {
    height: 200px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Top Navigation Styles */
.top-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #009fe3;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: #009fe3;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #007bb8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3);
}

.nav-btn i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 15px;
    }
    
    .nav-title {
        display: none; /* Hide title on mobile to save space */
    }
    
    .nav-menu {
        gap: 8px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .nav-btn span {
        display: none; /* Hide text on mobile, show only icons */
    }
}

#user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

#user-name {
    font-weight: 500;
    color: #333;
}

#logout-btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tab.active {
    background: #009fe3;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-tab:hover:not(.active) {
    background: #f8f9fa;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Registration Flow */
.registration-flow {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* Login Section */
.login-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.login-container h2 {
    color: #009fe3;
    margin-bottom: 10px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-container p {
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

.login-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
}

.login-message.error {
    background: #ffe6e6;
    color: #8b0000;
    border: 1px solid #d90037;
}

.login-message.success {
    background: #e8f5e8;
    color: #2d5016;
    border: 1px solid #67ad30;
}

#parent-dashboard {
    margin-top: 30px;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.dashboard-header h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
}

#parent-dashboard h3 {
    color: #009fe3;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.child-permissions {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.child-permissions h5 {
    color: #009fe3;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.child-permissions h6 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
}

.step {
    animation: fadeIn 0.5s ease-in;
}

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

.step h2 {
    color: #009fe3;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Forms */
.form {
    display: grid;
    gap: 20px;
}

/* Form button groups */
.form .btn {
    margin: 5px;
    min-width: 120px;
    display: inline-block;
}

.form .btn:first-child {
    margin-left: 0;
}

.form .btn:last-child {
    margin-right: 0;
}

/* Button container for forms */
.form button[type="submit"],
.form button[type="button"] {
    display: inline-block;
    width: auto;
}

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

.address-house {
    grid-column: 1;
}

.address-street {
    grid-column: 2;
}

.address-city {
    grid-column: 1;
}

.address-postcode {
    grid-column: 2;
}

@media (max-width: 768px) {
    .address-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .address-house,
    .address-street,
    .address-city,
    .address-postcode {
        grid-column: 1;
    }
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #009fe3;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-help {
    color: #666;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.password-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.password-success {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #009fe3;
    color: white;
}

.btn-primary:hover {
    background: #007bb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

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

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

.btn-outline {
    background: transparent;
    color: #009fe3;
    border: 2px solid #009fe3;
}

.btn-outline:hover {
    background: #009fe3;
    color: white;
}

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

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

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* Children and Contacts Lists */
#children-list,
#emergency-contacts-list {
    margin-bottom: 20px;
}

.child-card,
.contact-card {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.child-card h4,
.contact-card h4 {
    color: #009fe3;
    margin-bottom: 10px;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Activities */
.activity-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-info h4 {
    color: #009fe3;
    margin-bottom: 5px;
}

.activity-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Activity Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.permission-activity-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.permission-activity-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.permission-activity-card h5 {
    color: #009fe3;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.permission-activity-card .activity-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.permission-activity-card .activity-schedule {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-style: italic;
}

.permission-activity-card .activity-age-range {
    color: #009fe3;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 500;
    background-color: #f0f4ff;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.permission-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #009fe3;
    cursor: pointer;
}

.permission-checkbox label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.permission-checkbox label:hover {
    color: #009fe3;
}

/* Activity Type Badges */
.activity-info h4,
.activity-info h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.activity-type-badge.weekly {
    background-color: #e3f2fd;
    color: #1976d2;
}

.activity-type-badge.event {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.activity-type-badge.legacy {
    background-color: #f5f5f5;
    color: #666;
}

/* Activity Form Conditional Fields */
.activity-type-fields {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Checkbox Groups for None options */
.checkbox-group {
    margin-bottom: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: auto;
    height: auto;
}

.checkbox-label:hover {
    color: #009fe3;
}

/* Disabled textarea styling */
textarea:disabled {
    background-color: #f5f5f5 !important;
    color: #666;
    cursor: not-allowed;
}

.permission-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #009fe3;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-message i {
    font-size: 4rem;
    color: #67ad30;
    margin-bottom: 20px;
}

.success-message h2 {
    color: #67ad30;
    margin-bottom: 15px;
}

/* Admin Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-header h2 {
    margin: 0;
    color: #2c3e50;
}

.admin-logout-btn {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.admin-logout-btn:hover {
    background: #c82333;
    border-color: #bd2130;
}

.admin-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.admin-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-card h3 {
    color: #009fe3;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.consent-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.consent-section h4 {
    color: #009fe3;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.consent-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.consent-question {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
}

.consent-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #009fe3;
}

.radio-option span {
    user-select: none;
}

.consent-summary {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.consent-summary h5 {
    color: #009fe3;
    margin-bottom: 10px;
    font-size: 1rem;
}

.consent-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consent-summary li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.consent-status {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
    display: inline-block;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

/* Family List */
.family-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.family-item h4 {
    color: #009fe3;
    margin-bottom: 10px;
}

.family-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.family-details p {
    margin: 5px 0;
    color: #666;
}

.children-summary {
    margin-top: 10px;
}

.children-summary h5 {
    color: #009fe3;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-sections {
        grid-template-columns: 1fr;
    }
    
    .family-details {
        grid-template-columns: 1fr;
    }
}

/* Loading and Status Indicators */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #009fe3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.status-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Emergency contact features */
#copy-contacts-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#copy-contacts-dropdown {
    margin-top: 10px;
}

#copy-contacts-dropdown select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#contact-fields {
    transition: opacity 0.3s ease;
}

#contact-fields.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Contact buttons styling */
.contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.contact-buttons .btn {
    flex: 1;
}

/* Copy success message */
#copy-success-message {
    background: #e8f5e8;
    color: #2d5016;
    border: 1px solid #67ad30;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

#copy-success-message i {
    color: #67ad30;
    font-size: 18px;
}

/* Registration success message */
#registration-success-message {
    background: #e8f5e8;
    color: #2d5016;
    border: 1px solid #67ad30;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

#registration-success-message i {
    color: #67ad30;
    font-size: 18px;
}

/* Worker success message */
#worker-success-message {
    background: #e8f5e8;
    color: #2d5016;
    border: 1px solid #67ad30;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

#worker-success-message i {
    color: #67ad30;
    font-size: 18px;
}

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

/* Role Selection Screen */
.role-selection-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px 40px 20px;
    text-align: center;
}

/* Full page background */
body {
    background-image: url('images/Cooke-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.role-selection-header {
    margin-bottom: 50px;
    margin-top: 20px;
}

.role-selection-header h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.role-selection-header p {
    color: white;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.role-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .role-options {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 0 10px;
    }
}

.role-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #009fe3;
}

.role-selection .admin-card {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white;
}

.role-selection .admin-card .role-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.role-selection .admin-card h3 {
    color: white;
}

.role-selection .admin-card p {
    color: rgba(255, 255, 255, 0.9);
}

.role-icon {
    font-size: 3rem;
    color: #009fe3;
    margin-bottom: 20px;
}

.role-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.role-card p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.role-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.role-actions .btn {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: auto;
    min-width: 150px;
}

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

/* Login Screen */
.login-screen {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.registration-options {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.registration-options p {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.registration-options .btn {
    margin: 5px 10px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Dashboard styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .dashboard-content {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 25px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .dashboard-main {
        min-width: 0; /* Prevents grid overflow */
    }

    .dashboard-sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    @media (max-width: 768px) {
        .dashboard-content {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .dashboard-sidebar {
            order: -1; /* Show sidebar first on mobile */
        }
    }

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
}

.family-info-card {
    border-left: 4px solid #009fe3;
}

.activities-card {
    border-left: 4px solid #67ad30;
}

.quick-actions-card {
    border-left: 4px solid #d90037;
}

.children-card {
    border-left: 4px solid #009fe3; /* Logo blue */
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.child-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.child-card:hover {
    border-color: #009fe3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.2);
}

.child-card h4 {
    color: #009fe3;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.child-info {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0;
}

.child-age {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 10px;
}

/* Child Detail Modal */
#child-detail-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.child-detail-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.child-detail-section h3 {
    color: #009fe3;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.activity-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.activity-item.registered {
    border-left: 4px solid #67ad30;
    background: #f8fff8;
}

.activity-item.available {
    border-left: 4px solid #009fe3;
    background: #f8f9ff;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.activity-info {
    flex: 1;
}

.activity-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.activity-details {
    font-size: 0.9rem;
    color: #666;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 100px;
}

.no-activities {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-activities i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-activities p {
    margin: 0;
    font-style: italic;
}

/* Child Detail Modal Messages */
.child-detail-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

.child-detail-message.success {
    background: #e8f5e8;
    color: #2d5016;
    border: 1px solid #67ad30;
}

.child-detail-message.error {
    background: #ffe6e6;
    color: #8b0000;
    border: 1px solid #d90037;
}

.child-detail-message i {
    font-size: 1.2rem;
}

/* Improved Close Button */
.close-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Activity Confirmation Modal */
#activity-confirmation-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.activity-confirmation-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.activity-confirmation-details h4 {
    color: #009fe3;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-detail-item {
    display: flex;
    margin: 10px 0;
    align-items: flex-start;
}

.activity-detail-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    margin-right: 15px;
}

.activity-detail-value {
    color: #6c757d;
    flex: 1;
}

.activity-confirmation-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.activity-confirmation-warning i {
    color: #f39c12;
    margin-right: 8px;
}

/* Modal Close Button Positioning */
.modal-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 0.9rem;
    min-width: auto;
    z-index: 10;
}

.modal-close-btn i {
    margin-right: 0;
}

#child-detail-title {
    margin-right: 50px;
    padding-right: 20px;
}

/* Family Information Actions */
.family-info-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.family-info-actions .btn {
    width: 100%;
}

/* Family Doctor Section */
.family-doctor-card {
    margin-top: 20px;
}

.family-doctor-content p {
    margin: 8px 0;
    color: #495057;
    font-size: 0.9rem;
}

.family-doctor-content p:last-child {
    margin-bottom: 0;
}

.no-doctor-info {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

/* Family Doctor Actions */
.family-doctor-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.family-doctor-actions .btn {
    width: 100%;
}

/* Edit Family Modal */
#edit-family-modal .modal-content {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Button Sizes */
.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
    min-width: auto;
}

/* Emergency Contacts */
.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.contact-content {
    flex: 1;
}

.add-contact-item {
    border: 2px dashed #dee2e6;
    background: #f8f9fa;
    text-align: center;
}

.add-contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.add-contact-content i {
    font-size: 2rem;
    color: #009fe3;
}

.add-contact-text {
    font-weight: 600;
    color: #495057;
}

.add-contact-subtext {
    font-size: 0.85rem;
}

/* Add Child Card */
.add-child-card {
    border: 2px dashed #dee2e6;
    background: #f8f9fa;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-child-card:hover {
    border-color: #009fe3;
    background: #e3f2fd;
    transform: translateY(-2px);
}

.add-child-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #6c757d;
    height: 100%;
    justify-content: center;
    min-height: 200px;
}

.add-child-content i {
    font-size: 3rem;
    color: #009fe3;
}

.add-child-content h4 {
    color: #495057;
    margin: 0;
    font-size: 1.2rem;
}

.add-child-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Copy Contacts Options */
.copy-contacts-option {
    margin-bottom: 10px;
}

.emergency-contacts-setup {
    max-width: 100%;
}

.emergency-contacts-setup h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.emergency-contacts-setup p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Add Child Modal Improvements */
#add-child-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

#add-child-modal .form-group {
    margin-bottom: 25px;
}

#add-child-modal .form-group:last-child {
    margin-bottom: 0;
}

#add-child-modal .modal-body {
    padding: 30px;
}

#add-child-modal h4 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.none-checkbox-container {
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.none-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #495057;
    margin: 0;
}

.none-checkbox input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.none-checkbox strong {
    color: #009fe3;
}

.none-checkbox .checkmark {
    display: none;
}

/* Disabled textarea styling */
textarea:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Consent questions spacing */
.consent-question {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #009fe3;
}

.consent-question:last-child {
    margin-bottom: 0;
}

.consent-question label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #495057;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

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

.radio-label input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

/* New Child Activity Registration Modal */
#new-child-activities-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.activity-registration-section {
    max-width: 100%;
}

.activity-registration-section p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.activity-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.activity-card.registered {
    border-color: #28a745;
    background: #f8fff9;
}

.activity-card.available {
    border-color: #009fe3;
    background: #f8fcff;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.activity-header h5 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
}

.activity-type {
    background: #009fe3;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.activity-details p {
    margin: 8px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.activity-description {
    font-style: italic;
    margin-top: 12px !important;
}

.no-activities {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Delete Child Modal */
.delete-confirmation {
    text-align: center;
    padding: 20px;
}

.warning-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.delete-confirmation h4 {
    color: #dc3545;
    margin-bottom: 15px;
}

.delete-confirmation p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.warning-details {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: left;
}

.warning-details p {
    margin: 0 0 10px 0;
    color: #856404;
    font-weight: 500;
}

.warning-details ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.warning-details li {
    margin-bottom: 5px;
}

/* Danger button styling */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-danger.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* Child Card with Delete Button */
.child-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.child-card-content {
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    min-height: 200px;
}

.child-card-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.child-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.delete-child-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    z-index: 20;
}

.child-card:hover .delete-child-btn {
    opacity: 1;
}

.delete-child-btn:hover {
    transform: scale(1.1);
}

.emergency-contacts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.contact-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.contact-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-details {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Application cards */
.application-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.application-info {
    flex: 1;
    margin-right: 20px;
}

.application-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.application-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.application-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.application-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: 100px;
}

/* Admin Dashboard Styles */
#admin-dashboard {
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-nav {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.admin-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo {
    height: 40px;
    width: auto;
}


.admin-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #009fe3;
    margin: 0;
}

.admin-nav-menu {
    display: flex;
    gap: 0;
    padding: 0 20px;
    overflow-x: auto;
}

.admin-nav-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.admin-nav-btn:hover {
    background: #f8f9fa;
    color: #009fe3;
}

.admin-nav-btn.active {
    color: #009fe3;
    border-bottom-color: #009fe3;
    background: #f8f9fa;
}

.admin-nav-actions {
    display: flex;
    align-items: center;
}

.admin-logout-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    background: #dc3545;
    color: white;
}

.admin-content {
    padding: 10px 30px 30px 30px;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 120px; /* Account for fixed navigation */
}

/* Admin Controls */
.admin-controls {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-and-view-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .search-and-view-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .view-controls {
        justify-content: center;
    }
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 500px;
}

.search-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.search-input-group {
    position: relative;
    width: 100%;
}

.search-input-group input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-input-group input:focus {
    outline: none;
    border-color: #009fe3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
}

.view-controls {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #f8f9fa;
    border-color: #009fe3;
}

.view-btn.active {
    background: #009fe3;
    color: white;
    border-color: #009fe3;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-pill-group {
    display: flex;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #666;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: #009fe3;
    color: #009fe3;
}

.filter-pill.active {
    background: #009fe3;
    border-color: #009fe3;
    color: white;
}

.filter-pill i {
    font-size: 0.8rem;
}

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

.filter-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
}

.filter-group select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 120px;
}

/* Children Grid View */
.admin-children-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    min-height: 200px;
}

/* Override display when hidden via JavaScript */
.admin-children-grid[style*="display: none"] {
    display: none !important;
}

/* Ensure grid items work properly in grid */
.admin-children-grid .admin-child-card {
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Allow shrinking */
    flex-shrink: 1; /* Allow shrinking */
}


.admin-child-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.admin-child-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.admin-child-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.admin-child-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.admin-child-age {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-child-details {
    margin-bottom: 15px;
}

.admin-child-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.admin-child-detail-label {
    color: #666;
    font-weight: 500;
}

.admin-child-detail-value {
    color: #333;
}

.admin-child-conditions {
    margin-bottom: 15px;
}

.admin-child-condition {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #666;
}

.admin-child-actions {
    display: flex;
    gap: 8px;
}

.admin-child-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.admin-child-btn:hover {
    background: #f8f9fa;
    border-color: #009fe3;
    color: #009fe3;
}

.admin-child-btn.primary {
    background: #009fe3;
    color: white;
    border-color: #009fe3;
}

.admin-child-btn.primary:hover {
    background: #007bb5;
}

.admin-child-click-hint {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

.admin-child-activities {
    margin-top: 15px;
}

.admin-child-activities strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9rem;
}

.admin-child-activity-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-activity-pill {
    display: inline-block;
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-activity-pill.no-activities {
    background: #f5f5f5;
    color: #666;
    border-color: #e0e0e0;
    font-style: italic;
}

.admin-section {
    display: none;
    padding: 10px 20px 20px 20px;
}

.admin-section-actions {
    margin-bottom: 20px;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

/* Admin Messages */
.admin-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.admin-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.admin-message i {
    font-size: 18px;
}

.admin-message-success i {
    color: #28a745;
}

.admin-message-error i {
    color: #dc3545;
}

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

/* Admin Child Detail Modal */
.admin-child-detail-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-child-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.admin-child-header-info h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-child-header-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-child-detail-header h3 {
    margin: 0;
    color: #333;
}

.admin-child-age-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-child-family-badge {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-child-header-stats {
    display: flex;
    gap: 20px;
}

.admin-child-stat {
    text-align: center;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-width: 80px;
}

.admin-child-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #009fe3;
    margin-bottom: 5px;
}

.admin-child-stat-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Phone and Email Links */
.phone-link, .admin-child-phone-link {
    color: #009fe3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.phone-link:hover, .admin-child-phone-link:hover {
    color: #007bb5;
    text-decoration: underline;
}

.admin-child-email-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.admin-child-email-link:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.admin-child-detail-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.admin-child-detail-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.admin-child-detail-section h4 {
    margin: 0 0 15px 0;
    color: #009fe3;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-child-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.admin-child-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-child-detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.admin-child-detail-section .admin-child-detail-item span {
    color: #333;
    font-size: 0.95rem;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.admin-child-detail-item.full-width {
    grid-column: 1 / -1;
}

.admin-child-consent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.admin-child-consent-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.admin-child-consent-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.admin-child-detail-contacts,
.admin-child-detail-activities {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-child-doctor-item,
.admin-child-contact-item,
.admin-child-activity-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-child-doctor-item {
    flex-direction: column;
    align-items: flex-start;
}

.admin-child-doctor-info {
    width: 100%;
}

.admin-child-doctor-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.admin-child-doctor-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-child-doctor-details div {
    font-size: 0.9rem;
    color: #666;
}

.admin-child-contact-info,
.admin-child-activity-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-child-contact-name,
.admin-child-activity-name {
    font-weight: 600;
    color: #333;
}

.admin-child-contact-details,
.admin-child-activity-details {
    font-size: 0.9rem;
    color: #666;
}

.admin-child-consent-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-child-consent-yes {
    background: #d4edda;
    color: #155724;
}

.admin-child-consent-no {
    background: #f8d7da;
    color: #721c24;
}

.admin-section.active {
    display: block;
}

.admin-section-header {
    margin-bottom: 30px;
}

.admin-section-header h2 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 2rem;
}

.admin-section-header p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #009fe3, #007bb5);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.stat-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-recent-activity {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-recent-activity h3 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #009fe3;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #009fe3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1rem;
}

.activity-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.activity-time {
    color: #999;
    font-size: 0.8rem;
}

/* Admin Tables */
.admin-table-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Override display when hidden via JavaScript */
.admin-table-container[style*="display: none"] {
    display: none !important;
}

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

.admin-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    color: #555;
    font-size: 0.9rem;
}

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

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Admin Activities Grid */
.admin-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.admin-activity-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.admin-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.admin-activity-header h4 {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.admin-activity-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-activity-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.admin-activity-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

.registration-count {
    color: #009fe3;
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-activity-actions {
    display: flex;
    gap: 10px;
}

/* Volunteer Tabs */
.admin-volunteer-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-btn {
    background: #fff;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #009fe3;
}

.tab-btn.active {
    color: #009fe3;
    border-bottom-color: #009fe3;
    background: #f8f9fa;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.report-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.report-card h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.report-card p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-nav-menu {
        padding: 0 10px;
    }
    
    .admin-nav-btn {
        padding: 12px 15px;
        font-size: 0.8rem;
    }
    
    .admin-content {
        padding: 20px 15px;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-activities-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-children-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive grid behavior */
@media (min-width: 768px) {
    .admin-children-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    .admin-children-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Ensure grid works properly */
.admin-children-grid {
    display: grid !important;
    gap: 20px !important;
}

.admin-children-grid .admin-child-card {
    min-width: 0 !important;
    width: 100% !important;
}

/* Account Creation Section */
.account-creation-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.account-creation-section h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.account-benefits {
    margin-bottom: 1rem;
}

.account-benefits p {
    margin-bottom: 0.5rem;
    color: #495057;
}

.account-benefits ul {
    margin: 0;
    padding-left: 1.2rem;
}

.account-benefits li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.account-benefits li i {
    color: #28a745;
    margin-right: 0.5rem;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

/* Add Child Question */
.add-child-question {
    text-align: center;
    padding: 2rem;
}

.add-child-question p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #495057;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button-group .btn {
    min-width: 200px;
}

/* Registration Review */
#registration-review {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.review-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-weight: 500;
    color: #495057;
}

.review-value {
    color: #6c757d;
    text-align: right;
}

.child-review {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.child-review h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.emergency-contact-review {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.emergency-contact-review:last-child {
    margin-bottom: 0;
}

.activity-permission-review {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.25rem;
}

/* Consent Section */
.consent-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.consent-section h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.consent-section .form-group {
    margin-bottom: 1rem;
}

.consent-section .form-group:last-child {
    margin-bottom: 0;
}

/* Progress Indicator */
.progress-indicator {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #007bff;
    color: white;
}

.progress-step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

.progress-step.completed .step-label {
    color: #28a745;
}

.progress-step.completed .step-number::after {
    content: '✓';
    font-size: 0.9rem;
}

/* Responsive progress indicator */
@media (max-width: 768px) {
    .progress-indicator {
        display: none;
    }
}

/* Registration Page Logo */
.parent-registration-active .header .header-logo {
    max-height: 100px !important;
    width: auto !important;
}

.parent-registration-active .header h1 {
    margin-bottom: 1rem;
}

/* Checkbox Groups for Child Form */
.checkbox-group {
    margin-bottom: 0.5rem;
}

.checkbox-group .checkbox-label {
    font-weight: 500;
    color: #495057;
}

/* Reuse Emergency Contacts Option */
.reuse-contacts-option {
    margin-bottom: 2rem;
}

.reuse-contacts-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    position: relative;
    overflow: hidden;
}

.reuse-contacts-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2196f3, #9c27b0, #ff9800);
}

.reuse-contacts-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.reuse-contacts-header i {
    font-size: 1.5rem;
    color: #2196f3;
}

.reuse-contacts-header h4 {
    margin: 0;
    color: #1976d2;
    font-size: 1.25rem;
    font-weight: 600;
}

.reuse-contacts-card p {
    margin: 0 0 1rem 0;
    color: #424242;
    font-size: 0.95rem;
    line-height: 1.4;
}

.reuse-checkbox {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reuse-checkbox:hover {
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.reuse-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #2196f3;
    border-color: #2196f3;
}

.reuse-checkbox input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

.reuse-checkbox strong {
    color: #1976d2;
    font-size: 1rem;
}

/* Registration Success Messages */
.registration-success {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: #28a745;
}

.registration-success h2 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.registration-success p {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.5;
}

.success-note {
    font-style: italic;
    color: #6c757d;
    font-size: 0.95rem;
}

.success-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 200px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.success-actions .btn i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Post-Registration Account Creation Form */
.account-creation-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Google Sign-In Styling */
.google-signin-section {
    margin-bottom: 2rem;
}

.btn-google {
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-google:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-google i {
    font-size: 18px;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 14px;
    position: relative;
}

.google-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 1rem;
    font-style: italic;
}

/* Error Message Styling */
.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    display: none;
    text-align: center;
    font-weight: 500;
}

.password-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    display: block;
    text-align: center;
    font-weight: 500;
}

.development-note {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-style: italic;
}

.development-note i {
    margin-right: 8px;
    color: #17a2b8;
}

.development-bypass {
    margin-top: 1.5rem;
    text-align: center;
}

.development-bypass .btn {
    background: #6c757d;
    border-color: #6c757d;
}

.development-bypass .btn:hover {
    background: #5a6268;
    border-color: #545b62;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: #007bff;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.form-header p {
    color: #6c757d;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

input[readonly] {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}



