/* Common CSS for BidSmart */

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

body {
    font-family: var(--font-sans);
    background-color: var(--gray-100);
}

/* Card styles — same surface contract as the dashboard's .stat-card:
   solid bg + hairline border + radius. The shadow is a whisper, so the
   border is what defines the card edge. */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Header reads as an in-card title (dashboard idiom), not a banded strip:
   card surface shows through, no rule, ink weight carries the hierarchy. */
.card-header {
    background-color: transparent;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-strong);
}

/* Button styles */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Form styles */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-400);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Alert styles */
.alert {
    border-radius: var(--radius-md);
    border: none;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Utility classes */
.text-primary {
    color: var(--color-primary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.bg-success {
    background-color: var(--color-success) !important;
}

.text-warning {
    color: var(--color-warning) !important;
}

.bg-warning {
    background-color: var(--color-warning) !important;
}

.text-info {
    color: var(--color-info) !important;
}

.bg-info {
    background-color: var(--color-info) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.bg-danger {
    background-color: var(--color-danger) !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}