@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    /* Color Palette */
    --primary: #800000;
    /* Maroon */
    --primary-light: #a52a2a;
    --primary-dark: #5a0000;
    --secondary: #2C3E50;
    /* Deep Gray */
    --accent: #FFD700;
    /* Amber/Gold Highlights */
    --bg-light: #FFFFFF;
    --bg-alt: #F8F9FA;
    --text-main: #212529;
    --text-muted: #6C757D;
    --white: #FFFFFF;

    /* Gradients */
    --grad-hero: linear-gradient(135deg, #800000 0%, #a52a2a 100%);
    --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px-25px rgba(0, 0, 0, 0.15);

    /* Animation Speeds */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-maroon {
    color: var(--primary);
}

.text-white {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(128, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

nav.scrolled .nav-logo {
    color: var(--primary);
}

nav.scrolled .nav-links a {
    color: var(--secondary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    max-height: 120px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

nav.scrolled .nav-logo img {
    max-height: 80px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    /* Stay above mobile menu */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--primary);
    overflow: hidden;
    color: var(--white);
    padding: 100px 0 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, #a52a2a 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, #5a0000 0%, transparent 40%);
    animation: pulseBg 15s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.photo-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(3deg);
    transition: var(--transition);
    animation: floatFrame 6s ease-in-out infinite alternate;
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

@keyframes floatFrame {
    0% {
        transform: translateY(0) rotate(3deg);
    }

    100% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Floating Shapes */
.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 20s infinite linear;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 50px;
    left: -50px;
    animation: float 25s infinite linear reverse;
}

@keyframes float {
    from {
        transform: rotate(0deg) translate(0, 0);
    }

    to {
        transform: rotate(360deg) translate(20px, 20px);
    }
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.program-card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(128, 0, 0, 0.8));
    opacity: 0;
    transition: var(--transition);
}

.program-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.program-card:hover::after {
    opacity: 1;
}

.program-img {
    height: 250px;
    background: #ddd;
    position: relative;
}

.program-info {
    padding: 2.5rem;
}

.program-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Story Section */
.story-split {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.story-img {
    flex: 1;
    height: 500px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.story-content {
    flex: 1;
}

.story-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-banner {
    background: var(--grad-hero);
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

/* Dashboard Styles */
.dash-body {
    background-color: #f0f2f5;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.dash-header {
    margin-bottom: 2rem;
    display: flex;
    padding-top: 2rem;
    flex-direction: column;
}

.dash-header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
}

.filter-select {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--white);
    outline: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    flex: 1;
    min-width: 150px;
}

.dash-grid-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.metric-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    color: var(--secondary);
}

.chart-grid {
    display: grid;
    gap: 1.5rem;
}

.chart-grid.col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.chart-grid.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.chart-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.chart-canvas {
    width: 100%;
    min-height: 350px;
    flex: 1;
}

.insight-box {
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insight-box h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
}

.insight-box p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

/* Alert Animation */
.alert-pulse {
    background: rgba(128, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 4px;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(128, 0, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(128, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(128, 0, 0, 0);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-image-wrapper {
        margin-top: 1rem;
        max-width: 400px;
        width: 100%;
    }

    .photo-frame {
        max-width: 320px;
        margin: 0 auto;
    }

    .story-split {
        flex-direction: column;
        text-align: center;
    }

    .chart-grid.col-2,
    .chart-grid.col-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease-in-out;
        z-index: 1000;
        gap: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-links a {
        color: var(--secondary);
        font-size: 1.2rem;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-logo img {
        max-height: 75px;
    }

    nav.scrolled .nav-logo img {
        max-height: 65px;
    }

    .section {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .photo-frame {
        max-width: 250px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .story-content h2 {
        font-size: 2rem;
    }

    .dash-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .metric-cards {
        grid-template-columns: 1fr 1fr;
    }

    .chart-container {
        padding: 1rem;
    }

    .chart-canvas {
        min-height: 300px !important;
    }

    #chart-c1,
    #chart-c2,
    #chart-d1,
    #chart-g3 {
        min-height: 350px !important;
    }
}

@media (max-width: 480px) {
    .metric-cards {
        grid-template-columns: 1fr;
    }

    .nav-container {
        gap: 1rem;
    }
}

/* --- Case Analysis Styles --- */
.page-header {
    background: var(--bg-alt);
    padding: 10rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 4px solid var(--secondary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-main);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--primary);
}

.case-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.case-date {
    color: var(--text-muted);
}

.case-status {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    display: inline-block;
    max-width: 100%;
    /* Remove text-transform: uppercase to support long sentences */
}

.status-closed {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.status-ongoing {
    background-color: rgba(241, 196, 15, 0.15);
    color: #e67e22;
}

.status-active {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.case-title {
    font-size: 1.3rem;
    color: var(--primary);
    line-height: 1.3;
}

.case-meta {
    font-size: 0.9rem;
    color: var(--secondary);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
}

.case-summary {
    font-size: 0.95rem;
    flex-grow: 1;
}

.case-read-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
}

.case-card:hover .case-read-more {
    transform: translateX(5px);
}

/* --- Case Detail Styles --- */
.detail-header {
    text-align: left;
    padding-top: 8rem;
    padding-bottom: 3rem;
    background: var(--grad-surface);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--secondary);
    font-weight: 600;
}

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

.detail-header-content {
    max-width: 800px;
}

.detail-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.case-title-large {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.case-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.detail-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.action-list {
    list-style: none;
    margin-top: 1.5rem;
}

.action-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.action-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.action-content h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.action-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-box {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.sidebar-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--primary);
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: var(--secondary);
}

.summary-value {
    color: var(--text-main);
    text-align: right;
    max-width: 100%;
    line-height: 1.4;
}

/* Specific handling for colored statuses in sidebar */
.summary-value.status-closed,
.summary-value.status-active, 
.summary-value.status-ongoing {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.2rem;
    text-align: left; /* Better for wrapped sentences in sidebar */
}

.tip-box {
    background: var(--primary);
    color: var(--white);
}

.tip-box h3 {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.tip-box p {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Skeleton Loading Animation */
.skeleton {
    background: #f0f0f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Error States */
.error-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInError 0.8s ease-out forwards;
}

.error-icon {
    font-size: 4rem;
    color: var(--primary);
    animation: floatError 3s ease-in-out infinite;
    opacity: 0.7;
}

.error-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.error-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 450px;
    margin: 0 auto;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatError {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}
/* Case Detail Evidence Image */
.case-image-frame {
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: inline-block;
    max-width: 100%;
    width: 600px;
    margin: 2rem auto;
    border: 1px solid #eee;
    transition: var(--transition);
    overflow: hidden;
    text-align: center;
}

.case-image-frame img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

.case-image-view {
    text-align: center;
    margin-top: 2rem;
}

.case-image-frame:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
