/* Citizen Dossier - Cyberpunk Document Aesthetic */
:root {
    --ds-bg-color: rgba(20, 20, 25, 0.9);
    --ds-accent-blue: #25a5e1;
    --ds-accent-gold: #ffcc33;
    --ds-accent-red: #ff3333;
    --ds-text-primary: #ccc;
    --ds-text-secondary: rgba(255, 255, 255, 0.5);
}

.dos-card {
    position: relative;
    width: 100%;
    height: 300px; /* Matching ID Card height */
    background: var(--ds-bg-color);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    color: var(--ds-text-primary);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.dos-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('/static/img/dragon.png') no-repeat center center;
    background-size: cover;
    opacity: 0.038;
    filter: drop-shadow(0.5px 0.5px 0px rgba(255, 255, 255, 0.15)) 
            drop-shadow(-0.5px -0.5px 0px rgba(0, 0, 0, 0.5)); /* Embossed effect */
    pointer-events: none;
    z-index: 1;
}

.dos-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(90deg, var(--ds-accent-blue), var(--ds-accent-gold));
    filter: blur(6px);
    opacity: 0.8;
    z-index: 15;
}

.dos-body {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Sections */
.dos-section {
    margin-bottom: 20px;
}

.dos-section:last-child {
    margin-bottom: 0;
}

.dos-sec-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4); /* Updated to dark grey */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dos-sec-label img {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
}

.dos-sec-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    filter: blur(0.5px);
}

/* Biometric Bars */
.dos-biostat-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dos-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dos-stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dos-progress-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.dos-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ds-accent-blue), var(--ds-accent-gold));
    box-shadow: 0 0 10px rgba(37, 165, 225, 0.3);
    transition: width 1s ease-in-out;
}

/* Combat Stats Grid */
.dos-grid-kda {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.dos-kda-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dos-kda-val {
    font-size: 14px;
    font-weight: 800;
}

.dos-kda-val.highlight {
    color: var(--ds-accent-gold);
}

.dos-kda-val.highlight-red {
    color: var(--ds-accent-red);
}

.dos-kda-lbl {
    font-size: 7px;
    text-transform: uppercase;
    color: var(--ds-text-secondary);
    letter-spacing: 0.5px;
}

/* Financial Assets */
.dos-finance-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dos-fin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 2px solid var(--ds-accent-blue);
}

.dos-fin-label {
    font-size: 10px;
    color: var(--ds-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dos-fin-label img {
    width: 14px;
    height: 14px;
    image-rendering: pixelated;
}

.dos-fin-val {
    font-size: 12px;
    font-weight: 700;
}
