/* --- Global Styles & Variables --- */
:root {
    --bg-color: #1a1d21; /* Dark blue-gray background */
    --header-bg: #0f1113; /* Very dark header */
    --card-bg: #2b2f36;   /* Neutral dark card */
    --border-color: #4a525f;
    --text-primary: #d1d5db; /* Light gray text */
    --text-secondary: #8e99a7;
    --accent-blue: #3c8dff;
    --priority-high-color: #ff4d4d;
    --status-active-color: #00e09a;
    --font-primary: 'Roboto Mono', monospace; /* Tech/mono font */
    --font-secondary: 'Orbitron', sans-serif; /* Header/tech font */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* --- Header Bar --- */
.main-header {
    background-color: var(--header-bg);
    padding: 15px 30px;
    border-bottom: 2px solid var(--accent-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.main-header h1 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-status {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-active {
    color: var(--status-active-color);
    font-weight: 700;
}

/* --- Profile Section --- */
.profile-header {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.profile-pic-container {
    margin-right: 25px;
}

.profile-pic-placeholder {
    width: 200px;
    height: 200px;
    background-color: #1a1d21;
    border: 2px solid var(--border-color);
    border-radius: 50%; /* Circular photo area */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    overflow: hidden; /* to keep the image inside the circle */
}

.profile-pic-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-summary h2 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.profile-summary p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.profile-summary p strong {
    color: var(--text-primary);
    width: 100px;
    display: inline-block;
}

.priority-high {
    color: var(--priority-high-color);
    font-weight: 700;
}

/* --- Info Cards Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden; /* To contain the header */
}

.info-card.full-width {
    grid-column: 1 / -1; /* Makes this card span the full width */
}

.card-header {
    background-color: #343a43; /* Slightly lighter than card bg */
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: #ffffff;
    text-transform: uppercase;
}

.card-content {
    padding: 15px;
}

.card-content h4 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.card-content hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

/* --- Info Tables --- */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 10px 5px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table th {
    color: var(--text-secondary);
    font-weight: 700;
    width: 30%; /* Gives the label a set width */
}

.info-table td {
    color: var(--text-primary);
}

/* Specific style for the log table */
.log-table th,
.log-table td {
    width: auto;
    text-align: left;
    padding: 12px 8px;
}

.log-table thead {
    background-color: #343a43;
}

.log-table thead th {
    color: var(--text-primary);
}

.log-table tbody tr:nth-child(even) {
    background-color: #2f343c; /* Subtle striping */
}

.work-list, .simple-list {
    padding-left: 20px;
}

.work-list li, .simple-list li {
    margin-bottom: 8px;
}

.work-list li strong {
    color: var(--text-primary);
}

.mobile-cards {
    display: none;
}

.case {
    background-color: #2f343c;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.case h3 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--priority-high-color);
    margin-bottom: 10px;
}

.case-type {
    color: var(--priority-high-color);
    font-weight: 700;
}

.current-address {
    color: var(--priority-high-color);
    font-weight: 700;
}

.organization {
    color: var(--priority-high-color);
    font-weight: 700;
}

.amount {
    color: var(--priority-high-color);
    font-weight: 700;
}

/* --- Two Column Layout --- */
.two-column-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.column {
    flex: 1;
}

.column img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 10px;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .two-column-content {
        flex-direction: column;
    }

    .profile-pic-container {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .profile-summary h2 {
        font-size: 1.8rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .desktop-table {
        display: none;
    }

    .mobile-cards {
        display: block;
    }
}

/* --- Reviews Grid --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Default for smaller screens */
    gap: 15px;
    padding: 15px;
}

@media (min-width: 1024px) { /* Adjust breakpoint as needed for "desktop" */
    .reviews-grid {
        grid-template-columns: repeat(4, 1fr); /* Max 4 columns on larger screens */
    }
}

.review-item {
    background-color: #1a1d21;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
}

.review-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}