 /* Apply Google Font */
 body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark theme styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

/* Color coding for similarity scores with modern colors */
.similarity-high {
    background-color: rgba(255, 99, 132, 0.3); /* High similarity (red) */
}

.similarity-medium {
    background-color: rgba(255, 159, 64, 0.3); /* Medium similarity (orange) */
}

.similarity-low {
    background-color: rgba(255, 205, 86, 0.3); /* Low similarity (yellow) */
}

/* Password protection styles */
.password-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
}

/* Imported row styles */
.imported-row {
    background-color: rgba(255, 193, 7, 0.1);
}

/* Table styles for dark mode */
body.dark-mode .table {
    color: #e0e0e0;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .table-bordered {
    border-color: #424242;
}

body.dark-mode .table-bordered th,
body.dark-mode .table-bordered td {
    border-color: #424242;
}

body.dark-mode .card {
    min-height: 220px;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .form-control {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #424242;
}

body.dark-mode .form-control::placeholder {
    color: #a0a0a0;
}

body.dark-mode .input-group-text {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #424242;
}

body.dark-mode .btn-primary {
    background-color: #3a3f51;
    border-color: #3a3f51;
}

body.dark-mode .btn-secondary {
    background-color: #5a5e6b;
    border-color: #5a5e6b;
}

body.dark-mode .btn-success {
    background-color: #3e8e41;
    border-color: #3e8e41;
}

body.dark-mode .btn-info {
    background-color: #31708f;
    border-color: #31708f;
}

body.dark-mode .btn-danger {
    background-color: #a94442;
    border-color: #a94442;
}

body.dark-mode .btn-outline-secondary {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #424242;
}

body.dark-mode .custom-control-label::before {
    background-color: #424242;
    border-color: #424242;
}

/* Card styles */
.card {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    background-color: #ffffff;
    color: #212529;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .card {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .toast-body {
    color: #000;
}

/* Button styles */
.btn-rounded {
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-rounded:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Toggle switch for dark mode */
.custom-switch .custom-control-label::before {
    border-radius: 50px;
}

.mode-toggle-container,
.api-key-container{
    position: absolute;
    top: 20px;
    right: 20px;
}

.api-key-container {
    top: 70px;
}

.jumbotron{
    background: none;
}

/* Toast positioning */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

/* Smooth transitions */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.custom-range {
    width: 100%;
}
.custom-range::-webkit-slider-thumb {
    background-color: #007bff;
}
.custom-range::-moz-range-thumb {
    background-color: #007bff;
}
.custom-range::-ms-thumb {
    background-color: #007bff;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive table */
@media (max-width: 767.98px) {
    .table-responsive {
        display: none;
    }
    .cards-container {
        display: flex;
        flex-direction: column;
    }
    .card-responsive {
        margin-bottom: 15px;
    }
}
@media (min-width: 768px) {
    .cards-container {
        display: none;
    }
}

/* Add these to your existing styles section */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    color: #495057;
    background: none;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    text-decoration: none;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Dark mode styles for tabs */
body.dark-mode .nav-tabs {
    border-bottom-color: #424242;
}

body.dark-mode .nav-tabs .nav-link {
    color: #e0e0e0;
}

body.dark-mode .nav-tabs .nav-link:hover {
    border-color: #424242;
    color: #e0e0e0;
}

body.dark-mode .nav-tabs .nav-link.active {
    color: #007bff;
    background-color: #1e1e1e;
    border-color: #424242 #424242 #1e1e1e;
}

.form-control.loading {
    background-image: linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: loading-stripes 1s linear infinite;
}

@keyframes loading-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

body.dark-mode .form-control.loading {
    background-image: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
}