/* Clean, Simple CSS - Identical to Original but Maintainable */

/* Reset and Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #232323;
    background-color: #ECEAEA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #232323;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #333333;
}

a {
    color: #38B6FF;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #2A9CE6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #333333;
    font-weight: 500;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-link {
    display: inline-block;
    padding: 0;
    border-radius: 8px;
    transition: all 0.15s ease;
    opacity: 0.6;
    width: 48px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lang-link:hover {
    opacity: 0.8;
    background-color: #F5F5F5;
}

.lang-link.active {
    opacity: 1;
    background-color: #E3F2FD;
    border: 1px solid #38B6FF;
}

.flag-icon {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    display: block;
    object-fit: cover;
}

/* Hero Section */
.hero {
    background-color: #ECEAEA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5.5rem 1rem 5.5rem 1rem;
    margin: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #232323;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    max-width: 1000px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: #555555;
    margin: 1.5rem 0 0 0;
    padding: 0;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 0;
}

.section-white {
    background-color: #ECEAEA;
    padding: 0 0 1rem 0;
}

.section-gray {
    background-color: #ECEAEA;
    padding: 2.5rem 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #333333;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    margin: 0 0 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.search-grid {
    display: grid;
    grid-template-columns: 32% 68%;
    gap: 2.5rem;
    align-items: start;
}

/* Search Filters */
.search-filters {
    padding: 0;
    width: 100%;
}

.pricing-options {
    margin-bottom: 1rem;
}

.pricing-option {
    position: relative;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #FFE100;
    border: none;
    border-radius: 0.5rem;
    width: 100%;
    cursor: pointer;
}

.pricing-option.selected {
    background: #FFE100;
    border: none;
}

.pricing-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: #232323;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-description {
    font-size: 1rem;
    font-weight: 600;
    color: #232323;
    margin-bottom: 0.25rem;
}

.pricing-detail {
    font-size: 0.875rem;
    color: #232323;
    line-height: 1.75;
}

.pricing-note-text {
    font-size: 0.875rem;
    color: #333333;
    line-height: 1.5;
    margin-top: 0.75rem;
    text-align: left;
}

/* Search Inputs */
.search-inputs {
    padding: 0 2rem 2rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-buttons .btn-primary {
    flex: 2;
}

.form-buttons .btn-secondary {
    flex: 1;
    font-size: 1.125rem;
    padding: 1rem 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #232323;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.form-label-link {
    font-weight: 600;
    font-size: 1rem;
    color: #38B6FF;
    text-decoration: underline;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.form-label-link:hover {
    color: #2A9CE6;
    text-decoration: underline;
}

.form-example {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
    margin-top: 0.25rem;
    font-style: italic;
}

.form-control {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #232323;
    background-color: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-control:focus {
    outline: none;
    border-color: #38B6FF;
    box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.1);
    background-color: #f8f9fa;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2338B6FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 3rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: #38B6FF;
    border-color: #38B6FF;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #232323;
    border-color: #232323;
}

.btn-secondary {
    background-color: #ECEAEA;
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-secondary:hover {
    background-color: #e0dddd;
    border-color: #adb5bd;
    color: #495057;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Results Summary */
.results-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.data-highlight {
    background-color: #FFE100;
    color: #232323;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 700;
    margin: 0.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-highlight .number {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.data-highlight .label {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #6c757d;
    background-color: #ECEAEA;
}

.card-header-flex h3 {
    color: #38B6FF;
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    align-items: center;
}

.filter-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: #333333;
    font-size: 0.875rem;
}

.filter-value {
    background-color: #38B6FF;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Sorting Controls */
.sorting-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    table-layout: fixed; /* Fixed column widths */
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px; /* Smaller font for better fit */
}

/* Allow long content columns to wrap */
.table th:nth-child(3), .table td:nth-child(3),  /* Company Name */
.table th:nth-child(5), .table td:nth-child(5),  /* Website */
.table th:nth-child(6), .table td:nth-child(6) { /* Address */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.table th {
    font-weight: 600;
    color: #333333;
    background-color: #ECEAEA;
}

/* Fixed column widths - optimized for content */
.table th:nth-child(1), .table td:nth-child(1) { width: 5%; }   /* # (1-3 digits: 1-999) */
.table th:nth-child(2), .table td:nth-child(2) { width: 12%; }  /* Business ID (9 chars) */
.table th:nth-child(3), .table td:nth-child(3) { width: 28%; }  /* Company Name (variable, allow wrapping) */
.table th:nth-child(4), .table td:nth-child(4) { width: 8%; }   /* Founded (4 chars: 2023) */
.table th:nth-child(5), .table td:nth-child(5) { width: 22%; }  /* Website (variable, allow wrapping) */
.table th:nth-child(6), .table td:nth-child(6) { width: 25%; }  /* Address (allow wrapping) */

/* Admin columns - only visible when user is admin */
.table th:nth-child(7), .table td:nth-child(7) { width: 10%; }  /* Revenue (€) */
.table th:nth-child(8), .table td:nth-child(8) { width: 8%; }   /* Actions */

/* When admin columns are present, adjust other column widths */
.table.admin-mode th:nth-child(1), .table.admin-mode td:nth-child(1) { width: 4%; }
.table.admin-mode th:nth-child(2), .table.admin-mode td:nth-child(2) { width: 10%; }
.table.admin-mode th:nth-child(3), .table.admin-mode td:nth-child(3) { width: 24%; }
.table.admin-mode th:nth-child(4), .table.admin-mode td:nth-child(4) { width: 7%; }
.table.admin-mode th:nth-child(5), .table.admin-mode td:nth-child(5) { width: 18%; }
.table.admin-mode th:nth-child(6), .table.admin-mode td:nth-child(6) { width: 19%; }

/* Admin columns styling */
.table th.admin-only, .table td.admin-only {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table td.admin-only {
    font-weight: normal;
}

/* Payment Section */
.payment-section {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: center;
}

.payment-info h4 {
    color: #38B6FF;
    margin-bottom: 0.5rem;
}

.payment-info p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.payment-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


/* DIY Grid */
.diy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 0;
}

/* DIY Section Spacing */
.section-white:has(.diy-grid) {
    padding-top: 4rem;
}

.diy-card {
    background-color: #FFE100;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: default;
}

.diy-step {
    width: 48px;
    height: 48px;
    background-color: #232323;
    color: #FFE100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

.diy-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 0.75rem;
}

.diy-description {
    font-size: 0.875rem;
    color: #232323;
    line-height: 1.75;
}

.diy-encouragement {
    padding: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    background: transparent;
    border-radius: 0.5rem;
    border-left: none;
}

.diy-encouragement p {
    margin: 0;
    font-size: 1rem;
    color: #333333;
    line-height: 1.75;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    cursor: default;
    position: relative;
}

.service-popular {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(56, 182, 255, 0.15);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFE100;
    color: #232323;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #38B6FF;
    margin-bottom: 0.5rem;
}

.service-subtitle {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 1.5rem 0;
    text-align: left;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #333333;
}

.service-feature::before {
    content: "•";
    color: #FFE100;
    font-weight: 700;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.service-note {
    font-size: 0.875rem;
    color: #6B6B6B;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto 3rem auto;
}

.about-content {
    margin-left: 4rem;
}

.about-content h3 {
    color: #38B6FF;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.about-photo {
    margin-bottom: 1.5rem;
    text-align: left;
}

.founder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #38B6FF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-experience {
    margin-bottom: 1.5rem;
}

.about-experience h3 {
    color: #38B6FF;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.experience-category {
    margin-bottom: 1.5rem;
}

.category-title {
    color: #232323;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #333333;
    position: relative;
    padding-left: 1rem;
}

.experience-list li::before {
    content: "•";
    color: #38B6FF;
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 0;
}

.case-card {
    background-color: #70CBFF;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: default;
}

.case-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 0.75rem;
}

.case-description {
    font-size: 1rem;
    color: #333333;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.case-section {
    margin-bottom: 1.5rem;
}

.case-section:last-child {
    margin-bottom: 1.5rem;
}

.case-section strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 0.5rem;
}

.case-actions {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.case-actions li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #333333;
    position: relative;
    padding-left: 1rem;
}

.case-actions li::before {
    content: "•";
    color: #FFE100;
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Brand Section */
.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-brand:hover {
    opacity: 0.8;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #6B6B6B;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* Links Section */
.footer-links-section {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333333;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    font-size: 0.875rem;
    color: #6B6B6B;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.footer-link:hover {
    color: #38B6FF;
}

/* Info Section */
.footer-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #6B6B6B;
    margin: 0;
}

.footer-data-source {
    font-size: 0.75rem;
    color: #8B8B8B;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

/* Privacy Policy and Terms of Service Styles */
.privacy-policy,
.terms-of-service {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.privacy-policy h1,
.terms-of-service h1 {
    font-size: 2.5rem;
    color: #38B6FF;
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-meta,
.terms-meta {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.privacy-meta p,
.terms-meta p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.privacy-meta p:last-child,
.terms-meta p:last-child {
    margin-bottom: 0;
}

.privacy-content h2,
.terms-content h2 {
    font-size: 1.5rem;
    color: #232323;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #38B6FF;
    padding-bottom: 0.5rem;
}

.privacy-content h2:first-of-type,
.terms-content h2:first-of-type {
    margin-top: 0;
}

.privacy-content p,
.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333333;
}

.privacy-content ul,
.terms-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #333333;
}

.privacy-content a,
.terms-content a {
    color: #38B6FF;
    text-decoration: none;
}

.privacy-content a:hover,
.terms-content a:hover {
    color: #2A9CE6;
    text-decoration: underline;
}

/* Admin Pages Styles */
.admin-login,
.admin-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.admin-login h1,
.admin-dashboard h1 {
    font-size: 2.5rem;
    color: #38B6FF;
    margin-bottom: 1rem;
    text-align: center;
}

.admin-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.login-form-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #38B6FF;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #232323;
    margin-bottom: 0.25rem;
}

.stat-period {
    font-size: 0.875rem;
    color: #6c757d;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.chart-container h3 {
    color: #232323;
    margin-bottom: 1rem;
    text-align: center;
}

.activity-section,
.errors-section {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.activity-section h3,
.errors-section h3 {
    color: #232323;
    margin-bottom: 1rem;
}

.activity-filters {
    margin-bottom: 1rem;
}

.activity-filters select {
    max-width: 200px;
}

.activity-list,
.error-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item,
.error-item {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-item:last-child,
.error-item:last-child {
    border-bottom: none;
}

.activity-type {
    background-color: #38B6FF;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.activity-details {
    flex: 1;
    margin: 0 1rem;
    font-size: 0.875rem;
    color: #333333;
}

.activity-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.error-message {
    flex: 1;
    font-size: 0.875rem;
    color: #721c24;
    margin-right: 1rem;
}

.error-details {
    font-size: 0.75rem;
    color: #6c757d;
}

.no-errors {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

/* Sync Section Styles */
.sync-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sync-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sync-status {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.status-value {
    font-size: 1rem;
    color: #232323;
    font-weight: 600;
}

.sync-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sync-progress {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: #38B6FF;
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-pulse 2s infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

.sync-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid;
}

.sync-result.success {
    background-color: #f0f9ff;
    border-color: #38B6FF;
    color: #1e40af;
}

.sync-result.error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.sync-result h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.sync-result p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.sync-result p:last-child {
    margin-bottom: 0;
}

/* Sync Process Log Styles */
.sync-process-log {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sync-process-log h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #1e293b;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.process-step {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.process-step.completed {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.process-step.failed {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.process-step.running {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.process-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.process-step.completed .process-step-icon {
    background-color: #10b981;
    color: white;
}

.process-step.failed .process-step-icon {
    background-color: #ef4444;
    color: white;
}

.process-step.running .process-step-icon {
    background-color: #3b82f6;
    color: white;
}

.process-step-content {
    flex: 1;
}

.process-step-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.process-step-details {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.process-step-timestamp {
    font-size: 0.75rem;
    color: #94a3b8;
}

.process-step-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    margin-left: 0.5rem;
}

/* Sync Process Overview Styles */
.sync-process-overview {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sync-process-overview h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #1e293b;
}

.process-overview-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.process-step.overview {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.process-step.overview .process-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Revenue Section Styles */
.revenue-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.revenue-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.revenue-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.revenue-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.revenue-progress {
    margin: 1rem 0;
}

.revenue-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid;
}

.revenue-result.success {
    background-color: #f0f9ff;
    border-color: #38B6FF;
    color: #1e40af;
}

.revenue-result.error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.revenue-result.info {
    background-color: #f8fafc;
    border-color: #64748b;
    color: #475569;
}

.revenue-result h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.revenue-result p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.revenue-result p:last-child {
    margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar-logo {
        height: 28px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .search-section {
        padding: 2rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .search-filters,
    .search-inputs {
        padding: 1.5rem;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        margin-left: 0 !important;
    }
    
    .founder-photo {
        width: 150px;
        height: 150px;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links-section {
        justify-content: center;
        gap: 2rem;
    }
    
    .footer-info-section {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 60vh;
    }
    
    .section {
        padding: 0;
    }
    
    .section-white {
        padding: 2rem 0;
    }
    
    .search-section {
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1.5rem 0;
    }
}

/* Newsletter Form Styles */
.newsletter-form-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.section-white:has(.newsletter-form-container) {
    padding-top: 4rem;
}

.newsletter-iframe-wrapper {
    border-radius: 0.75rem;
    overflow: hidden;
    display: block;
    background: white;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.newsletter-form-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (max-width: 768px) {
    .newsletter-form-container iframe {
        height: 350px;
    }
}