* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container {
    background: rgba(22, 33, 62, 0.95);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}
h1 { margin-bottom: 2rem; text-align: center; font-size: 1.8rem; }
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#user-email { color: #4ecca3; font-weight: 500; }
.btn {
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, #0f4c75, #3282b8); color: white; }
.btn.danger { background: linear-gradient(135deg, #c0392b, #e74c3c); color: white; }
.btn.small { padding: 0.5rem 1rem; font-size: 0.85rem; background: rgba(255,255,255,0.1); color: #aaa; }
.btn.small:hover { background: rgba(255,255,255,0.2); color: #fff; }
.card {
    background: rgba(15, 52, 96, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.session-details { width: 100%; }
.session-details .row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.session-details .row:last-child { border-bottom: none; }
.session-details .label { color: #888; }
.session-details .value { font-family: 'SF Mono', Monaco, monospace; color: #4ecca3; font-weight: 500; }
.session-details .value.password {
    background: rgba(78, 204, 163, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    user-select: all;
    cursor: pointer;
}
.session-details .value.password:hover {
    background: rgba(78, 204, 163, 0.25);
}
.session-details .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status.running, .status.allocated { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.status.starting, .status.pending { background: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.status.stopped { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.muted { color: #666; text-align: center; }
.actions { display: flex; gap: 1rem; justify-content: center; }

/* SSH Command Box */
.ssh-command {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.ssh-command .label {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}
.ssh-command .command {
    color: #4ecca3;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.95rem;
    cursor: pointer;
    display: block;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
    word-break: break-all;
}
.ssh-command .command:hover {
    background: rgba(78, 204, 163, 0.1);
    color: #7ee7cc;
}

/* Copy Tooltip */
.copy-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4ecca3;
    color: #1a1a2e;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(78, 204, 163, 0.3);
    animation: tooltipFadeInOut 1.5s ease forwards;
    z-index: 1000;
}

@keyframes tooltipFadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: #4ecca3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fade in animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease; }