﻿/* General Styles for Icy Dark Mode */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0d1b2a; /* Dark icy blue background */
    color: #d6e0f0; /* Light icy blue text */
}

/* Links and Button Styles */
a, .btn-link {
    color: #4da8da; /* Icy blue for links */
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2; /* Dark icy blue */
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #4da8da, 0 0 0 0.25rem #258cfb; /* Icy blue shadow effect */
}

/* Content Padding */
.content {
    padding-top: 1.1rem;
}

/* Valid and Invalid Field Styling */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #4da8da; /* Icy blue for valid fields */
}

.invalid {
    outline: 1px solid #ff4c4c; /* Red for invalid fields */
}

.validation-message {
    color: #ff4c4c; /* Error message color */
}

/* Blazor Error Boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Navbar Styling for Icy Dark Mode */
.navbar-toggler {
    appearance: none;
    display: block;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    width: 3.5rem;
    height: 2.5rem;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(77, 168, 218, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem;
    background-color: transparent;
    border: none;
    z-index: 1030;
    cursor: pointer;
}

    .navbar-toggler:checked ~ .nav-scrollable {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 3.5rem;
        left: 0;
        width: 100%;
        background-image: linear-gradient(90deg, rgb(5, 39, 103) 0%, #0d1b2a 100%); /* Icy gradient sidebar */
        /*background-color: #1b263b;*/ /* Dark icy blue for background */
        z-index: 1020;
        transition: all 0.3s ease;
    }

/* Hide navigation on mobile by default */
.nav-scrollable {
    display: none;
}

.nav-link {
    color: #d6e0f0; /* Icy light blue text for better contrast */
    text-decoration: none;
    padding: 0.5rem 1rem;
}

    .nav-link:hover {
        background-color: #4da8da; /* Icy blue background on hover */
        color: #fff; /* White text for readability */
    }

    .nav-link.active, .nav-link:hover {
        background-color: #4da8da; /* Icy blue */
        color: #fff;
    }

/* Improved contrast for navigation links */
.nav-link {
    color: #d6e0f0; /* Icy light blue text */
}

    .nav-link:hover {
        background-color: #4da8da; /* Icy blue background on hover */
        color: #fff; /* White text on hover */
    }

/* Overlay and Text Shadow */
.bg-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
}

.text-shadow-1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Dark shadow */
}

/* Card Styling */
.card {
    background-color: rgba(25, 47, 72, 0.9); /* Dark icy card background */
    border: none;
    color: #d6e0f0; /* Icy blue text */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(77, 168, 218, 0.9); /* Icy blue shadow */
    }

/* Card with Overlay */
.card-bg-img {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 0.25rem;
    overflow: hidden;
    height: 100%;
}

.card-overlay {
    background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent dark overlay */
    color: white; /* White text for contrast */
    padding: 1.25rem;
    border-radius: inherit;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #d6e0f0; /* Icy blue text */
}

.card-text {
    font-size: 1rem;
    color: #f8f9fa; /* Lighter text for better contrast */
}

/* Buttons */
.btn-custom {
    background-color: #4da8da; /* Icy blue */
    color: white;
    border: 1px solid #4da8da;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .btn-custom:hover {
        background-color: lightskyblue; /* Lighter icy blue on hover */
        color: #004080;
        border: 1px solid #004080;
    }

    .btn-custom:focus, .btn-custom:active {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(77, 168, 218, 0.5);
    }

/* Icy Dark Mode Styling for List Group Items */
.list-group-item {
    background-color: #2b2b2b; /* Dark background */
    color: #f1f1f1; /* Light text */
    border: 1px solid #3d3d3d;
}

    .list-group-item:hover {
        background-color: #3a3a3a;
        color: #fff;
    }

    .list-group-item.active {
        background-color: #1b6ec2; /* Icy blue active background */
        color: #fff;
        border-color: #1861ac;
    }

        .list-group-item.active:hover {
            background-color: #258cfb; /* Lighter icy blue */
            color: #fff;
        }

    .list-group-item.disabled {
        background-color: #444444;
        color: #7a7a7a;
    }

/* Top Row for Icy Dark Mode */
.top-row {
    background-color: #121212; /* Dark background */
    border-bottom: 1px solid #d6d5d5; /* Light border for separation */
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row ::deep .btn-link {
        color: #4da8da; /* Icy blue links */
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
            text-decoration: underline;
        }

        .top-row ::deep a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* Accordion Styling */
.accordion {
    background-color: #0d1b2a; /* Dark icy blue background */
    border-radius: 0.5rem;
    border: none;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    background-color: #1b263b; /* Darker blue */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Icy shadow */
}

.accordion-button {
    background-color: #1b263b;
    color: #d6e0f0;
    font-weight: bold;
    border: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 0.5rem;
}

    .accordion-button.collapsed {
        background-color: #1f3540; /* Icy blue when collapsed */
        color: #d6e0f0;
    }

    .accordion-button:hover {
        background-color: #2d4059;
        color: #fff;
    }

    .accordion-button::after {
        color: #4da8da;
        transition: transform 0.3s ease;
    }

    .accordion-button:not(.collapsed)::after {
        transform: rotate(180deg);
    }

.accordion-body {
    background-color: #222831;
    color: #d6e0f0;
    padding: 1.5rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .logo-mobile {
        width: 200%;
    }

    .text-content {
        order: 2;
    }

    .logo-mobile {
        order: 1;
    }

    .hide-on-phone {
        display: none;
    }
}

/* Media Query to Disable Rectangular Fade on Mobile */
@media (max-width: 767.98px) {
    .rectangular-fade::before {
        background: none;
    }

    .rectangular-fade {
        background: none;
    }
}
.progress {
    height: 20px;
}

.progress-bar {
    background-color: #007bff;
    color: white;
}