/**
 * FleetAssure V2 - Main Stylesheet
 * Contains all base styles extracted from templates to comply with CSP
 * ISO27001 compliant - No inline styles, all external CSS
 */

/* Base Body and Typography Styles */
body {
    background-color: #000000;
    color: #ffffff;
    font-size: 1.25rem;
}

/* Navbar Styles */
.navbar {
    background-color: #000000 !important;
    border-bottom: 2px solid #FFD700;
}

.navbar-brand {
    font-weight: bold;
    color: #FFD700 !important;
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 1.25rem;
}

.navbar-nav .nav-link:hover {
    color: #FFD700 !important;
}

.navbar-positioned {
    position: relative;
}

/* Card Styles */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(255, 215, 0, 0.2);
    border: 1px solid #FFD700;
    background-color: #1a1a1a;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #FFD700;
    color: #000000;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #FFD700;
    border-color: #FFD700;
    color: #000000;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #FFA500;
    border-color: #FFA500;
    color: #000000;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-warning {
    background-color: #ffc107;
}

/* Modal Styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-content {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #FFD700 !important;
}

.modal-header {
    background-color: #FFD700 !important;
    color: #000000 !important;
    border-bottom: 1px solid #FFD700 !important;
}

.modal-body {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.modal-footer {
    background-color: #1a1a1a !important;
    border-top: 1px solid #444 !important;
}

.btn-close {
    filter: invert(1) !important;
}


/* Alert Styles */
.alert {
    border-radius: 0.375rem;
}

/* Table Styles */
.table {
    color: #ffffff;
    font-size: 1.25rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #2a2a2a;
}

/* Form Control Styles */
.form-control {
    background-color: #2a2a2a;
    border-color: #FFD700;
    color: #ffffff;
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: #2a2a2a;
    border-color: #FFD700;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-label {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Text Utilities */
.text-muted {
    color: #cccccc !important;
}

/* Logo Styles */
.bron-logo {
    max-height: 60px;
    width: auto;
}

.logo {
    max-height: 40px;
    margin-right: 10px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-size: 1.25em;
}

/* Tooltip Styles */
.tooltip-trigger {
    position: relative;
    display: inline-block;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Help Icon Styles */
.help-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #FFD700;
    color: #000;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    cursor: help;
}

/* Placeholder Image Styling */
.placeholder-image {
    position: absolute;
    top: -5px;
    right: 0;
    height: calc(8vh - 10px);
    width: 20vw;
    max-height: 70px;
    max-width: 300px;
    min-height: 30px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1000;
}

.placeholder-image img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    width: auto;
    object-fit: contain;
    max-height: 80px;
}

/* Footer Styles */
.footer {
    background-color: #000000;
    border-top: 2px solid #FFD700;
    color: #FFD700;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Mobile Optimized */
.mobile-optimized {
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .placeholder-image {
        height: calc(6vh - 8px);
        width: 25vw;
        top: -3px;
    }
    
    .placeholder-image img {
        max-height: 50px;
    }
    
    .mobile-optimized {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .placeholder-image {
        height: calc(5vh - 6px);
        width: 30vw;
        top: -2px;
    }
    
    .placeholder-image img {
        max-height: 40px;
    }
}



