/* website-launchpad/css/components.css */
/* Header/Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-blue);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Project Specific Styles */
.project-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.project-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.project-header h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.project-header p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.project-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

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

/* Settings Styles */
.settings-header {
    background: #f9fafb;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

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

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.settings-card h2 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.danger-zone {
    border-color: #fca5a5;
    background: #fef2f2;
}

.danger-zone h2 {
    color: #dc2626;
}

.warning-text {
    color: #dc2626;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.danger-action {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #fca5a5;
}

.danger-action h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #dc2626;
}

.danger-action p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Team Collaboration */
.team-invite {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.team-invite input,
.team-invite select {
    flex: 1;
    min-width: 150px;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.member-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}

.member-role {
    font-size: 0.8rem;
    color: #6b7280;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
}

.empty-team {
    text-align: center;
    padding: 30px;
    color: #9ca3af;
}

/* Integrations */
.integrations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.integration-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.integration-info h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.integration-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Analytics Styles */
.analytics-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

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

.metric-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.metric-item h3 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 10px;
}

.metric-unit {
    font-size: 1rem;
    color: #6b7280;
}

.metric-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease;
}

.export-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.export-icon {
    margin-right: 8px;
}

/* Time Tracking */
.time-tracking {
    text-align: center;
}

.time-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.time-total,
.time-session {
    text-align: center;
}

.time-total h3,
.time-session h3 {
    font-size: 2.5rem;
    margin: 0 0 5px 0;
    color: #1f2937;
}

.time-total p,
.time-session p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.time-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Loading States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6b7280;
}

.loading-state p {
    margin-top: 15px;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .project-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .team-invite {
        flex-direction: column;
    }
    
    .time-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .export-options {
        flex-direction: column;
    }
}
