/* Titanium White Premium Theme - Tire Inventory System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Base Colors - Titanium White Palette */
    --bg-titanium: #f9f9fb;
    /* Light silver background */
    --surface-white: #ffffff;
    --border-subtle: #e5e7eb;
    --border-metallic: #0047ab;
    /* Metallic Blue */

    /* Semantic Colors */
    --primary: #0047ab;
    /* Deep Metallic Blue */
    --primary-light: #e0e7ff;
    --secondary: #64748b;
    /* Slate */
    --success: #10b981;
    /* Emerald */
    --danger: #ef4444;
    /* Rose Red */
    --warning: #f59e0b;
    /* Amber */
    --info: #0ea5e9;
    /* Sky Blue */

    /* Text */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Shadows - "Lifting" Depth */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-lift: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-titanium);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === NAVIGATION === */
.navbar {
    padding: 0.5rem 1rem;
    /* Reduced padding */
    background-color: #212529 !important;
    border-bottom: none;
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    font-weight: 500;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    font-size: 1.25rem;
    margin-right: 0.5rem;
    /* Reduced margin */
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 0.5rem !important;
    /* Reduced horizontal padding */
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* Prevent text wrapping inside buttons */
}

/* Tab nav-links need dark text on white backgrounds */
.nav-tabs .nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    transition: all 0.2s ease;
}
.nav-tabs .nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
}

/* ... existing hover styles ... */

/* === USER STATUS BAR === */
.user-info {
    padding-left: 0.75rem;
    /* Reduced padding */
    border-left: 1px solid var(--border-subtle);
}

.user-info .shop-name {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0;
}

/* === CARDS & LAYOUT === */
.container {
    /* Removed max-width to allow full resizing */
    margin-top: 2rem;
}

.card {
    background-color: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

/* "More color in places" - Accent tops for cards */
.card-accent-blue {
    border-top: 4px solid var(--primary);
}

.card-accent-green {
    border-top: 4px solid var(--success);
}

.card-accent-orange {
    border-top: 4px solid var(--warning);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* === BUTTONS === */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #003380 100%);
    border: none;
    color: #ffffff !important;
    /* Ensure high contrast */
    box-shadow: 0 4px 6px rgba(0, 71, 171, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 12px rgba(0, 71, 171, 0.3);
}

/* === TABLES === */
.table-container {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    padding: 1rem;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--bg-titanium);
    border-bottom: 2px solid var(--border-subtle);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-subtle);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* === FORMS === */
.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background-color: #fafafa;
    transition: all 0.2s;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.1);
}

/* === METRIC CARDS (More color) === */
.metric-box {
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.metric-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.metric-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.metric-green {
    background: #f0fdf4;
    color: #22c55e;
}

.metric-red {
    background: #fef2f2;
    color: #ef4444;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
.display-4 {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary);
}

/* === UTILITIES === */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--info) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Warmth & Inviting Utilities --- */
.bg-warm-gradient {
    background: linear-gradient(135deg, #f9f9fb 0%, #eff6ff 100%);
}

.benefit-item {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 71, 171, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: var(--shadow-soft);
}

.badge-trial {
    background: #fef3c7;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
}