/* HES Custom CSS — used alongside Tailwind CDN */

/* Navigation link base */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #bfdbfe;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background-color: #1e40af;
    color: #fff;
}

.nav-link.active {
    background-color: #1e40af;
    color: #fff;
    font-weight: 600;
}

/* Navigation section label */
.nav-section {
    padding: 0.75rem 0.75rem 0.25rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background-color: #1e3a5f;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: #2a5298;
}

/* Danger button */
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background-color: #dc2626;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Form label */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

/* Form input */
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #fff;
    color: #111827;
}

.form-input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

/* Toast notification */
.hes-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.4s ease;
    max-width: 320px;
}

.hes-toast.success {
    background: #22c55e;
    color: #fff;
}

.hes-toast.error {
    background: #ef4444;
    color: #fff;
}

.hes-toast.info {
    background: #3b82f6;
    color: #fff;
}

.hes-toast.warning {
    background: #f59e0b;
    color: #fff;
}

.hes-toast.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Timer warning states */
#timer-text.warning {
    color: #f97316;
}

#timer-text.danger {
    color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Line-clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}