* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --border: #2a2a2a;
    --green: #00ff00;
    --green-dim: #00aa00;
    --blue: #00aaff;
    --text: #cccccc;
    --text-dim: #666666;
}

body {
    font-family: 'Fira Code', monospace;
    background: var(--bg-dark);
    color: var(--green);
    height: 100vh;
    overflow: hidden;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.brand h1 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--green);
}

.role {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--green);
    font-size: 0.75rem;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 3px;
}

.nav-link:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #fff;
}

/* Main Layout */
.main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar with ID Badge */
.sidebar {
    width: 320px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-right: 1px solid var(--border);
    overflow: visible;
    perspective: 1000px;
}

.id-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform-origin: top center;
    will-change: transform;
}

/* Lanyard */
.lanyard {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lanyard-string {
    width: 3px;
    height: 80px;
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border-radius: 2px;
    will-change: height;
}

.lanyard-clip {
    width: 24px;
    height: 24px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 50%;
    position: relative;
    margin-top: -2px;
}

.lanyard-clip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #111;
    border-radius: 50%;
}

/* Badge Card */
.badge-card {
    width: 220px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    cursor: grab;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    transform-origin: top center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.badge-card:hover {
    box-shadow: 0 12px 40px rgba(0, 255, 0, 0.1);
}

.badge-card:active {
    cursor: grabbing;
}

.badge-header {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-logo {
    width: 16px;
    height: 16px;
    color: #666;
}

.badge-company {
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 500;
}

.badge-photo {
    padding: 15px;
    display: flex;
    justify-content: center;
    background: #0a0a0a;
}

.badge-photo img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #333;
    filter: grayscale(20%) contrast(1.1);
}

.badge-info {
    padding: 12px 15px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

.badge-name {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 3px;
}

.badge-title {
    font-size: 0.7rem;
    color: #666;
}

.badge-footer {
    padding: 8px;
    border-top: 1px solid #333;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.badge-label {
    font-size: 0.55rem;
    color: #555;
    font-style: italic;
}

/* Terminal */
.terminal {
    flex: 1;
    background: var(--bg-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.line {
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
}

.prompt {
    color: var(--green);
    white-space: nowrap;
}

.cmd {
    color: var(--blue);
}

.output {
    color: var(--text);
    margin-bottom: 16px;
    padding-left: 0;
}

.help-output {
    line-height: 1.8;
}

.help-title {
    color: #fff;
    margin-bottom: 8px;
}

.help-item {
    color: var(--text);
}

.help-item span {
    color: var(--green);
    display: inline-block;
    width: 140px;
}

.line.current {
    display: flex;
    align-items: center;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--green);
    animation: blink 1s infinite;
    margin-left: 0;
    vertical-align: middle;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--blue);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    width: 0;
    min-width: 0;
    caret-color: transparent;
    padding: 0;
    margin: 0 0 0 8px;
}

.terminal-input:focus + .cursor {
    animation: blink 1s infinite;
}

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

/* Footer */
.footer {
    padding: 8px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.5);
}

/* Scrollbar */
.terminal-content::-webkit-scrollbar {
    width: 6px;
}

.terminal-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 15px;
    }
    
    .id-badge {
        flex-direction: row;
        gap: 15px;
    }
    
    .lanyard {
        display: none;
    }
    
    .badge-card {
        width: 140px;
    }
    
    .nav {
        display: none;
    }
}