﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.navbar {
    background-color: #001A3B;
}

body {
  margin-bottom: 60px;
}

fieldset {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 6px;
}

legend {
    font-weight: bold;
    font-size: 1.1rem;
}

.upload-area {
    background: #f9f9f9;
    border: 2px dashed #ccc;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    margin-top: 0.5rem;
}

.upload-area.dragging {
    border-color: #007bff;
    background-color: #e9f5ff;
}

.file-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list button {
    margin-left: 1rem;
}

.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.car-entry {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 5px;
    background-color: white;
}

.upload-area {
    border: 2px dashed #aaa;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.upload-area.dragging {
    background-color: #e0f7fa;
}

.file-list {
    list-style-type: none;
    padding-left: 0;
}

.file-list li {
    margin-top: 5px;
}

button {
    margin-top: 10px;
    margin-right: 5px;
}

.ai-assistant {
    background-color: rgba(255, 255, 255, 0.8); /* White with 20% transparency */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}



.file-list .file-item {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .file-list .file-item:last-child {
        border-bottom: none;
    }

.upload-text {
    color: #6c757d;
}

#dropZone {
    width: 100%;
    padding: 20px;
    border: 2px dashed #007bff;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    color: black;
    transition: background-color 0.3s, color 0.3s;
}

    #dropZone.active {
        background-color: #28a745;
        color: white;
    }

#file-list {
    list-style: none;
    padding: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 5px;
    margin: 5px 0;
    border-radius: 5px;
}

.delete-btn {
    cursor: pointer;
    color: red;
}

.edit-lock-banner {
    background: #ffdede;
    color: #b00000;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    z-index: 9999;
    position: sticky;
    top: 0;
}

#countdownBanner {
    font-size: 1rem;
    padding: 1rem;
    border-left: 6px solid #ffc107;
    margin-bottom: 1rem;
}

.file-delete-btn {
    color: red;
    margin-left: 10px;
}

.car-entry.soft-deleted {
    pointer-events: none;
    position: relative;
}

/*    .car-entry.soft-deleted::after { TODO re-visit for admin use or not
        content: "Retired";
        position: absolute;
        top: 0.5rem;
        right: 1rem;
        background-color: #dc3545;
        color: white;
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        border-radius: 0.25rem;
    }*/
.upload-dropzone {
    background-color: #f8f9fa;
    border: 2px dashed #6c757d;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .upload-dropzone:hover {
        background-color: #e9ecef;
        border-color: #0d6efd;
        box-shadow: 0 0 5px rgba(13,110,253,0.5);
    }

    .upload-dropzone.dragover {
        border: 2px dashed #007bff;
        background-color: #e6f0ff;
    }

.upload-dropzone {
    cursor: pointer;
    transition: border-color 0.3s;
}

    .upload-dropzone.dragover {
        border-color: #007bff;
        background-color: #f0f8ff;
    }

.uploadWaysButton {
    display: none;
}

@media (max-width: 576px) {
    .upload-dropzone {
        display: none;
    }
    .uploadWaysButton {
        display: block;
    }
}

.file-list .file-item i {
    font-size: 1rem;
}

.alt-upload-panel {
    border-top: 1px dashed #ccc;
    padding-top: 0.5rem;
}

#uploadWaysButton {
    border:none;
}

.edit-file-btn.disabled,
.file-delete-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    right: auto;
    background-color: #1a73e8;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
    font-size: 1rem;
}

    .toast.show {
        opacity: 1;
    }

    .toast.hidden {
        display: none;
    }

/* Shrink pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 2px 6px;
    font-size: 0.88rem;
    margin: 0 2px;
}

    /* Optional: shrink current active page button */
    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        padding: 2px 6px;
        font-size: 0.88rem;
        margin: 0 2px;
        background-color: #007bff;
        color: white !important;
        border: 1px solid #007bff;
        border-radius: 4px;
    }

.car-entry {
    position: relative;
}

.car-controls {
    z-index: 10;
}

.lock-icon {
    font-size: 1rem;
    vertical-align: middle;
}

.autocomplete-list {
    position: absolute; /* below the input */
    left: 0;
    right: 0;
    top: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}

    .suggestion-item:hover,
    .suggestion-item:focus {
        background: #007bff;
        color: #fff;
    }

/* Main Page */
/* Text that will be clamped */
.excerpt-text {
    /* The clamp trick  works in Chrome, Edge, Safari, and Firefox (webkit only) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 8 lines  adjust the number if you need more or fewer */
    -webkit-line-clamp: 8;
}

    /* When expanded  remove the clamp */
    .excerpt-text.expanded {
        -webkit-line-clamp: unset; /* or simply delete the property */
        overflow: visible;
    }

/* The view all / view less link */
.view-all-link {
    display: none; /* hidden by default  JS shows it when needed */
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 4px; /* a little space before the link */
}