/* Shared UI Components - Roadworks */

/* Buttons */
.btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.btn:hover {
    transform: scale(1.04) translateZ(0);
}

.btn:active {
    transform: scale(0.98) translateZ(0);
}

.btn-primary {
    background: #F09E41;
    color: #000;
}

.btn-primary:hover {
    background: #e8923a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* blue restart button, translucent like other action buttons */
.btn-restart {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}
.btn-restart:hover {
    background: rgba(59, 130, 246, 0.3);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 14px 20px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #fff;
    backdrop-filter: blur(10px);
}

.toast-success {
    border-left: 3px solid #22c55e;
}

.toast-error {
    border-left: 3px solid #ef4444;
}

.toast-info {
    border-left: 3px solid #3b82f6;
}
