body {
    background: linear-gradient(to bottom, #e6dec4, floralwhite);
    /* background-color: #f4ecd8; */
    /* Use a serif font for a classic look */
    /* font-family: 'EB Garamond', serif; */
}

.main {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Bootstrap default override */
:root {
    --bs-body-bg: floralwhite;
}

/* For responsive logo */
.logo-img {
    max-width: 85%;
    transition: max-height 0.3s ease;
}

@media (max-width: 767px) {
    .logo-img {
        max-height: 120px !important;
    }
}

.logo-s {
    width: 70px;
    height: 50px;
}

.logo {
    width: 200px;
    height: 200px;
}

textarea {
    background-color: #fffaf0 !important;
    padding-top: 34px !important;
}

.card {
    background-color: #fffaf0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease;
}

.ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    background: #ffc107;
    color: #000;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 0 0 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1;
}

.custom-table,
.custom-table th,
.custom-table td {
    background-color: floralwhite !important;
}

.form-check-input {
    cursor: pointer;
}

.nav-link-text-color {
    color: #D27D2C;
}

.navbar-brand:hover {
    color: rgb(255, 255, 255, 0.75) !important;
}

.navbar-brand.active {
    color: #fff !important;
}

.logout-username-text {
    color: #fff;
    font-weight: bold;
}

.border-color-inherit {
    border-color: inherit;
}

.cursor-pointer {
    cursor: pointer;
}

.form-control {
    background-color: #f8f9fa !important;
}

.form-select {
    background-color: #f8f9fa !important;
}

label::after {
    background-color: #f8f9fa !important;
}

/* Default state (uncopied) */
button.btn-outline-primary {
    background-color: transparent;
    color: #0d6efd; /* Primary blue */
    border-color: #0d6efd;
}

/* Active state (copied) */
button.btn-outline-primary.active {
    background-color: #198754; /* Success green */
    border-color: #198754;
    color: #fff;
}

.textarea-line-height {
    line-height: 1.5 !important;
}

/* Hover background color for dropdown items */
.dropdown-item:hover {
    background-color: #f5bd6a;
}

/* A subtle transition for smooth hover effect */
.dropdown-item {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom dropdown styling for user menu */
.user-dropdown {
    min-width: 200px;
    max-width: 300px;
    width: auto !important; 
}

/* Handle long email addresses */
.user-identifier {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uploaded-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 476px;
}

#upload-body {
    cursor: pointer;
    border: 2px dashed #ced4da;
    transition: all 0.3s ease;
    min-height: 420px;
}

#upload-body:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

#upload-body.dragover {
    border-color: #0d6efd !important;
    background: #e9f5ff;
    transform: scale(1.01);
}

#upload-area {
    background-color: #f8f9fa;
}

/* Feature steps styling */
.bg-opacity-10 {
    opacity: 1 !important;
}

#transcribe-template .flex-shrink-0 .rounded-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#transcribe-template h6 {
    font-weight: 600;
    color: #2c3e50;
}

.img-thumbnail {
    max-width: 120px;
    max-height: 120px;
}

/* Zoom wrapper for modal image */
#zoomable-wrapper {
    display: inline-block;
    line-height: 0;
    transition: transform 0.2s ease-out;
    will-change: transform;
    max-width: 100%;
    vertical-align: top;
    transform-origin: 0 0;
}

#zoomable-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
}

#compare-transcription-text:focus {
    outline: none;
    box-shadow: none;
}

.footer-link:hover {
    color: #f5bd6a !important;
    transition: color 0.15s ease-in-out !important;
}

/* Breadcrumb styles */
.breadcrumb-glass {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #0a58ca;
}

.breadcrumb-item.active {
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* Project Show page */
#filters-section {
    position: relative;
    z-index: 10;
}

.border-dashed {
    border-style: dashed !important;
    background-color: whitesmoke;
}

.favorite-btn {
    z-index: 2;
    position: relative;
}

.favorite-btn.active {
    color: #ffc107;
    border-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.badge.bg-light {
    border: 1px solid #dee2e6;
}

/* Document Form */
.source-language-field {
    max-height: 200px;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.date-field {
    max-height: 200px;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Document Show Page */
.document-header {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.copy-button[aria-pressed="true"] {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

/* Tab content styling */
.tab-pane {
    padding-top: 1rem;
}

.document-preview {
    max-height: 300px;
    overflow-y: auto;
}

/* Export buttons */
.export-dropdown .dropdown-item:hover i {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.textarea-readonly {
    height: auto;
    white-space: pre-wrap;
}

.scrollable-text {
    max-height: 400px;
    overflow-y: auto;
}

.two-column-text {
    column-count: 2;
    column-gap: 2rem;
    column-rule: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .two-column-text {
        column-count: 1;
    }
}

/* TODO: Style placeholder option in project select (example for adding in form type class attribute) */
/* .select-placeholder-styling option[value=""] {
    color: #6c757d;
    font-style: italic;
}

.select-placeholder-styling:invalid {
    color: #6c757d;
}

.select-placeholder-styling:valid {
    color: #212529;
} */

/* ===== User Timezone Clock in Header ===== */
.user-timezone-clock {
    text-align: center;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    min-width: 100px;
}

.clock-time {
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.clock-date {
    font-size: 0.75rem;
    margin-top: -0.25rem;
}

.clock-timezone {
    font-size: 0.65rem;
    margin-top: -0.25rem;
}

@media (max-width: 991px) {
    .user-timezone-clock {
        display: none;
    }
}

@media (max-width: 576px) {
    .clock-time {
        font-size: 0.875rem;
    }
    .clock-date {
        font-size: 0.65rem;
    }
}

/* ===== Dashboard Clock ===== */
.dashboard-clock-time {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.dashboard-clock-date {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .dashboard-clock-time {
        font-size: 2rem !important;
    }
    .dashboard-clock-date {
        font-size: 1rem !important;
    }
}

/* ===================================
   Landing Page Specific Styles
   =================================== */

/* Hero Section */
.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(to right, #f8f9fa, floralwhite);
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    color: #D27D2C;
}

.bg-cream {
    background-color: floralwhite !important;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    background-color: floralwhite;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* How It Works Section */
.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Benefits Section */
.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Testimonials */
.testimonials-section .card {
    transition: all 0.3s ease;
    background-color: #fffaf0;
}

.testimonials-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.avatar {
    font-weight: bold;
}

/* Audience Section */
.audience-item {
    transition: all 0.3s ease;
}

.audience-item:hover {
    transform: scale(1.1);
}

.audience-item i {
    transition: transform 0.3s ease;
}

.audience-item:hover i {
    transform: translateY(-10px);
}

/* FAQ Section */
.accordion-item {
    background-color: #fffaf0;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background-color: #fffaf0;
}

.accordion-button:not(.collapsed) {
    background-color: #ffebd1;
    color: #000;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #ffc107;
}

/* CTA Section */
.cta-box {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* General Landing Utilities */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Smooth Transitions */
section {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Border Dash for Empty States */
.border-dashed {
    border: 2px dashed #dee2e6 !important;
    background-color: #fafaf9;
}

.border-dashed:hover {
    border-color: #D27D2C !important;
    background-color: #fffaf0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .animated-float {
        animation: none;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
}

/* Enhanced Footer Styles */
.footer .footer-link {
    transition: all 0.3s ease;
}

.footer .footer-link:hover {
    opacity: 1 !important;
    padding-left: 5px;
}

.footer a[title]:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.footer h6 {
    position: relative;
    padding-bottom: 10px;
}

/* Public Registration Page */
.registration-step {
    display: none;
}

.registration-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    gap: 1rem;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step-dot.active {
    background-color: #0d6efd;
    color: white;
}

.step-dot.completed {
    background-color: #198754;
    color: white;
}