/* Modern Racing-Inspired Automotive Design */

:root {
    /* Racing Colors */
    --racing-black: #0a0a0a;
    --racing-dark: #1a1a1a;
    --racing-gray: #2d2d2d;
    --racing-silver: #c0c0c0;
    --racing-silver-light: #e8e8e8;
    --racing-orange: #ff6b00;
    --racing-orange-light: #ff8c42;
    --racing-orange-dark: #cc5500;
    --racing-green: #00ff41;
    --racing-red: #ff0000;
    --racing-yellow: #ffd700;
    
    /* Brand Colors */
    --primary-dark: #1a1a1a;
    --primary-darker: #0a0a0a;
    --secondary-light: #f5f5f5;
    --secondary-lighter: #ffffff;
    --accent: #adb5bd;
    --border-color: #e0e0e0;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Headings with Racing Style */
h1, h2, h3, h4, h5, h6 {
    color: var(--racing-black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Links */
a, .btn-link {
    color: var(--racing-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, .btn-link:hover {
    color: var(--racing-orange-light);
    text-decoration: none;
    transform: translateX(2px);
}

/* Content Area with Animated Background */
.content {
    padding-top: 1.1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: calc(100vh - 3.5rem);
    flex: 1;
    position: relative;
    z-index: 1;
}

.content-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            var(--racing-black) 35px,
            var(--racing-black) 70px
        );
    animation: slide-pattern 20s linear infinite;
    z-index: 0;
}

@keyframes slide-pattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

h1:focus {
    outline: none;
}

/* Form & Input Styling */
.form-control, .form-control-plaintext {
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--racing-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25);
    transform: translateY(-1px);
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 2px solid var(--racing-green);
}

.invalid {
    outline: 2px solid var(--racing-red);
}

.validation-message {
    color: var(--racing-red);
    font-weight: 600;
}

/* Alerts with Racing Theme */
.alert {
    border-radius: 8px;
    border: 2px solid;
    font-weight: 600;
}

.alert-warning {
    background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
    border-color: var(--racing-yellow);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border-color: var(--racing-red);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce5ff 100%);
    border-color: #64b5f6;
    color: #004085;
}

/* Buttons with Racing Design */
.btn {
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:focus, .btn:active:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.5);
}

.btn:active {
    background-color: var(--racing-orange-dark) !important;
    border-color: var(--racing-orange-dark) !important;
    color: white !important;
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%);
    border-color: var(--racing-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--racing-orange-light) 0%, var(--racing-orange) 100%);
    border-color: var(--racing-orange-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--racing-silver) 0%, var(--racing-gray) 100%);
    border-color: var(--racing-silver);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%);
    border-color: var(--racing-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--racing-orange);
    border-color: var(--racing-orange);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%);
    border-color: var(--racing-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-outline-danger {
    color: var(--racing-red);
    border-color: var(--racing-red);
    border-width: 2px;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, var(--racing-red) 0%, #cc0000 100%);
    border-color: var(--racing-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Cards with Racing Style */
.card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--racing-orange) 0%, var(--racing-yellow) 50%, var(--racing-orange) 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.card:hover::before {
    transform: translateX(0);
}

.card:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.25);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--racing-orange);
}

.card-header {
    background: linear-gradient(135deg, var(--racing-black) 0%, var(--racing-dark) 100%);
    border-bottom: 3px solid var(--racing-orange);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Bar with Racing Design */
.bg-gradient {
    background: #000000 !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 1), inset 0 -2px 10px rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid rgba(255, 107, 0, 0.5);
    padding: 0.2rem 0.3rem;
    min-height: auto;
}

.bg-gradient .container-fluid {
    padding: 0;
}

.bg-gradient .navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: white !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.9));
    transition: all 0.3s ease;
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.9));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 107, 0, 1));
    }
}

.navbar-logo:hover {
    transform: scale(1.15) rotate(5deg);
}

.sidebar-main-logo {
    height: 180px;
    width: auto;
    max-width: 98%;
    filter: drop-shadow(0 0 35px rgba(255, 107, 0, 1));
    transition: all 0.3s ease;
    animation: logo-pulse 2s ease-in-out infinite;
    margin: -20px 0;
}

.sidebar-main-logo:hover {
    transform: scale(1.05);
}

.brand-text {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 1.5rem;
}

/* Dashboard Icons */
.dashboard-icon {
    color: var(--racing-orange);
    font-weight: 700;
    font-size: 1.3rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 0, 0.3));
}

.card-body:hover .dashboard-icon {
    color: var(--racing-orange-light);
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 0, 0.5));
}

/* Dashboard Buttons */
.btn-dashboard {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%);
    border: 2px solid var(--racing-orange);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-dashboard:hover {
    background: linear-gradient(135deg, var(--racing-orange-light) 0%, var(--racing-orange) 100%);
    border-color: var(--racing-orange-light);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

/* Logout Button */
.btn-logout {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 2px solid var(--racing-black);
    color: var(--racing-black);
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.7rem 1rem;
}

.btn-logout:hover {
    background: linear-gradient(135deg, var(--racing-red) 0%, #cc0000 100%);
    border-color: var(--racing-red);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Sidebar Navigation Layout with Racing Theme */
.page {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #000000 0%, #000000 100%) !important;
    border-right: 4px solid var(--racing-orange) !important;
    display: flex !important;
    flex-direction: column !important;
    width: 300px !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    box-shadow: 
        4px 0 20px rgba(255, 107, 0, 0.4),
        inset -4px 0 10px rgba(0, 0, 0, 0.8) !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1000 !important;
}

main {
    flex: 1;
    margin-left: 300px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Racing Pattern Background for Sidebar */
.sidebar-racing-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Checkered Flag Pattern */
.racing-flag-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: 
        linear-gradient(45deg, #000 25%, transparent 25%),
        linear-gradient(-45deg, #000 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #000 75%),
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    animation: racing-flag-move 10s linear infinite;
}

@keyframes racing-flag-move {
    0% {
        background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    }
    100% {
        background-position: 40px 40px, 40px 60px, 60px 20px, 20px 40px;
    }
}

.brand-logo-item {
    position: absolute;
    opacity: 0.12;
    transform: rotate(-15deg);
    animation: float-brand 25s ease-in-out infinite;
}

.brand-logo-item:nth-child(2) { animation-delay: -5s; }
.brand-logo-item:nth-child(3) { animation-delay: -10s; }
.brand-logo-item:nth-child(4) { animation-delay: -15s; }
.brand-logo-item:nth-child(5) { animation-delay: -20s; }

@keyframes float-brand {
    0%, 100% {
        transform: translateY(0) rotate(-15deg) scale(1);
    }
    33% {
        transform: translateY(-25px) rotate(-12deg) scale(1.05);
    }
    66% {
        transform: translateY(-10px) rotate(-18deg) scale(0.95);
    }
}

.brand-logo-text {
    font-size: 2.8rem;
    font-weight: 900;
    color: rgba(255, 107, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Arial Black', sans-serif;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 107, 0, 0.6);
    display: block;
    white-space: nowrap;
}

.racing-icon {
    position: absolute;
    opacity: 0.15;
    font-size: 2.5rem;
    color: var(--racing-orange);
    animation: rotate-racing 20s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.8));
}

.racing-icon:nth-child(even) {
    animation: pulse-racing 3s ease-in-out infinite;
}

@keyframes rotate-racing {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes pulse-racing {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.2);
    }
}

/* Top Row with Racing Design */
.top-row {
    background: linear-gradient(135deg, var(--racing-silver-light) 0%, var(--racing-silver) 100%) !important;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 107, 0, 0.1) 10px,
            rgba(255, 107, 0, 0.1) 20px
        );
    border-bottom: 4px solid var(--racing-orange) !important;
    padding: 1.2rem 2rem;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.top-row-brand {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.top-row-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.9));
}

.brand-gear-icon {
    font-size: 4rem;
    color: var(--racing-orange);
    animation: rotate-gear 8s linear infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.9));
}

@keyframes rotate-gear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--racing-black);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
}

.brand-initial {
    font-size: 3.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(255, 107, 0, 0.3));
    margin-right: 2px;
}

.brand-orange {
    font-weight: 900;
    color: var(--racing-orange);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 107, 0, 0.6);
}

.top-row-racing-elements {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.racing-flag {
    font-size: 2.5rem;
    color: var(--racing-orange);
    animation: wave-flag 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.7));
}

@keyframes wave-flag {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.racing-speed {
    font-size: 2.5rem;
    color: var(--racing-orange);
    animation: speed-pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.7));
}

@keyframes speed-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Sidebar Navigation Links */
.nav-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
}

.nav-item {
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.nav-link {
    color: #e8e8e8 !important;
    padding: 1rem 1.2rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link-dokumente {
    font-size: 0.85rem;
    padding: 0.95rem 1.1rem;
    letter-spacing: 0.3px;
}

.nav-link-text-compact {
    line-height: 1.3;
    display: inline-block;
}

.nav-link i {
    font-size: 1.1rem;
    width: 1.2rem;
    flex-shrink: 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%) !important;
    color: #ffffff !important;
    border-left-color: var(--racing-yellow);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.5);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-left-color: var(--racing-yellow);
    box-shadow: 
        inset 4px 0 0 var(--racing-yellow),
        0 4px 15px rgba(255, 107, 0, 0.6);
}

/* Parts Status Badges with Racing Theme */
.part-number-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ordered {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%);
    color: #fff;
    border: 2px solid var(--racing-yellow);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.status-delivered {
    background: linear-gradient(135deg, var(--racing-green) 0%, #00cc33 100%);
    color: #000;
    border: 2px solid #00ff41;
    box-shadow: 0 4px 10px rgba(0, 255, 65, 0.3);
}

/* Tab Navigation with Racing Design */
.nav-tabs {
    border-bottom: 3px solid var(--racing-orange);
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    border: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    color: var(--racing-black) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.8rem 1.8rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.nav-tabs .nav-link:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-3px);
    border-color: var(--racing-orange);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%);
    color: white !important;
    border-color: var(--racing-orange);
    border-bottom-color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.5);
}

/* Filter Buttons with Racing Style */
.filter-btn-group .btn {
    border: 2px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.filter-btn-group .btn:not(.active) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--racing-black) !important;
    border-color: var(--racing-silver);
}

.filter-btn-group .btn:not(.active):hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--racing-orange);
}

.filter-btn-group .btn.active {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%);
    color: white !important;
    border-color: var(--racing-orange);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.5);
}

/* Table Styling with Racing Theme */
.table-responsive::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%);
    border-radius: 5px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--racing-orange-light) 0%, var(--racing-orange) 100%);
}

/* Document Type Headers with Racing Theme */
.document-type-header {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--racing-black) 0%, var(--racing-dark) 100%) !important;
    border-left: 4px solid var(--racing-orange) !important;
}

.document-type-header:hover {
    transform: translateX(6px);
    background: linear-gradient(135deg, var(--racing-dark) 0%, var(--racing-gray) 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

/* User Emoji Container with Racing Design */
.user-emoji-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.3) 0%, rgba(255, 107, 0, 0.1) 100%);
    border-radius: 50%;
    border: 4px solid var(--racing-orange);
    box-shadow: 
        0 4px 20px rgba(255, 107, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-emoji-container:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--racing-yellow);
    box-shadow: 
        0 6px 25px rgba(255, 107, 0, 0.7),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.user-emoji {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.edit-overlay i {
    color: white;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.user-emoji-container.clickable {
    cursor: pointer;
}

.user-emoji-container.clickable:hover .edit-overlay {
    opacity: 1;
}

/* Timeline with Racing Theme */
.timeline-marker-service {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: 3px solid var(--racing-orange);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.timeline-marker-reparatur {
    background: linear-gradient(135deg, var(--racing-orange) 0%, var(--racing-orange-dark) 100%);
    border: 3px solid var(--racing-yellow);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.5);
}

.timeline-service .card {
    border-left: 5px solid #0d6efd;
}

.timeline-reparatur .card {
    border-left: 5px solid var(--racing-orange);
}

/* Service Cards with Racing Hover */
.card[style*="cursor: pointer"]:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 35px rgba(255, 107, 0, 0.3) !important;
}

/* Modal Styling with Racing Theme */
.modal-content {
    border-radius: 12px;
    border: 3px solid var(--racing-orange);
    box-shadow: 0 10px 50px rgba(255, 107, 0, 0.4);
}

.modal-header.bg-gradient {
    background: linear-gradient(135deg, var(--racing-black) 0%, var(--racing-dark) 100%);
    border-bottom: 3px solid var(--racing-orange);
    border-radius: 12px 12px 0 0;
}

/* User Info Section */
.user-info-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(10, 10, 10, 0.6) 100%);
    border-bottom: 2px solid var(--racing-orange);
    margin: 0;
    padding: 0;
}

/* Login Page Specific Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--racing-black) 0%, var(--racing-dark) 100%);
    position: relative;
    overflow: hidden;
}

.login-background-logo {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1400px;
    height: auto;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.login-background-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 100px rgba(255, 107, 0, 0.6));
}

.login-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(255, 107, 0, 1));
}

.login-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border: 3px solid var(--racing-orange);
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(255, 107, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    max-height: 95vh;
    overflow-y: auto;
}

.login-card .card-body {
    padding: 2rem 3rem !important;
}

.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.login-card .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.login-card .form-control-lg {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
}

.login-card .btn-lg {
    padding: 0.7rem 1rem;
    font-size: 1rem;
}

.login-card hr {
    margin: 1.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 250px !important;
    }
    
    main {
        margin-left: 250px;
    }
    
    .brand-title {
        font-size: 2.2rem;
    }
    
    .brand-initial {
        font-size: 2.8rem;
    }
    
    .navbar-logo {
        height: 55px;
    }
    
    .top-row-logo {
        height: 65px;
    }
}

/* Success Animations */
@keyframes success-flash {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(0, 255, 65, 0);
    }
}

/* Loading Spinner with Racing Theme */
.spinner-border {
    border-color: var(--racing-orange);
    border-right-color: transparent;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: linear-gradient(135deg, var(--racing-red) 0%, #cc0000 100%);
    border-top: 4px solid var(--racing-yellow);
}
