﻿/* Set body margin and font styles */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 0.9rem;
    line-height: 1.6;
    color: #212529;
    background-color: #f8f9fa;
}

/* Style for the main navigation bar */

.nav-link {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px; /* Space between icon and text */
    padding: 12px 16px;
    padding-left: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: ghostwhite; /* Darker orange for a modern look */
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 350px;
    margin: 8px auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

    .nav-link:hover {
        background-color: #e07b00;
        transform: translateY(-2px);
    }

    .nav-link:active {
        background-color: white;
        transform: translateY(1px);
    }

    .nav-link i {
        font-size: 1.2rem;
    }

.navbar {
    background-color: #343a40;
}

.navbar-brand,
.navbar-nav .nav-link {
    padding-left: 10px;
    color: #ffffff;
    cursor: pointer;
}

    .navbar-brand:hover,
    .navbar-nav .nav-link:hover {
        color: #d3d3d3;
    }

/* Style for the main content container */
.container {
    margin-top: 1rem;
}

    .container h1 {
        font-size: calc(1.375rem + 1.5vw);
        color: #ffa500;
    }

/* Styling for validation messages */
.text-danger {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form styles */
form {
    margin-bottom: 1rem;
}

/* Table styles */
.table {
    margin-top: 1rem;
}

/* Footer styles */
footer {
    margin-top: .75rem;
    margin-bottom: 0rem;
    padding: .25rem 0;
    text-align: center;
    background-color: #343a40;
    color: #ffffff;
}



@media (max-width: 576px) { /* Bootstrap's 'sm' breakpoint */
    .responsive-table {
        display: block;
    }

        .responsive-table thead {
            display: none; /* Hide headers on mobile */
        }

        .responsive-table tbody, .responsive-table tr, .responsive-table td {
            display: block;
            /*width: 100%;*/
        }

        .responsive-table tr {
            margin-bottom: 15px;
            border-bottom: 1px solid #dee2e6;
        }

        .responsive-table td {
            position: relative;
            padding-left: 10px; /* Space for pseudo-label */
        }

            .responsive-table td::before {
                content: attr(data-label); /* Use data-label attribute as pseudo-header */
                position: absolute;
                left: 8px;
                width: 100%;
                font-weight: bold;
                white-space: nowrap;
            }
    .btn-primary,
    .btn-secondary {
        width: 100%; /* Full width buttons on small screens */
        padding: 12px;
        color: darkslategray;
    }
}

.field-container {
    margin-bottom: 20px;
}

    .field-container label {
        display: block;
        margin-bottom: 5px;
    }

textarea, select, input[type="file"] {
    width: 100%;
    margin-bottom: 10px;
}


.status-options {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.status-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

    .status-btn.selected {
        background: #ffa500;
        color: #fff;
        border-color: #dc3545;
    }

    .status-btn .icon-cross {
        color: red;
    }

    .status-btn .icon-check {
        color: green;
    }

    .status-btn:hover {
        background: #d6eaff;
    }

.strong {
    font-weight: bold;
}

.profile-circle {
    width: 40px; /* Circle width */
    height: 40px; /* Circle height */
    border-radius: 50%; /* Make it circular */
    background-color: #ff6300; /* Background color (adjust as needed) */
    color: #fff; /* Text color */
    display: flex; /* Center the initials */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    font-size: 18px; /* Font size for initials */
    font-weight: bold; /* Bold text */
    text-transform: uppercase; /* Ensure initials are uppercase */
    margin-right: 10px; /* Space between circle and text */
}

.card {
    border-radius: 10px;
}

.card-title {
    font-size: 1.5rem;
}

.card-text {
    font-size: 1.1rem;
}

h1 {
    color: #ffa500; /* Dark orange color for the heading */
    font-size: 13px;
}

.PageTitle {
    color: #ffa500; /* Dark orange color for the heading */
    font-size: 15px;
    font-weight: 500
}


.btn-dashboard {
    display: flex;
    align-items: left;
    vertical-align: middle;
    justify-content: left;
    padding: 10px 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #2b2b2b;
    background-color: #ffa500;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 350px;
    margin: auto;
}

    .btn-dashboard i {
        margin-right: 10px;
        font-size: 1rem;
    }

    .btn-dashboard:hover {
        background-color: #e68a00; /* Slightly darker shade on hover */
        color: #fff;
    }

.row {
    margin-top: 20px;
}
/* Primary Button Style */
.btn-primary {
    background-color: #ffa500; /* Dark orange background */
    border-color: #ffa500; /* Dark orange border */
    color: #fff; /* White text */
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #e68a00; /* Slightly darker for hover/focus */
        border-color: #e68a00;
        color: #fff;
    }

    .btn-primary:active {
        background-color: #cc7700; /* Even darker for active */
        border-color: #cc7700;
        color: #fff;
    }

/* Secondary Button Style */
.btn-secondary {
    background-color: #0094ff; /* Dark orange alternative */
    border-color: #e68a00;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        background-color: #cc7700;
        border-color: #cc7700;
        color: #fff;
    }

    .btn-secondary:active {
        background-color: #0094ff;
        border-color: #b35900;
        color: #fff;
    }

/* General Button Style Overrides */
button,
.btn {
    font-family: Arial, sans-serif;
    cursor: pointer;
}

/* Responsive Adjustments */


.warning {
    border: 2px solid red;
    background-color: #ffe5e5;
}

.vehicle-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.vehicle-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #343a40;
    border-radius: 10px;
    margin-bottom: 10px;
}

.vehicle-registration {
    text-align: center;
}

    .vehicle-registration a {
        display: inline-block;
        padding: 10px 15px;
        background-color: #f56a00;
        color: white;
        border-radius: 5px;
        text-decoration: none;
    }

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

    .responsive-table th,
    .responsive-table td {
        text-align: left;
        padding: 10px;
        border: 1px solid #ddd;
    }

    .responsive-table img {
        max-width: 100px;
        height: auto;
        border-radius: 5px;
    }

    .responsive-table a {
        display: inline-block;
        padding: 5px 10px;
        background-color: #f56a00;
        color: #fff;
        border-radius: 3px;
        text-decoration: none;
    }

        .responsive-table a:hover {
            background-color: #e85a00;
        }

@media (max-width: 768px) {
    .responsive-table th,
    .responsive-table td {
        display: block;
        text-align: right;
    }

        .responsive-table td::before {
            content: attr(data-label);
            float: left;
            font-weight: bold;
        }

    .info-grid {
        grid-template-columns: 1fr; /* Stack on small screens */
        gap: 5px;
    }

    .label {
        text-align: left; /* Align labels left on small screens */
    }
}

.vehicle-registration a:hover {
    background-color: #e85a00;
}

.message-box-warning {
    background-color: #dc3545; /* Light gray background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding inside the box */
    display: flex; /* Align items horizontally */
    align-items: center; /* Vertical alignment */
    margin-top: 5px; /* Space between the label and message */
    font-size: 0.9rem; /* Slightly smaller text */
    color: #ffffff; /* Text color */
}

.message-box-critical {
    background-color: darkred; /* Light gray background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding inside the box */
    display: flex; /* Align items horizontally */
    align-items: center; /* Vertical alignment */
    margin-top: 5px; /* Space between the label and message */
    font-size: 0.9rem; /* Slightly smaller text */
    color: #ffffff; /* Text color */
}
.message-box-label {
    background-color:khaki ; /* Light gray background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding inside the box */
    display: flex; /* Align items horizontally */
    align-items: center; /* Vertical alignment */
    margin-top: 5px; /* Space between the label and message */
    font-size: 0.9rem; /* Slightly smaller text */
    color: #343a40; /* Text color */
    text-align:left;
}
.message-box-value {
    background-color: ghostwhite; /* Light gray background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding inside the box */
    display: flex; /* Align items horizontally */
    align-items: center; /* Vertical alignment */
    margin-top: 5px; /* Space between the label and message */
    font-size: 0.9rem; /* Slightly smaller text */
    color: black; /* Text color */
    text-align:left;
}

.message-box-success {
    background-color: green; /* Light gray background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding inside the box */
    display: flex; /* Align items horizontally */
    align-items: center; /* Vertical alignment */
    margin-top: 5px; /* Space between the label and message */
    font-size: 0.9rem; /* Slightly smaller text */
    color: #ffffff; /* Text color */
}

.message-box {
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding inside the box */
    display: flex; /* Align items horizontally */
    align-items: center; /* Vertical alignment */
    margin-top: 5px; /* Space between the label and message */
    font-size: 0.9rem; /* Slightly smaller text */
    color: #555; /* Text color */
}

    .message-box .icon {
        color: #007bff; /* Blue for ℹ or customize as needed */
        font-size: 1.2rem; /* Slightly larger icon */
        font-weight: bold; /* Bold to make it stand out */
    }

    .message-box .iconRed {
        color: red; /* Blue for ℹ or customize as needed */
        font-size: 1.2rem; /* Slightly larger icon */
        font-weight: bold; /* Bold to make it stand out */
    }

.icon-check {
    color: green;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.icon-cross {
    color: red;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

/* Optional: Style the check and cross icons as circles */
.icon-check::before {
    content: "✔️"; /* Unicode checkmark */
    font-size: 1rem;
}

.icon-cross::before {
    content: "❌"; /* Unicode cross */
    font-size: 1rem;
}

.donut-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between donut and percentage */
    font-size: 0.9rem;
}

.circular-chart {
    transform: rotate(-90deg); /* Start from the top */
}

.circle-bg {
    fill: none;
    stroke: #eee; /* Light gray background circle */
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: #4caf50; /* Green for passed percentage */
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease; /* Smooth animation */
}

.percentage-text {
    font-weight: bold;
    color: #333;
}

canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

.view-registration-link {
    color: #FF5722; /* Dark orange theme */
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Space between the icon and text */
}

    .view-registration-link:hover {
        color: #D84315;
        text-decoration: underline;
    }

    .view-registration-link .icon-file {
        display: inline-block;
        width: 16px;
        height: 16px;
        background: url('/Images/download-icon.svg') no-repeat center center;
        background-size: contain;
    }

.download-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/images/download-icon.svg') no-repeat center center;
    background-size: contain;
    vertical-align: middle;
    margin-right: 5px; /* Space between icon and text */
}

main {
    min-height: 300px; /* Adjust 100px to account for the header/footer height */
}

.image-box {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.2s;
}

    .image-box:hover {
        transform: scale(1.05);
    }
.info-grid {
    display: grid;
    grid-template-columns: minmax(80px, .25fr) auto; /* Fixed width for labels, auto for badges */
    gap: 10px 20px; /* Row gap: 10px, Column gap: 20px */
    margin-bottom: 15px; /* Space before the form */
}
.grid-item {
    width: 100%;
}

.label {
    text-align: left; /* Align labels to the right for consistency */
    white-space: nowrap; /* Prevent label wrapping */
}

.custom-badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between badges */
    margin-bottom: 15px; /* Space between badges and form */
}

.custom-badge {
    font-size: 0.9rem; /* Slightly smaller for compactness */
    padding: 0.5em 0.75em; /* Adjust padding for size */
    text-align:left;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}



.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .back-btn i {
        margin-right: 8px;
        font-size: 0.9rem;
    }

    .back-btn:hover {
        background: #0056b3;
        transform: translateY(-2px);
    }

    .back-btn:active {
        transform: translateY(0);
    }

.responsive-table thead {
    display: none;
}

.responsive-table tbody,
.responsive-table tr,
.responsive-table td {
    display: block;
    width: 100%;
}

.responsive-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.responsive-table td {
    border: none;
    position: relative;
    padding-left: 10px;
}

    .responsive-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        color: #333;
    }

    .responsive-table td[data-label="Time of Day"] {
        padding-left: 10px;
    }

.time-indicator {
    display: block;
    margin: 5px 0;
}

}

.schedule-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.schedule-container {
    display: grid;
    gap: 15px;
}

.schedule-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f5f5f5;
    cursor: pointer;
}

    .schedule-header h2 {
        margin: 0;
        font-size: 1.2em;
    }

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 10px;
}

.collapse-icon {
    display: none;
}

.schedule-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}

.details-content {
    padding: 15px 0;
}

.details-btn {
    display: block;
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 5px;
}

    .details-btn:hover {
        background-color: #0056b3;
    }

.expanded .schedule-details {
    max-height: 400px; /* Adjust based on your content */
}

.expanded .expand-icon {
    display: none;
}

.expanded .collapse-icon {
    display: inline;
}