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

body {
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #F5F5F0;
    color: #2C2C2C;
    overflow-x: hidden;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Simulation watermark */
.simulation-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 6rem;
    font-weight: 900;
    color: rgba(205, 20, 9, 0.04);
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    letter-spacing: 0.2em;
    user-select: none;
}

/* Login animations */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

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

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

.animate-fade-slide-up {
    animation: fadeSlideUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

.animate-toast-in {
    animation: toastIn 0.3s ease-out forwards;
}

.animate-toast-out {
    animation: toastOut 0.3s ease-in forwards;
}

/* Confetti piece */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 10000;
    animation: confettiFall 3s ease-in forwards;
}

/* Login background gradient */
.login-bg {
    background: linear-gradient(135deg, #CD1409 0%, #8B0E07 40%, #5C0904 100%);
    min-height: 100vh;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Button hover */
.btn-primary {
    background: #CD1409;
    color: white;
    transition: background 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover {
    background: #A81108;
}
.btn-primary:active {
    transform: scale(0.98);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Green dot animation */
@keyframes greenPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 140, 60, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(45, 140, 60, 0); }
}
.green-dot-pulse {
    animation: greenPulse 2s ease-in-out infinite;
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Toast container */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Tooltip */
.tooltip-trigger {
    position: relative;
}
.tooltip-trigger .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2C2C2C;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: opacity 0.2s;
    margin-bottom: 6px;
    z-index: 100;
}
.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Session timer */
.session-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .simulation-watermark {
        font-size: 3rem;
    }
}