:root {
    --crt-bg: #1a2a1a;
    --crt-text: #8bffb8;
    --crt-amber: #ffb000;
    --crt-scanline: rgba(0, 0, 0, 0.3);
    --crt-shadow: rgba(0, 0, 0, 0.7);
    --bezel-color: #dcd9d0;
    --button-red: #d12c2c;
    --button-shadow: #8a1c1c;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background-color: #333;
    color: var(--crt-text);
    /* Font, daha okunaklı olan Roboto Mono ile değiştirildi */
    font-family: 'Roboto Mono', monospace;
    font-size: 20px; 
    /* Parlama efekti yeni fonta göre ayarlandı */
    text-shadow: 0 0 4px rgba(139, 255, 139, 0.25); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2vh;
    box-sizing: border-box;
}

.game-title {
    color: var(--bezel-color);
    margin-bottom: 1rem;
    text-align: center;
    flex-shrink: 0;
}
.game-title h1 {
    margin: 0;
    font-size: 2.5rem;
}
.game-title p {
    margin: 0;
    font-size: 1.2rem;
    color: var(--crt-amber);
}

#crt-monitor {
    width: 100%;
    height: 100%;
    max-width: 1280px;
    background: var(--crt-bg);
    border: 2rem solid var(--bezel-color);
    border-top-width: 3rem;
    border-bottom-width: 4rem;
    border-radius: 2rem;
    box-shadow: inset 0 0 2rem var(--crt-shadow), 0 0 5rem var(--crt-shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-sizing: border-box;
}

#crt-monitor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--crt-scanline) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

#crt-monitor::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 80%);
    pointer-events: none;
    z-index: 11;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.92; }
    20% { opacity: 0.98; }
    40% { opacity: 0.94; }
    60% { opacity: 1.0; }
    80% { opacity: 0.90; }
    100% { opacity: 0.95; }
}

#header-bar {
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--crt-text);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Bu kısımdaki font boyutu aynı kalacak */
    font-size: 1.2rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.officer-portrait {
    width: 60px;
    height: 60px;
    background: #4a5c4a;
    border: 2px solid var(--crt-text);
    position: relative;
    overflow: hidden;
}

.face-head {
    width: 50px;
    height: 55px;
    background: #f0c8b4;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.1);
}

.face-head::before, .face-head::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: #e8bfab;
    border-radius: 50%;
    bottom: 5px;
    z-index: -1;
}
.face-head::before { left: -5px; }
.face-head::after { right: -5px; }

.face-hair {
    width: 100%;
    height: 20px;
    background: #3d2314;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    position: absolute;
    top: -2px;
}

.eye {
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 22px;
}
.eye.left { left: 12px; }
.eye.right { right: 12px; }

.glasses-frame {
    width: 18px;
    height: 18px;
    border: 2px solid #222;
    border-radius: 50%;
    position: absolute;
    top: 15px;
}
.glasses-frame.left { left: 5px; }
.glasses-frame.right { right: 5px; }

.glasses-frame.left::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    background: #222;
    top: 7px;
    left: 16px;
}

.face-nose {
    width: 8px;
    height: 10px;
    background: #e8bfab;
    border-radius: 40% 40% 50% 50%;
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
}

.face-mouth {
    width: 15px;
    height: 2px;
    background: #9c6650;
    border-radius: 0 0 5px 5px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.header-button {
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--crt-text);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 1rem;
}

.header-button:hover {
    background: var(--crt-text);
    color: var(--crt-bg);
}

#main-content {
    display: flex;
    flex-grow: 1;
    gap: 1.5rem;
    overflow: hidden;
}

#applicant-window, #right-panel {
    min-height: 0;
}

#applicant-window {
    flex-basis: 55%;
    border: 2px solid var(--crt-text);
    padding: 1rem;
    overflow-y: auto;
    background: rgba(123, 255, 123, 0.05);
}

.applicant-photo {
    width: 100px; 
    height: 100px; 
    background: var(--crt-text);
    float: left; 
    margin-right: 1rem; 
    margin-bottom: 0.5rem;
    filter: grayscale(1) contrast(1.5); 
    display: flex; 
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
}

#applicant-head-icon {
    font-size: 5rem;
    color: var(--crt-bg);
    line-height: 1;
}

#applicant-profession-icon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 2rem;
    color: var(--crt-bg);
    line-height: 1;
    background: rgba(220, 217, 208, 0.8);
    border-radius: 5px;
    padding: 2px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.applicant-info h2 { margin: 0; color: var(--crt-amber); font-size: 1.5rem; }
.applicant-info p { margin: 0.2rem 0; clear: right; line-height: 1.4; font-size: 0.9rem; /* Font küçültüldü */ }
.synopsis { clear: both; padding-top: 1rem; font-size: 1rem; line-height: 1.5; /* Font küçültüldü */ }
.checklist { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--crt-text); }
.checklist h3 { margin: 0 0 0.5rem 0; color: var(--crt-amber); }
.checklist ul { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; /* Font küçültüldü */ }
.checklist li { margin-bottom: 0.2rem; line-height: 1.4; }

#right-panel { flex-basis: 45%; display: flex; flex-direction: column; gap: 1.5rem; }
#action-panel { flex-grow: 1; display: flex; align-items: center; justify-content: center; border: 2px solid var(--crt-text); padding: 1rem; }

#reject-button {
    background-color: var(--button-red); color: white;
    font-family: 'Roboto Mono', monospace; 
    font-size: 1.8rem;
    padding: 1.5rem 2rem; border: none;
    border-bottom: 8px solid var(--button-shadow); border-radius: 10px;
    cursor: pointer; text-align: center;
    transition: all 0.1s ease; user-select: none;
}
#reject-button:hover { transform: translateY(-2px); filter: brightness(1.1); }
#reject-button:active { transform: translateY(4px); border-bottom-width: 4px; }

#memo-window { height: 180px; border: 2px solid var(--crt-text); padding: 1rem; flex-shrink: 0; overflow-y: auto; }
#memo-window h3 { margin: 0 0 0.5rem 0; color: var(--crt-amber); }
#memo-window p { font-size: 0.95rem; /* Memo penceresi de küçültüldü */ }
#memo-subject { margin: 0 0 0.5rem 0; }
#memo-text { white-space: pre-wrap; word-break: break-word; line-height: 1.4; }

#rejected-stamp {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0);
    font-size: 12rem; color: rgba(255, 0, 0, 0.7);
    border: 15px solid rgba(255, 0, 0, 0.7);
    padding: 1rem 2rem; border-radius: 10px; pointer-events: none;
    opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20; user-select: none;
}
#rejected-stamp.show { transform: translate(-50%, -50%) rotate(-15deg) scale(1); opacity: 1; }

#special-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--bezel-color);
    color: #d12c2c;
    border: 4px solid var(--crt-text);
    padding: 2rem 3rem;
    font-size: 3rem;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
#special-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#end-of-day-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 42, 26, 0.9); z-index: 30;
    display: none; align-items: center; justify-content: center;
    flex-direction: column; padding: 2rem; text-align: center;
}
#end-of-day-overlay.visible { display: flex; }

#upgrades-container { margin: 1.5rem 0; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.upgrade-button {
    background: var(--crt-text); color: var(--crt-bg);
    border: 2px solid var(--crt-text); padding: 0.5rem 1rem;
    font-family: 'Roboto Mono', monospace; 
    font-size: 1.2rem;
    cursor: pointer; transition: all 0.2s ease;
}
.upgrade-button:hover { background: var(--crt-amber); color: var(--crt-bg); }
.upgrade-button:disabled { background: #555; color: #999; cursor: not-allowed; border-color: #777; }
#start-next-day-button { font-size: 1.5rem; background: var(--crt-amber); color: var(--crt-bg); padding: 0.75rem 1.5rem; border: none; margin-top: 1rem; cursor: pointer; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    body { font-size: 18px; }
    #crt-monitor { border-width: 1rem; border-top-width: 1.5rem; border-bottom-width: 2.5rem; border-radius: 1rem; padding: 1rem; }
    #main-content { flex-direction: column; }
}
@media (max-width: 768px) {
    #header-bar { flex-direction: column; align-items: center; gap: 0.5rem; font-size: 1rem; text-align: center; }
    .header-left, .header-right { justify-content: center; width: 100%; }
    #reject-button { font-size: 1.5rem; padding: 1rem 1.5rem; }
    #rejected-stamp { font-size: 6rem; border-width: 10px; }
}

