/* ============================================================
   LifeAdmin - Application Styles
   Bootstrap 5 + Custom overrides
   ============================================================ */

/* === Layout === */
.la-nav {
    border-bottom: 1px solid var(--bs-border-color);
    backdrop-filter: blur(12px);
}

[data-bs-theme="light"] .la-nav {
    background: rgba(255, 255, 255, 0.92);
}

[data-bs-theme="dark"] .la-nav {
    background: rgba(33, 37, 41, 0.92);
}

.la-main {
    min-height: calc(100vh - 120px);
}

.la-footer {
    border-top: 1px solid var(--bs-border-color);
}

/* === Stat Cards === */
.la-stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid var(--bs-border-color);
}

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

.la-stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.la-stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.la-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Card Images === */
.la-card-img {
    height: 160px;
    object-fit: cover;
}

.la-card-img-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--bs-border-color);
}

[data-bs-theme="light"] .la-card-img-placeholder {
    background: #f8f9fa;
}

[data-bs-theme="dark"] .la-card-img-placeholder {
    background: #1a1d20;
}

.la-featured-img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

/* === Area & List Cards === */
.la-area-card,
.la-list-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.la-area-card:hover,
.la-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* === Tables === */
.table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* === Badges === */
.badge {
    font-weight: 500;
}

/* === Forms === */
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
}

/* === Breadcrumb === */
.breadcrumb {
    font-size: 0.875rem;
}

/* === Status colors for badges === */
.badge.bg-light {
    border: 1px solid var(--bs-border-color);
}

/* === List group item hover === */
.list-group-item-action:hover {
    border-left: 3px solid var(--bs-primary);
    padding-left: calc(1rem - 3px);
}

/* === Responsive tweaks === */
@media (max-width: 767px) {
    .la-stat-number {
        font-size: 1.5rem;
    }
    .la-stat-icon {
        font-size: 1.3rem;
    }
    .la-card-img {
        height: 120px;
    }
}

/* === Alert dismissible styling === */
.alert {
    border-radius: 0.5rem;
}

/* === Card improvements === */
.card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-header {
    font-weight: 600;
    font-size: 0.9rem;
}

/* === Navbar brand === */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* === Custom scrollbar for dark mode === */
[data-bs-theme="dark"] {
    color-scheme: dark;
}

/* === Link styling in cards === */
.card a.text-decoration-none {
    color: var(--bs-body-color);
}

.card a.text-decoration-none:hover {
    color: var(--bs-primary);
}

/* === Kanban Board === */
.la-kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.la-kanban-col {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    flex: 1;
    background: var(--bs-tertiary-bg);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.la-kanban-card {
    transition: box-shadow 0.15s ease;
}

.la-kanban-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* === Sortable Row Drag === */
.la-sortable-row {
    cursor: grab;
}

.la-sortable-row:active {
    cursor: grabbing;
}

.la-sortable-row.sortable-ghost {
    opacity: 0.4;
}

/* ============================================================
   Homepage Styles
   ============================================================ */

/* Hero Section */
.la-hero {
    position: relative;
    margin-top: -1rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.la-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.la-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
}

/* Areas Showcase */
.la-areas-showcase {
    background: var(--bs-tertiary-bg);
    border-radius: 1rem;
}

.la-area-showcase-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.la-area-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Step Numbers */
.la-step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* CTA Section */
.la-cta {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0a4a42 100%);
    border-radius: 1rem;
}

[data-bs-theme="dark"] .la-cta {
    background: linear-gradient(135deg, #1a6b5a 0%, #0d3d35 100%);
}

/* Homepage responsive */
@media (max-width: 767px) {
    .la-hero {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    .la-hero .display-3 {
        font-size: 2rem;
    }
    .la-step-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ============================================================
   Lightbox / Gallery
   ============================================================ */

/* Thumbnail grid */
.la-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.la-gallery-thumb {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.la-gallery-thumb:hover {
    border-color: var(--bs-primary);
    transform: scale(1.05);
}

.la-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox modal image */
.la-lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.la-lightbox-img.la-fading {
    opacity: 0;
}

/* Lightbox navigation arrows */
.la-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 5;
}

.la-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

.la-lightbox-prev { left: 16px; }
.la-lightbox-next { right: 16px; }

/* Lightbox dots */
.la-lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.la-lightbox-dot.active {
    background: var(--bs-primary);
}

.la-lightbox-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Slideshow progress bar */
.la-slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--bs-primary);
    transition: width linear;
    z-index: 6;
}