body {
}

/* Avatar Upload Styles */
.avatar-wrapper {
    display: inline-block;
}

.avatar-img {
    width: 80px;
    height: 80px;
}

.avatar-img-sm {
    width: 60px;
    height: 60px;
}

.avatar-initials {
    font-size: 1.5rem;
}

@media (min-width: 576px) {
    .avatar-img {
        width: 100px;
        height: 100px;
    }

    .avatar-initials {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .avatar-img {
        width: 120px;
        height: 120px;
    }
    .avatar-initials {
        font-size: 2.5rem;
    }
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.avatar-editable:hover .avatar-overlay {
    opacity: 1;
}

.avatar-dropzone {
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.avatar-dropzone:hover {
    border-color: var(--bs-primary) !important;
    background-color: var(--bs-light);
}

/* Homepage Hero */
.hero-section {
    background: var(--fn-dark);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(216, 81, 81, 0.25) 0%, rgba(236, 114, 20, 0.01) 40%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    line-height: 1.05;
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Required field indicator */
label.required::after {
    content: ' *';
    color: var(--fn-primary);
}

/* Session block responsive layout */
@media (max-width: 991.98px) {
    .session-block .block-inputs {
        width: 100% !important;
    }
}

/* ============================================================
   Profile Sidebar
   ============================================================ */
.profile-sidebar .avatar-img {
    width: 100px;
    height: 100px;
}

@media (min-width: 576px) {
    .profile-sidebar .avatar-img {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 992px) {
    .profile-sidebar .avatar-img {
        width: 140px;
        height: 140px;
    }
}

/* Ghost button style for edit/delete icons */
.btn-ghost-secondary {
    color: var(--bs-secondary-color);
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.btn-ghost-secondary:hover {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

/* ============================================================
   Profile Timeline
   ============================================================ */
.profile-timeline {
    position: relative;
    padding-left: 2rem;
}

.profile-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--bs-border-color);
}

.profile-timeline-item {
    position: relative;
}

.profile-timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bs-body-bg);
    border: 2px solid var(--bs-secondary-color);
    z-index: 1;
}

.profile-timeline-item.is-active .profile-timeline-dot {
    border-color: var(--bs-success);
    box-shadow: 0 0 0 4px rgba(var(--bs-success-rgb), 0.15);
}

.profile-timeline-card {
    transition: box-shadow 0.2s ease;
}

.profile-timeline-card:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* ============================================================
   Dark mode overrides
   ============================================================ */
[data-bs-theme="dark"] .profile-timeline::before {
    background-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .profile-timeline-dot {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .profile-timeline-card:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.25) !important;
}
