/* Client Portal Styles */

.client-portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.client-portal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #2C3E50, #34495E, #5D6D7E);
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    pointer-events: none;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-message {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Onboarding Checklist Section */
.checklist-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.checklist-section h2 {
    color: var(--text-color, #333);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

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

.checklist-item.required {
    border-left: 4px solid #dc3545;
}

.checklist-item.completed {
    border-left: 4px solid #28a745;
    background: #f8fff8;
}

.checklist-checkbox {
    flex-shrink: 0;
    margin-top: 0.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.checklist-checkbox:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.check-icon {
    font-size: 1.5rem;
    display: block;
    transition: transform 0.2s ease;
}

.checklist-checkbox:hover .check-icon {
    transform: scale(1.1);
}

.checklist-content {
    flex: 1;
}

.checklist-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.checklist-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color, #333);
}

.required-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.optional-badge {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.checklist-description {
    margin: 0 0 1rem 0;
    color: #6c757d;
    line-height: 1.5;
}

.checklist-action {
    display: inline-block;
    background: var(--primary-color, #007bff);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.checklist-action:hover {
    background: var(--primary-color-dark, #0056b3);
    color: white;
    text-decoration: none;
}

.checklist-completed {
    color: #28a745;
    font-weight: 500;
    font-size: 0.9rem;
}

.checklist-tooltip {
    position: relative;
    cursor: help;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.tooltip-icon {
    font-size: 1.2rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.checklist-tooltip:hover .tooltip-icon {
    color: var(--primary-color, #007bff);
}

.checklist-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 300px;
    white-space: normal;
    text-align: center;
}

.checklist-tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checklist-tooltip:hover::after,
.checklist-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Quick Actions Section */
.quick-actions-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color, #333);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--primary-color, #007bff);
}

.quick-action-icon {
    color: var(--primary-color, #007bff);
    font-size: 2rem;
}

.quick-action-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color, #333);
}

.quick-action-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Appointments Preview */
.appointments-preview-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color, #333);
}

.appointments-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.appointment-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.appointment-date {
    text-align: center;
    min-width: 60px;
}

.appointment-date .date {
    display: block;
    font-weight: 600;
    color: var(--primary-color, #007bff);
}

.appointment-date .time {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
}

.appointment-details {
    flex: 1;
}

.appointment-details h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-color, #333);
}

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

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.confirmed {
    background: #d4edda;
    color: #155724;
}

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

.status-badge.client-confirmed {
    background: #cce5ff;
    color: #004085;
}

.view-all-link {
    text-align: center;
}

/* No Appointments Section */
.no-appointments-section {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-appointments-section h2 {
    color: var(--text-color, #333);
    margin-bottom: 1rem;
}

.no-appointments-section p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Recent Activity */
.recent-activity-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color, #333);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.activity-icon {
    color: var(--primary-color, #007bff);
    font-size: 1.5rem;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    color: var(--text-color, #333);
}

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


/* Stats Section */
.stats-section {
    margin-bottom: 2rem;
}

.stats-section h2 {
    color: var(--text-color, #333);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.stat-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E46760, #D4A5A0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color, #333);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Resources Section */
.resources-section {
    margin-bottom: 2rem;
}

.resources-section h2 {
    color: var(--text-color, #333);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.resource-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E46760, #D4A5A0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.resource-content {
    flex: 1;
}

.resource-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color, #333);
    font-size: 1.1rem;
    font-weight: 600;
}

.resource-content p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.9rem;
}

.resource-link {
    display: inline-block;
    color: #E46760;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #D4A5A0;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .client-portal-container {
        padding: 1rem;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .resource-card {
        padding: 1rem;
    }
}
