/* User Dashboard Styles */
.family-tree-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dashboard-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.dashboard-container h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* Status Cards */
.dashboard-status {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid;
}

.dashboard-status.not-registered {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.dashboard-status.pending {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.dashboard-status.rejected {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.dashboard-status.approved {
    background: #d4edda;
    border-left-color: #28a745;
}

.status-icon {
    font-size: 24px;
    margin-right: 15px;
}

.status-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.status-content p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.registration-details {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.registration-details p {
    margin: 5px 0;
    font-size: 14px;
}

.admin-notes {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.admin-notes strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

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

.tab-button:hover {
    color: #333;
    background: #f8f9fa;
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-content {
    display: none;
}

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

/* Form Styles */
.request-form-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.request-form {
    max-width: 800px;
}

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

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

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

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.member-details-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 500;
}

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

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

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Requests List */
.requests-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.requests-list {
    max-width: 800px;
}

.no-requests {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.request-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.request-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.request-type {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.request-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.request-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.request-status.status-approved {
    background: #d4edda;
    color: #155724;
}

.request-status.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.request-details {
    padding: 20px;
}

.request-details p {
    margin: 10px 0;
    color: #666;
}

.request-details strong {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .family-tree-dashboard {
        padding: 10px;
    }
    
    .dashboard-container {
        padding: 20px;
    }
    
    .dashboard-container h2 {
        font-size: 24px;
    }
    
    .dashboard-status {
        flex-direction: column;
        text-align: center;
    }
    
    .status-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .dashboard-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid #e9ecef;
        border-right: none;
    }
    
    .tab-button.active {
        border-bottom-color: #e9ecef;
        border-left: 3px solid #3498db;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .request-status {
        align-self: flex-end;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dashboard-container {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .dashboard-container h2 {
        color: #ecf0f1;
    }
    
    .dashboard-status.not-registered {
        background: #3e2723;
    }
    
    .dashboard-status.pending {
        background: #1a252f;
    }
    
    .dashboard-status.rejected {
        background: #2d1b1f;
    }
    
    .dashboard-status.approved {
        background: #1b2d20;
    }
    
    .status-content p {
        color: #bdc3c7;
    }
    
    .registration-details {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .admin-notes {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .admin-notes strong {
        color: #ecf0f1;
    }
    
    .dashboard-tabs {
        border-bottom-color: #4a5f7a;
    }
    
    .tab-button {
        color: #bdc3c7;
    }
    
    .tab-button:hover {
        color: #ecf0f1;
        background: #34495e;
    }
    
    .form-group label {
        color: #ecf0f1;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: #3498db;
        background: #34495e;
    }
    
    .member-details-form {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .request-item {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .request-header {
        background: #2c3e50;
        border-bottom-color: #4a5f7a;
    }
    
    .request-type {
        color: #ecf0f1;
    }
    
    .request-details p {
        color: #bdc3c7;
    }
    
    .request-details strong {
        color: #ecf0f1;
    }
}
