/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #000;
    color: #8cc08c;
    overflow-x: hidden;
    height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Left Section Styles */
.left-section {
    width: 300px;
    background-color: #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #00ff00;
    margin-bottom: 80px; /* Add bottom margin to prevent content from being hidden behind footer */
}

.personal-info {
    margin-bottom: 30px;
}

.name {
    font-size: 24px;
    color: #00ff00;
    margin-bottom: 5px;
    font-weight: bold;
}

.title {
    font-size: 16px;
    color: #ffffff;
    opacity: 0.8;
}

.id-card-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    transform: translate(var(--dragX, 0px), var(--dragY, 0px));
    will-change: transform;
    cursor: grab;
    touch-action: none;
}

.lanyard {
    width: 4px;
    height: 90px;
    background: linear-gradient(180deg, #d0d0d0 0%, #9e9e9e 50%, #d0d0d0 100%);
    position: relative;
    margin-bottom: 12px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.lanyard::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid #cfcfcf;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #bfbfbf);
    box-shadow: 0 2px 6px rgba(255,255,255,0.2);
}

.lanyard-text {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
}

.id-card {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: none;
    transform: none;
    transition: none;
    overflow: visible;
}

.id-card::before { content: none; }

.id-card:hover { transform: none; box-shadow: none; }

.id-card::after { content: none; }

@keyframes scan {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.card-photo {
    width: 220px;
    height: 300px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border: 2px solid #00ff00;
    box-shadow: none;
    z-index: 2;
}

/* Profile photo fills the card completely */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: none;
    z-index: 1;
}

/* Hover animation */
.profile-photo:hover { transform: none; box-shadow: none; }

/* Glossy scan animation overlay */
.card-photo::after { content: none; }

/* Upload hint styling */
.card-photo .upload-hint { display: none; }

/* Animation keyframes */
@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}


.card-text { display: none; }

.interactive-label {
    color: #00ff00;
    font-size: 12px;
    margin-top: 15px;
    text-align: center;
    opacity: 0.8;
}

.left-prompt {
    color: #00ff00;
    font-size: 14px;
    margin-top: auto;
    opacity: 0.7;
}

/* Right Section Styles */
.right-section {
    flex: 1;
    background-color: #000;
    display: flex;
    flex-direction: column;
    border: 2px solid #00ff00;
    margin: 20px;
    margin-bottom: 80px; /* Add bottom margin to prevent content from being hidden behind footer */
}

/* Navigation Menu */
.terminal-nav {
    padding: 15px 20px;
    border-bottom: 1px solid #00ff00;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    background-color: transparent;
}

.terminal-nav a {
    color: #00ff00;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: bold;
}

.terminal-nav a:hover {
    color: #66ff66;
    text-decoration: none;
}

.terminal-nav a.active {
    text-decoration: none;
    color: #66ff66;
}

/* Terminal Output Area */
.terminal-output {
    flex: 1;
    background-color: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 2px solid #00ff00;
    position: relative;
    outline: none;
    cursor: text;
    caret-color: transparent; /* hide native caret */
    scroll-behavior: smooth; /* Smooth scrolling */
}

.terminal-output:focus {
    outline: none;
    border: 2px solid #00ff00;
}

/* Remove global cursor from the whole output; cursor will be only in prompt line */
.terminal-output:focus::after { content: none; }

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.command-line {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    min-height: 20px;
    padding: 5px 0;
}

.prompt {
    color: #00ff00;
    margin-right: 10px;
    font-weight: bold;
}

.id-card-container.dragging { cursor: grabbing; }

/* Fullscreen photo overlay */
.photo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.photo-overlay.active { display: flex; }

.photo-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 2px solid #ffffff22;
}

.photo-overlay .toolbar {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.photo-overlay .toolbar button {
    background: #111;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
}

.photo-overlay .toolbar button:hover {
    color: #111;
    background: #00ff00;
}

/* Prompt line input and its blinking cursor */
.prompt-line .input {
    color: #ffffff;
    white-space: pre-wrap;
}

.prompt-line .cursor {
    color: #00ff00;
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}

.command {
    color: #ffffff;
    margin-left: 5px;
}

.output {
    margin-bottom: 20px;
    color: #ffffff;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInWord {
    from { 
        opacity: 0; 
        transform: translateY(5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.output p {
    margin-bottom: 8px;
}

.output h3 {
    color: #00ff00;
    margin: 15px 0 10px 0;
    font-size: 16px;
}

.output ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.output li {
    margin-bottom: 5px;
}

.output a {
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
}

.output a:hover {
    color: #0099ff;
}

.output .highlight {
    color: #ffff00;
    font-weight: bold;
}

/* Footer Styles */
.footer {
    background-color: #000;
    border-top: 2px solid #00ff00;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #00ff00;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 255, 0, 0.3);
}

.footer-prompt {
    opacity: 0.7;
    font-weight: bold;
}

.footer-time {
    opacity: 0.8;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-section {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #00ff00;
        margin-bottom: 80px;
    }
    
    .right-section {
        margin: 20px;
        margin-bottom: 80px;
    }
    
    .id-card-container {
        margin: 10px 0;
    }
    
    .terminal-nav {
        flex-wrap: wrap;
        gap: 5px;
        padding: 10px 15px;
    }
    
    .terminal-nav a {
        font-size: 12px;
    }
    
    .footer {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* Make names appear in normal white color */
.output p strong,
.output strong,
.output .name {
    color: #ffffff !important;
    font-weight: bold;
}

/* Remove any red color styling and typewriter effects */
.output p,
.output li,
.output h3 {
    color: #ffffff !important;
    overflow: visible;
    white-space: normal;
    width: 100%;
    margin-bottom: 8px;
}

/* Ensure no red lines or error indicators appear anywhere */
* {
    text-decoration-color: transparent !important;
}

a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

.output ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.output li {
    margin-bottom: 5px;
}
html, body {
  cursor: default !important;
}
