/* ==========================================================================
   RED ROCK SPORTS FACTORY ERP — CLEAN & MINIMALISTIC DESIGN SYSTEM
   Modern, User-Friendly, High-Legibility Aesthetic
   ========================================================================== */

:root {
    /* Brand Colors */
    --rr-red: #990000;
    --rr-red-hover: #7e0000;
    --rr-red-subtle: #fef2f2;
    --rr-red-border: #fecaca;
    
    /* Neutrals & Surfaces */
    --rr-dark: #0f172a;
    --rr-dark-card: #1e293b;
    --rr-slate: #334155;
    --rr-muted: #64748b;
    --rr-border: #e2e8f0;
    --rr-border-light: #f1f5f9;
    --rr-bg: #f8fafc;
    --rr-surface: #ffffff;
    
    /* Status Colors */
    --rr-success: #059669;
    --rr-success-bg: #ecfdf5;
    --rr-warning: #d97706;
    --rr-warning-bg: #fffbeb;
    --rr-info: #0284c7;
    --rr-info-bg: #f0f9ff;
    
    /* Typography & Elevation */
    --rr-font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rr-font-heading: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    --rr-radius-sm: 6px;
    --rr-radius: 10px;
    --rr-radius-lg: 16px;
    --rr-shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --rr-shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --rr-shadow-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

/* Base Document */
body {
    font-family: var(--rr-font-sans);
    color: #1e293b;
    background-color: var(--rr-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--rr-font-heading);
    font-weight: 700;
    color: var(--rr-dark);
    letter-spacing: -0.02em;
}

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

.bg-rr-red {
    background-color: var(--rr-red) !important;
    color: #ffffff !important;
}

.bg-rr-dark {
    background-color: var(--rr-dark) !important;
    color: #ffffff !important;
}

/* Clean Minimalist Buttons */
.btn {
    border-radius: var(--rr-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.15rem;
    transition: all 0.15s ease-in-out;
}

.btn-rr-red {
    background-color: var(--rr-red);
    color: #ffffff;
    border: 1px solid var(--rr-red);
    box-shadow: 0 1px 2px rgba(153, 0, 0, 0.15);
}

.btn-rr-red:hover, .btn-rr-red:focus {
    background-color: var(--rr-red-hover);
    border-color: var(--rr-red-hover);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(153, 0, 0, 0.25);
    transform: translateY(-1px);
}

.btn-outline-rr-red {
    background-color: transparent;
    color: var(--rr-red);
    border: 1.5px solid var(--rr-red);
}

.btn-outline-rr-red:hover {
    background-color: var(--rr-red);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(153, 0, 0, 0.2);
}

/* Minimalist Navigation Bar */
.rr-navbar {
    background-color: var(--rr-surface);
    border-bottom: 1px solid var(--rr-border);
    box-shadow: var(--rr-shadow-subtle);
    padding: 0.65rem 0;
}

.rr-brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    font-size: 0.925rem;
    color: #475569;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--rr-radius-sm);
    transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--rr-red) !important;
    background-color: var(--rr-red-subtle);
}

.navbar .dropdown-menu {
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius);
    box-shadow: var(--rr-shadow-hover);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.navbar .dropdown-item {
    border-radius: var(--rr-radius-sm);
    padding: 0.5rem 0.85rem;
    color: #334155;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background-color: var(--rr-red-subtle);
    color: var(--rr-red);
}

/* Clean Hero Section */
.rr-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e1b4b 100%);
    color: #ffffff;
    padding: 65px 0 60px 0;
    position: relative;
}

.rr-hero-banner h1 {
    color: #ffffff;
    font-weight: 800;
}

/* Minimalist Cards */
.card {
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius);
    box-shadow: var(--rr-shadow-card);
    background-color: var(--rr-surface);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product Catalogue Cards */
.rr-product-card {
    background: #ffffff;
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--rr-shadow-subtle);
}

.rr-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rr-shadow-hover);
    border-color: #cbd5e1;
}

.rr-product-img-wrap {
    height: 220px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    border-bottom: 1px solid var(--rr-border-light);
    position: relative;
}

.rr-product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.rr-product-card:hover .rr-product-img {
    transform: scale(1.04);
}

.rr-product-body {
    padding: 1.15rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rr-price-tag {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rr-red);
    letter-spacing: -0.02em;
}

.rr-mrp-tag {
    font-size: 0.825rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}

/* Clean Badges */
.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

/* KPI & Dashboard Stat Cards */
.rr-stat-card {
    background: #ffffff;
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--rr-shadow-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rr-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rr-shadow-card);
}

.rr-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--rr-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Form Controls & Focus States */
.form-control, .form-select {
    border: 1px solid var(--rr-border);
    border-radius: var(--rr-radius-sm);
    padding: 0.55rem 0.85rem;
    font-size: 0.925rem;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--rr-red);
    box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.12);
    outline: none;
}

/* Clean Tables */
.table {
    --bs-table-border-color: var(--rr-border);
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background-color: var(--rr-bg);
    border-bottom: 1px solid var(--rr-border);
    padding: 0.75rem 1rem;
}

.table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid var(--rr-border-light);
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Order Tracking Stepper Timeline */
.timeline-track {
    position: relative;
    padding: 10px 0 10px 32px;
    border-left: 2px solid var(--rr-border);
    margin-left: 12px;
}

.timeline-step {
    position: relative;
    margin-bottom: 26px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: -39px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #94a3b8;
    transition: all 0.2s ease;
}

.timeline-step.completed::before {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.timeline-step.active::before {
    background: var(--rr-red);
    border-color: var(--rr-red);
    box-shadow: 0 0 0 4px rgba(153, 0, 0, 0.15);
}

/* Minimalist Footer */
.rr-footer {
    background-color: #0b0f17;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 50px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rr-footer h6 {
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.rr-footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
    display: inline-block;
    margin-bottom: 0.45rem;
}

.rr-footer a:hover {
    color: #ffffff;
}

.rr-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.8rem;
}
