        :root {
            --primary: #0284c7;
            --primary-hover: #0369a1;
            --secondary: #0f172a;
            --bg-body: #f8fafc;
            --bg-card: #ffffff;
            --text-main: #334155;
            --text-muted: #64748b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
            --radius: 12px;
        }

        * { 
            box-sizing: border-box; 
            margin: 0; 
            padding: 0; 
        }

        body { 
            font-family: 'Inter', sans-serif; 
            background-color: var(--bg-body); 
            color: var(--text-main); 
            padding: 20px; 
        }

        .container { 
            max-width: 1200px; 
            margin: 0 auto; 
        }

        header {
            display: flex; 
            align-items: center; 
            justify-content: space-between;
            background: var(--bg-card); 
            padding: 20px 30px; 
            border-radius: var(--radius);
            box-shadow: var(--shadow); 
            margin-bottom: 30px; 
            border: 1px solid var(--border);
        }

        .logo-area { 
            display: flex; 
            align-items: center; 
            gap: 12px; 
        }

        .logo-icon { 
            background: var(--primary); 
            color: white; 
            width: 40px; 
            height: 40px; 
            border-radius: 8px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            font-weight: bold; 
        }

        .logo-text h1 { 
            font-size: 1.25rem; 
            color: var(--secondary); 
            font-weight: 700; 
        }

        .logo-text p { 
            font-size: 0.85rem; 
            color: var(--text-muted); 
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
            gap: 24px;
        }

        .card {
            background: var(--bg-card); 
            border-radius: var(--radius); 
            border: 1px solid var(--border);
            box-shadow: var(--shadow); 
            padding: 24px; 
            display: flex; 
            flex-direction: column;
        }

        .card-header { 
            margin-bottom: 15px; 
        }

        .card-icon { 
            font-size: 2rem; 
            margin-bottom: 12px; 
            display: inline-block; 
        }

        .card h2 { 
            font-size: 1.2rem; 
            color: var(--secondary); 
            margin-bottom: 6px; 
        }

        .card p { 
            font-size: 0.9rem; 
            color: var(--text-muted); 
            margin-bottom: 10px; 
        }

        .info-tag { 
            font-size: 0.75rem; 
            background: #e0f2fe; 
            color: var(--primary); 
            padding: 4px 8px; 
            border-radius: 4px; 
            align-self: flex-start; 
            font-weight: 600; 
            margin-bottom: 15px; 
        }

        .btn {
            display: flex; 
            align-items: center; 
            justify-content: center; 
            gap: 8px; 
            width: 100%;
            padding: 12px 16px; 
            background-color: var(--primary); 
            color: white; 
            border: none;
            border-radius: 8px; 
            font-size: 0.95rem; 
            font-weight: 500; 
            cursor: pointer; 
            transition: background 0.2s;
        }

        .btn:hover { 
            background-color: var(--primary-hover); 
        }

        .dynamic-list-container {
            margin-top: 20px;
            border-top: 1px solid var(--border);
            padding-top: 15px;
            flex-grow: 1;
        }

        .list-title { 
            font-size: 0.85rem; 
            font-weight: 600; 
            color: var(--secondary); 
            text-transform: uppercase; 
            letter-spacing: 0.5px; 
            margin-bottom: 10px; 
        }

        .folder-list { 
            list-style: none; 
            max-height: 300px; 
            overflow-y: auto; 
        }

        .folder-item {
            display: flex; 
            align-items: center; 
            gap: 10px; 
            padding: 10px;
            border-radius: 6px; 
            background: #f8fafc; 
            margin-bottom: 8px;
            border: 1px solid var(--border); 
            font-size: 0.9rem; 
            cursor: pointer; 
            transition: background 0.2s;
        }

        .folder-item:hover { 
            background: #f1f5f9; 
            border-color: #cbd5e1; 
        }

        .folder-item .icon { 
            font-size: 1.1rem; 
        }

        .empty-message { 
            font-size: 0.85rem; 
            color: var(--text-muted); 
            font-style: italic; 
            text-align: center; 
            padding: 20px 0; 
        }

        .photo-grid {
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
            gap: 10px;
            max-height: 300px; 
            overflow-y: auto; 
            padding: 5px;
        }

        .photo-item {
            display: flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            aspect-ratio: auto !important;
            height: 45px !important; /* <--- MODIFICĂ AICI VALOAREA (ex: 60px, 70px) */
            background: #f8fafc !important;
            border: 1px solid var(--border) !important;
            border-radius: 6px !important;
            padding: 6px 12px !important;
            gap: 12px !important;
            cursor: pointer;
            transition: background 0.2s;
        }

        .photo-item img { 
            width: 100%; 
            height: 100%; 
            object-fit: cover; 
        }

        .photo-item .photo-name {
            position: absolute; 
            bottom: 0; 
            left: 0; 
            right: 0; 
            background: rgba(0,0,0,0.7);
            color: white; 
            font-size: 0.7rem; 
            padding: 2px 4px; 
            text-overflow: ellipsis; 
            white-space: nowrap; 
            overflow: hidden;
        }

 #dicomContainer {
    position: relative;
    width: 100%;
    height: 100vh; /* Ajustează în funcție de design-ul tău */
    overflow: hidden;
}

/* Viewer-ul ocupă tot spațiul de fundal */
#dicomViewer {
    width: 100%;
    height: 100%;
    background-color: #000; /* Standard pentru DICOM */
}

/* Mutarea barei în dreapta-mijloc */
#dicomToolbar {
    position: absolute;
    right: 15px;          /* Distanța față de marginea din dreapta */
    top: 50%;             /* Împinge bara la jumătatea ecranului */
    transform: translateY(-50%); /* Centrează perfect pe verticală */
    display: flex;
    flex-direction: column; /* Aliniere verticală a butoanelor */
    gap: 10px;            /* Spațiu între butoane */
    z-index: 10;          /* Rămâne deasupra viewer-ului */
}

/* Stil de bază pentru butoane (opțional, pentru aspect mobil curat) */
#dicomToolbar button {
    padding: 12px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    background-color: rgba(50, 50, 50, 0.8);
    color: white;
    cursor: pointer;
    touch-action: manipulation; /* Optimizează click-ul pe mobil */
}

#dicomToolbar button.active {
    background-color: #007bff; /* Evidențiere unealtă activă */
}

.download-btn {
    margin-left: auto;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #111;
    transition: 0.2s;
}

.download-btn:hover {
    background: #cbd5e1;
}