/* components.css - Reusable Components */

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-pale);
    border-top-color: var(--sage);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--charcoal);
}

.empty-state p {
    color: var(--gray-medium);
}

/* Cards */
.summary-card {
    flex: 1;
    background: var(--cream);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-pale);
}

.stat-card {
    background: var(--warm-white);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-pale);
}

/* Buttons */
.save-session-btn {
    width: 100%;
    padding: 16px;
    background: var(--sage);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.continue-btn {
    width: 100%;
    padding: 16px;
    background: var(--sage);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.cancel-btn, .submit-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background: var(--gray-pale);
    border: none;
    color: var(--gray-dark);
}

.submit-btn {
    background: var(--sage);
    border: none;
    color: white;
}

.submit-btn:hover {
    background: var(--sage-dark);
}

.back-btn {
    background: none;
    border: none;
    color: var(--sage);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-medium);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--gray-pale);
}

/* Forms */
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
}

/* Section Titles */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 16px;
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 48px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--gray-light);
    border-radius: 14px;
    transition: all 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle input:checked + .toggle-slider {
    background: var(--sage);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Tags */
.tag-btn {
    padding: 8px 16px;
    background: var(--gray-pale);
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.tag-btn.active {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
}

/* Avatars */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--sage-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.avatar:hover {
    transform: scale(1.05);
}