:root {
    --primary: #034E91;  /* Dark Blue Primary */
    --primary-dark: #023a6e;  /* Darker shade for hover */
    --secondary: #4F7F11;  /* Dark Green Primary */
    --accent-blue: #5EA0DB;  /* Light Blue Secondary */
    --accent-green: #6DAD1A;  /* Light Green Secondary */
    --text: #1f2937;
    --text-light: #6b7280;
    --background: #FFFFFF;  /* White Primary */
    --background-alt: #f9fafb;
    --border: #e5e7eb;
    --success: #4F7F11;  /* Using primary green for success */
    --danger: #ef4444;
    --warning: #f59e0b;
}

.dark {
    --text: #f9fafb;
    --text-light: #e5e7eb;
    --background: #111827;
    --background-alt: #1f2937;
    --border: #374151;
    --primary: #5EA0DB;  /* Light Blue Secondary for dark mode */
    --secondary: #6DAD1A;  /* Light Green Secondary for dark mode */
    --success: #6DAD1A;
    --danger: #f87171;
    --card-text: #f3f4f6;
}

/* Import font for Designer Regular or use system fallback */
/*@font-face {
    font-family: 'Designer Regular';
    src: url('../fonts/Designer-Regular.woff2') format('woff2'),
         url('../fonts/Designer-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}*/

/* Light theme is default */
body {
    font-family: 'Designer Regular', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

/* Dark theme is applied when the .dark class is added to the html */
html.dark body {
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;  /* semibold */
    color: var(--text);
}

/* Updated navbar styles */
.navbar {
    background-color: var(--background) !important;
    border-bottom: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

html.dark .navbar {
    background-color: var(--background-alt) !important;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

/* Updated logo styling */
.logo-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.logo-img {
    max-height: 38px;
    width: auto;
}

/* Updated navigation links */
.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary) !important;
}

/* Updated button styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(3, 78, 145, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(109, 173, 26, 0.2);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(3, 78, 145, 0.2);
}

.btn-success, .bg-success {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.text-success {
    color: var(--secondary) !important;
}

.btn-outline-success {
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.btn-outline-success:hover, .btn-outline-success:focus {
    background-color: var(--secondary) !important;
    color: white !important;
}

/* Updated hero section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--background), var(--background-alt));
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Updated card styles */
.card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    border-bottom: 1px solid var(--border) !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(3, 78, 145, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border) !important;
}

.card-header.bg-primary {
    background-color: var(--primary) !important;
    border-bottom: none !important;
}

.card-header.bg-secondary {
    background-color: var(--secondary) !important;
    border-bottom: none !important;
}

/* Pricing card fixes for alignment and border issues */
#pricing .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border) !important;
    text-decoration: none !important;
}

#pricing .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

#pricing .mt-auto {
    margin-top: auto !important;
}

#pricing .row > div {
    display: flex;
    margin-bottom: 0;
    float: none !important;
}

#pricing .border-primary {
    border: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary) !important;
}

/* Fix for card alignment in pricing section */
#pricing .row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

#pricing .row.g-4 > div {
    float: none;
    display: flex;
    flex-direction: column;
}

/* Remove underlines from text globally */
.card, .card-title, .card-text, .card-body, .card-header, 
.hero, .hero *, h1, h2, h3, h4, h5, h6, p, 
.list-unstyled li, .text-muted, .display-5, .workflow-step * {
    text-decoration: none !important;
}

/* Fix box shadow and border issues */
.card, .card-header, .card-body, .card-footer {
    box-shadow: none !important;
    border-bottom-width: 1px !important;
}

.card-header, .card-body, .card-footer {
    border-bottom: none !important;
}

/* Fix for card.border-primary */
.card.border-primary {
    border: 2px solid var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
    text-decoration: none !important;
}

/* Updated feature cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(3, 78, 145, 0.1);
}

.feature-card.bg-transparent {
    box-shadow: none;
}

.feature-card.bg-transparent:hover {
    box-shadow: none;
    background-color: rgba(3, 78, 145, 0.05) !important;
}

html.dark .feature-card.bg-transparent:hover {
    background-color: rgba(94, 160, 219, 0.1) !important;
}

.feature-card .card-body {
    padding: 2rem 1.5rem;
    border-bottom: none !important;
}

/* Updated feature icons with brand colors */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(3, 78, 145, 0.1);
    color: var(--primary);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: var(--primary);
    color: white;
}

html.dark .feature-card:hover {
    box-shadow: 0 15px 30px rgba(94, 160, 219, 0.2);
}

html.dark .feature-icon {
    background-color: rgba(94, 160, 219, 0.2);
}

html.dark .feature-card:hover .feature-icon {
    background-color: var(--primary);
}

/* Step indicators with brand colors */
.list-group-item {
    background-color: var(--background);
    border-color: var(--border);
    color: var(--text);
    padding: 1rem 1.25rem;
}

html.dark .list-group-item {
    background-color: var(--background-alt);
}

/* Processing steps */
.processing-steps .badge {
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Text diff highlights with brand colors */
.removed {
    background-color: #ffcccc;
    color: #b30000;
    display: inline;
    padding: 1px 3px;
    border-radius: 3px;
}

.added {
    background-color: rgba(79, 127, 17, 0.15);
    color: #4F7F11;
    padding: 2px 0;
    font-weight: 500;
}

/* Updated footer */
footer {
    background-color: var(--background-alt);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

html.dark footer {
    background-color: var(--background);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

html.dark footer p.text-muted,
html.dark footer a.text-muted {
    color: var(--text-light) !important;
}

html.dark .card .text-muted {
    color: var(--text-light) !important;
    border-bottom: none !important;
}

/* Theme toggle button with brand colors */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
    padding: 0;
}

.theme-toggle:hover {
    background-color: rgba(3, 78, 145, 0.1);
}

html.dark .theme-toggle:hover {
    background-color: rgba(94, 160, 219, 0.2);
}

.sun-icon, .moon-icon {
    width: 20px;
    height: 20px;
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

html.dark .sun-icon {
    display: none;
}

html.dark .moon-icon {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .zoom-controls {
        flex-wrap: wrap;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Mobile adjustments for pricing cards */
    #pricing .row > div {
        margin-bottom: 1.5rem;
    }
    
    #pricing .row > div:last-child {
        margin-bottom: 0;
    }
    
    #pricing .card {
        height: 100%;
    }
}

/* Dark mode text colors */
html.dark .card-title {
    color: var(--text) !important;
    border-bottom: none !important;
}

html.dark .card .text-muted,
html.dark .text-muted {
    color: var(--text-light) !important;
    border-bottom: none !important;
}

html.dark .display-5,
html.dark h1, html.dark h2, html.dark h3, 
html.dark h4, html.dark h5, html.dark h6 {
    color: var(--text);
}

/* PDF comparison UI elements with brand colors */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.page-button {
    background-color: var(--background);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.page-button:hover:not(:disabled) {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    font-weight: 500;
    padding: 0.5rem 1rem;
    background-color: var(--background-alt);
    border-radius: 0.5rem;
    color: var(--text);
}

/* Updated step number styling */
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(3, 78, 145, 0.3);
    border-bottom: none !important;
}

/* Special card styling */
.card.border-primary {
    border-color: var(--primary) !important;
    border-width: 2px;
    border-bottom: none !important;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
    font-weight: 500;
}

/* Dark mode specific adjustments */
html.dark {
    --primary: #5EA0DB;
    --primary-dark: #4a88c0;
    --secondary: #6DAD1A;
    --secondary-dark: #4d7912;
    --success: #6DAD1A;
    --accent-blue: #5EA0DB;
    --accent-green: #6DAD1A;
    --danger: #f87171;
    --warning: #fbbf24;
    --text: #f9fafb;
    --text-light: #e5e7eb;
    --background: #111827;
    --background-alt: #1f2937;
    --border: #374151;
}

html.dark #analysis-summary {
    background-color: var(--background-alt);
    border-color: var(--border);
}

html.dark .bg-light {
    background-color: var(--background-alt) !important;
}

html.dark .card {
    background-color: var(--background-alt);
    border-bottom: none !important;
}

html.dark .card-header {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-bottom: none !important;
}

html.dark .card-body {
    background-color: var(--background-alt);
    border-bottom: none !important;
}

html.dark .removed {
    background-color: rgba(255, 68, 68, 0.15);
    color: #ff6666;
}

html.dark .added {
    background-color: rgba(109, 173, 26, 0.2);
    color: #a3e635;
}

html.dark .text-muted,
html.dark .card .text-muted {
    color: var(--text-light) !important;
    border-bottom: none !important;
}

html.dark .page-button {
    background-color: var(--background);
    border-color: var(--border);
    color: var(--text);
}

html.dark .page-button:hover:not(:disabled) {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--background);
}

html.dark .page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

html.dark .border {
    border-color: var(--border) !important;
}

html.dark .bg-danger.bg-opacity-10 {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

html.dark .bg-success.bg-opacity-10 {
    background-color: rgba(109, 173, 26, 0.2) !important;
}

html.dark .text-danger {
    color: #f87171 !important;
}

html.dark .text-success {
    color: #a3e635 !important;
}

/* Severity indicators for PDF comparison */
html.dark #severity-text,
html.dark .severity-indicator {
    color: var(--text) !important;
}

/* Progress bar styles with brand colors */
.progress-bar {
    background-color: var(--primary);
}

.progress-bar.bg-success {
    background-color: var(--secondary) !important;
}

.progress-bar.bg-danger {
    background-color: var(--danger) !important;
}

.progress-bar.bg-warning {
    background-color: var(--warning) !important;
}

/* Zoom controls */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Input specific styling */
input[type="number"] {
    font-family: 'Designer Regular', sans-serif;
}

/* Form element focus states */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(3, 78, 145, 0.25);
}

html.dark .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(94, 160, 219, 0.25);
}

.form-control,
.btn {
    font-family: 'Designer Regular', sans-serif;
}

/* Dark mode fixes for PDF text comparison */
html.dark #text-a-content, 
html.dark #text-b-content {
    background-color: #2d3748 !important;
    color: #f9fafb !important;
}

/* Dark mode fixes for pricing plans */
html.dark .card-title,
html.dark .display-5,
html.dark .list-unstyled li,
html.dark .card-body {
    color: var(--text) !important;
    border-bottom: none !important;
}

/* Make 'Popular' tag more visible */
.badge.bg-primary.px-3.py-2 {
    font-size: 1rem;
    padding: 0.35rem 0.75rem !important;
    margin-top: -0.75rem !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white !important;
    z-index: 10;
}

/* Fix card header text color in white theme */
.card-header.bg-primary.text-white {
    color: white !important;
    border-bottom: none !important;

}

/* Ensure all text in dark mode is visible */
html.dark .text-muted {
    color: #d1d5db !important;
    opacity: 0.9;
}

/* PDF text content styling */
.pdf-text-content {
    background-color: var(--background-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    white-space: pre-wrap;
}

html.dark .pdf-text-content {
    background-color: #2d3748 !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Section spacing */
.row[id] {
    scroll-margin-top: 80px; /* For smooth scrolling */
    margin-top: 4rem;
    padding-top: 2rem;
}

/* Fix card header text color in white theme */
.card-header.bg-primary h4.text-white,
.card-header.bg-primary h5.text-white {
    color: white !important;
    border-bottom: none !important;
}

/* Top Popular banner styling */
.card-popular-top {
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    box-shadow: none !important;
    text-shadow: none;
}

html.dark .card-popular-top {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) inset;
    border-bottom: none !important;
}

/* Popular circular badge styling */
.popular-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 15px 10px;
    text-align: center;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

html.dark .popular-badge {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-color: var(--background-alt);
}

/* Popular corner ribbon styling */
.popular-ribbon-corner {
    position: absolute;
    top: 20px;
    right: -45px;
    width: 170px;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 0;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: center;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

html.dark .popular-ribbon-corner {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

/* Original Popular ribbon styling */
.popular-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    border-bottom: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    transform-origin: top right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html.dark .popular-ribbon {
    background-color: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Remove old badge styles since we're using the ribbon now */
.badge.bg-primary.px-3.py-2.rounded-pill {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 1rem !important;
    margin-top: -1rem !important;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 12px rgba(3, 78, 145, 0.25);
    z-index: 10;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

html.dark .badge.bg-primary.px-3.py-2.rounded-pill {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Sponsor section styling */
.sponsor-section {
    margin-top: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sponsor-image {
    border-radius: 0;
    transition: transform 0.3s ease;
    max-width: 100%;
    box-shadow: none;
    border: none !important;
}

.sponsor-image:hover {
    transform: scale(1.05);
}

html.dark .sponsor-image {
    box-shadow: none;
}

/* Sponsor image in navbar */
.sponsor-image-nav {
    border-radius: 6px;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.sponsor-image-nav:hover {
    transform: scale(1.05);
}

/* Footer alignment fixes */
footer .row {
    text-align: center;
}

footer .col-md-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

footer .navbar-brand {
    display: inline-flex;
    justify-content: center;
    margin-right: 0;
}

@media (min-width: 768px) {
    footer .navbar-brand {
        justify-content: flex-start;
    }
}

/* Contact Section Styles */
.contact-links a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.contact-links a:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

html.dark .contact-links a {
    color: var(--primary);
}

html.dark .contact-links a:hover {
    color: var(--accent-blue);
}

textarea.form-control {
    resize: none;
    min-height: 120px;
}

/* Add box shadow to form on focus */
.card form input:focus,
.card form textarea:focus {
    box-shadow: 0 0 0 0.25rem rgba(3, 78, 145, 0.25);
    border-color: var(--primary);
    border-bottom: none !important;
}

html.dark .card form input:focus,
html.dark .card form textarea:focus {
    box-shadow: 0 0 0 0.25rem rgba(94, 160, 219, 0.25);
    border-color: var(--primary);
    border-bottom: none !important;
}

/* Scroll to top button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.5rem;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    background-color: var(--primary-dark);
}

html.dark .scroll-to-top-btn {
    background-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

html.dark .scroll-to-top-btn:hover {
    background-color: var(--accent-blue);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Star Rating System */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 1.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ddd;
    cursor: pointer;
    padding: 0 0.15em;
    transition: color 0.2s ease-in-out;
}

.star-rating label:hover,
.star-rating input:checked ~ label {
    color: var(--primary);
}

.star-rating label:hover ~ label {
    color: var(--primary);
}

html.dark .star-rating label {
    color: #4b5563;
}

html.dark .star-rating label:hover,
html.dark .star-rating label:hover ~ label,
html.dark .star-rating input:checked ~ label {
    color: var(--primary);
}

/* Improve file input styling */
input[type="file"] {
    padding: 0.5rem;
    line-height: 1.5;
}

input[type="file"]::-webkit-file-upload-button {
    color: white;
    background-color: var(--primary);
    border: none;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    margin-right: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--primary-dark);
}

html.dark input[type="file"]::-webkit-file-upload-button {
    background-color: var(--primary);
}

html.dark input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--accent-blue);
}
