/* Citizen Dossier Styles */
.dossier-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background-image: 
        linear-gradient(rgba(167, 146, 119, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 146, 119, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.dossier-overlay.active {
    display: flex;
}

.dossier-container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    min-height: 80vh;
    background: #1a1612;
    border: 1px solid rgba(167, 146, 119, 0.3);
    margin: 2rem auto;
    padding: 0;
    box-shadow: 0 0 50px rgba(167, 146, 119, 0.2);
}

.dossier-header {
    background: rgba(167, 146, 119, 0.1);
    border-bottom: 1px solid rgba(167, 146, 119, 0.3);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dossier-header-icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(167, 146, 119, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF2E1;
    font-size: 0.8rem;
    background: rgba(167, 146, 119, 0.1);
}

.dossier-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF2E1;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dossier-tabs {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(167, 146, 119, 0.2);
    position: relative;
}

.dossier-tab {
    background: transparent;
    border: 1px solid rgba(167, 146, 119, 0.3);
    color: #EAD8C0;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
    position: relative;
}

.dossier-tab.active {
    background: rgba(167, 146, 119, 0.2);
    border-color: rgba(167, 146, 119, 0.5);
    color: #FFF2E1;
    border-width: 2px;
}

.dossier-tab:hover:not(.active) {
    background: rgba(167, 146, 119, 0.05);
    border-color: rgba(167, 146, 119, 0.4);
}

.dossier-citizen-record {
    margin-left: auto;
    font-size: 0.75rem;
    color: #A79277;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dossier-content {
    padding: 2rem;
    min-height: 500px;
}

.dossier-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: #EAD8C0;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10001;
}

.dossier-close:hover {
    color: #FFF2E1;
}

/* Dossier Overview Layout */
.dossier-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dossier-section {
    background: rgba(167, 146, 119, 0.05);
    border: 1px solid rgba(167, 146, 119, 0.2);
    padding: 1.5rem;
}

.dossier-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(167, 146, 119, 0.2);
}

.dossier-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FFF2E1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.dossier-edit-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(167, 146, 119, 0.3);
    color: #EAD8C0;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.dossier-edit-button:hover {
    background: rgba(167, 146, 119, 0.1);
    border-color: rgba(167, 146, 119, 0.5);
}

.dossier-edit-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(167, 146, 119, 0.5);
}

/* Profile Section */
.dossier-profile-avatar {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(167, 146, 119, 0.4);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #A79277;
    background: rgba(167, 146, 119, 0.05);
    font-weight: 700;
}

.dossier-profile-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFF2E1;
    margin: 0 0 0.5rem 0;
}

.dossier-profile-handle {
    font-size: 0.9rem;
    color: #A79277;
    margin: 0 0 0.5rem 0;
}

.dossier-profile-handle-label {
    color: #A79277;
    margin-right: 0.5rem;
}

.dossier-profile-handle-value {
    color: #FFF2E1;
}

.dossier-profile-rank {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.dossier-rank-icon {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(167, 146, 119, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #FFF2E1;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(167, 146, 119, 0.1);
}

.dossier-rank-text {
    color: #FFF2E1;
    font-size: 1rem;
    font-weight: 500;
}

.dossier-info-item {
    margin: 1rem 0;
}

.dossier-info-label {
    font-size: 0.75rem;
    color: #A79277;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.dossier-info-value {
    font-size: 1rem;
    color: #FFF2E1;
}

/* Organization Section */
.dossier-org-redacted {
    background: rgba(200, 50, 50, 0.1);
    border: 2px solid rgba(200, 50, 50, 0.5);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.dossier-org-redacted-text {
    color: #ff4444;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dossier-org-data {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #D1BB9E;
    line-height: 1.8;
    margin: 1rem 0;
    word-break: break-all;
}

.dossier-bio-label {
    font-size: 0.75rem;
    color: #A79277;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0 0.5rem 0;
}

.dossier-bio-content {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #FFF2E1;
    line-height: 1.8;
    word-break: break-all;
}

.dossier-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #EAD8C0;
}

/* Responsive */
@media (max-width: 968px) {
    .dossier-overview {
        grid-template-columns: 1fr;
    }
    
    .dossier-container {
        width: 95%;
        margin: 1rem auto;
    }
    
    .dossier-header {
        padding: 1rem 1.5rem;
    }
    
    .dossier-content {
        padding: 1.5rem;
    }
}

