﻿body {
    margin: 0;
    padding: 0;
}

.with-navbar {
    padding-top: 105px; /* For pages using _Layout.cshtml */
}

.navbar-brand {
    font-size: 1.5em;
}

.jumbotron {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0.3rem;
}

.card-header-bg {
    background-color: #f4f6f9;
    color: #4e69b3;
    border: none;
    border-left: 7px solid #4e69b3;
}

/* Unloading bar for success modal */
.unloading-bar {
    width: 100%;
    height: 5px;
    background-color: #28a745;
    animation: unload 3s linear forwards;
}

@keyframes unload {
    0% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

/* Modal header theme */
.modal-header {
    background-color: #4e69b3;
    color: white;
}

/* Homepage styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    background-image: url('/Content/Genset-Banner1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(78, 105, 179, 0.5); /* #4e69b3 with transparency */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 15px;
}

    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: bold;
        margin-bottom: 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .hero-content .lead {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

.hero-buttons .btn {
    font-size: 1.2rem;
    padding: 12px 30px;
    margin: 0 10px;
}

.navbar-transparent {
    background-image: url('/Content/Genset-Banner1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    margin: 0;
}

    .navbar-transparent::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(78, 105, 179, 0.7); /* Slightly darker for navbar readability */
        z-index: -1;
    }

.navbar-light .nav-link {
    color: #fff;
    font-size: 1.1rem;
    padding: 10px 15px;
}

    .navbar-light .nav-link:hover {
        background-color: rgba(244, 246, 249, 0.3); /* #f4f6f9 with transparency */
    }

.navbar-brand img {
    height: 60px;
    filter: brightness(0) invert(1); /* White logo for contrast */
}

@media (max-width: 768px) {
    .with-navbar {
        padding-top: 70px; /* Smaller navbar height on mobile */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.2rem;
    }

    .hero-buttons .btn {
        font-size: 1rem;
        padding: 10px 20px;
        margin: 5px;
    }

    .navbar-brand img {
        height: 50px;
    }
}