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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login page styles */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.login-box h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 14px;
}

.google-login-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302);
}

.google-login-button:hover {
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.302), 0 4px 8px 3px rgba(60, 64, 67, 0.149);
    background-color: #f8f9fa;
}

.info-text {
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

/* Home page styles */
.home-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-email {
    color: #6b7280;
    font-size: 14px;
}

.logout-button {
    background: #ef4444;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.logout-button:hover {
    background: #dc2626;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.hello-world-box {
    background: white;
    padding: 60px 80px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    max-width: 600px;
}

.hello-world-box h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

.hello-world-box p {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 8px;
}

.info-message {
    font-size: 16px !important;
    color: #059669 !important;
    margin-top: 24px !important;
}

/* Access denied page styles */
.access-denied-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.access-denied-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.access-denied-box h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #dc2626;
}

.error-icon {
    margin-bottom: 24px;
}

.error-message {
    font-size: 16px;
    color: #111827;
    margin-bottom: 16px;
    font-weight: 500;
}

.action-buttons {
    margin-top: 32px;
}

.back-button {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background: #2563eb;
}

/* Translations page styles */
.translations-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.translations-container .main-content {
    flex: 1;
    display: block;
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Upload section */
.upload-section {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.upload-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111827;
}

#upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-input-wrapper {
    flex: 1;
    position: relative;
}

#file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: block;
    padding: 12px 20px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#file-input:hover + .file-label {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.file-name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

/* Model selection styles */
.model-selection {
    margin-top: 24px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.model-selection h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

.model-select {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.model-select:hover {
    border-color: #d1d5db;
}

.model-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Language selection styles */
.language-selection {
    margin-top: 24px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.language-selection h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

.language-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.language-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.language-checkbox:hover {
    background-color: #f3f4f6;
}

.language-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #8e44ad;
}

.checkbox-label {
    font-size: 14px;
    color: #374151;
    user-select: none;
}

.upload-button {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upload-button:hover {
    background: #2563eb;
}

.upload-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Translations list */
.translations-list {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.translations-list h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111827;
}

.translations-table {
    width: 100%;
    border-collapse: collapse;
}

.translations-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.translations-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.translations-table tr:last-child td {
    border-bottom: none;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.error-message {
    margin-left: 8px;
    cursor: help;
}

.cost-cell {
    font-weight: 500;
    color: #059669;
}

/* Actions cell styling */
.actions-cell {
    white-space: nowrap;
}

.actions-cell .action-link,
.translation-downloads .action-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    margin: 2px 4px;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    transition: all 0.2s ease;
}

.action-link:hover {
    background: #3b82f6;
    color: white;
    text-decoration: none;
}

.translation-downloads {
    display: inline-block;
    vertical-align: middle;
}

.no-translations {
    text-align: center;
    color: #6b7280;
    padding: 40px 0;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.page-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.page-link:hover {
    background: #eff6ff;
}

.page-info {
    color: #6b7280;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 640px) {
    .login-box, .access-denied-box {
        padding: 24px;
    }
    
    .hello-world-box {
        padding: 40px 24px;
    }
    
    .hello-world-box h2 {
        font-size: 36px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    #upload-form {
        flex-direction: column;
    }
    
    .upload-button {
        width: 100%;
    }
    
    .translations-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .upload-section, .translations-list {
        padding: 20px;
    }
}

/* Navigation styles */
.navigation {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-tab {
    display: inline-block;
    padding: 12px 16px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.nav-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Update container for navigation */
.translations-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Retry Modal and Error Display Styles */
.error-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.error-icon {
    color: #ef4444;
    font-size: 16px;
}

.retry-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.retry-btn:hover {
    background: #2563eb;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.close {
    color: #6b7280;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #374151;
}

.modal-body {
    padding: 0 24px 24px 24px;
}

.error-info {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.user-error-message {
    color: #dc2626;
    font-weight: 500;
    margin-bottom: 12px;
}

.technical-error-details {
    margin-top: 12px;
}

.technical-error-details summary {
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
}

.technical-error-content {
    margin-top: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px;
    font-size: 12px;
    color: #374151;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.retry-options {
    margin-bottom: 24px;
}

.retry-options label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
}

.retry-options select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
    padding-top: 16px;
}

.btn-retry {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-retry:hover {
    background: #059669;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

/* Webflow Interface Specific Styles */
.webflow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Message Styles */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    display: none;
}

.message-info {
    background: #e0f2fe;
    color: #0277bd;
    border: 1px solid #b3e5fc;
}

.message-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

.message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Loading and Status Styles */
.loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-style: italic;
}

.no-items {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 4px;
    border: 1px solid #fca5a5;
}

/* Progress Indicators */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: #374151;
}

.status-message {
    margin-top: 12px;
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    color: #166534;
    text-align: center;
}

/* Enhanced Action Links */
.action-link {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.action-link:hover {
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
}

.translation-downloads {
    margin-left: 8px;
}

.translation-downloads .action-link {
    background: #dbeafe;
    color: #1e40af;
}

.translation-downloads .action-link:hover {
    background: #bfdbfe;
    color: #1d4ed8;
}

/* Status badges */
.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scrollable-checkbox-list {
        max-height: 200px;
    }
    
    .language-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .translations-table {
        font-size: 12px;
    }
    
    .translations-table th,
    .translations-table td {
        padding: 8px 4px;
    }
    
    /* Hide some columns on mobile */
    .translations-table .cost-cell,
    .translations-table th:nth-child(7) {
        display: none;
    }
}

/* Field Selection Styles */
.field-selection-container {
    margin-top: 12px;
}

.field-selection-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.field-action-btn {
    padding: 6px 12px;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.field-action-btn:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.field-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color: white;
    transition: border-color 0.2s;
}

.field-item:hover {
    border-color: #d1d5db;
}

.field-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #8e44ad;
}

.field-info {
    flex: 1;
}

.field-name {
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.field-type {
    display: inline-block;
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 8px;
}

.field-type.rich-text {
    background-color: #fef3c7;
    color: #92400e;
}

.field-required {
    display: inline-block;
    background-color: #fee2e2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.field-preview {
    margin-top: 8px;
    padding: 8px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    color: #6b7280;
    max-height: 60px;
    overflow: hidden;
    line-height: 1.4;
}

.field-selection-summary {
    margin-top: 16px;
    padding: 12px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 14px;
    color: #0369a1;
}

@media (max-width: 768px) {
    .field-selection-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .field-action-btn {
        text-align: center;
    }
    
    .field-item {
        padding: 8px;
    }
    
    .field-preview {
        font-size: 12px;
        max-height: 40px;
    }
}

/* Webflow Sites Display */
.success-message {
    background-color: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.success-message h2 {
    color: #0c4a6e;
    margin-bottom: 12px;
}

.sites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.site-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.site-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.site-card h3 {
    color: #111827;
    margin-bottom: 8px;
    font-size: 18px;
}

.site-card p {
    color: #6b7280;
    margin-bottom: 8px;
    font-size: 14px;
}

.domain {
    display: inline-block;
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 4px;
}

.btn-primary {
    background-color: #8e44ad;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 12px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #7d3c98;
}

.btn-small {
    background-color: #6b7280;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.btn-small:hover {
    background-color: #4b5563;
}

.content-summary {
    margin-top: 12px;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

.site-content-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.content-type-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.content-tab {
    padding: 8px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.content-tab.active {
    background: #8e44ad;
    color: white;
    border-color: #8e44ad;
}

.content-tab:hover {
    background: #f3f4f6;
}

.content-tab.active:hover {
    background: #7d3c98;
}

.content-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.content-item {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.content-item:hover {
    background-color: #f9fafb;
}

.content-item-info {
    flex: 1;
}

.content-item-title {
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.content-item-meta {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .sites-list {
        grid-template-columns: 1fr;
    }
    
    .content-type-tabs {
        flex-wrap: wrap;
    }
    
    .content-tab {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Translation Configuration Panel */
.translation-config-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.config-section {
    margin-bottom: 20px;
}

.config-section label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.config-section .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.selection-summary {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#selection-count {
    font-weight: 500;
    color: #0c4a6e;
}

/* Enhanced content items with selection */
.content-item-selectable {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color: white;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.content-item-selectable:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-item-selectable.selected {
    border-color: #8e44ad;
    background-color: #f8f4fd;
}

.content-item-checkbox {
    margin-top: 2px;
}

.content-item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8e44ad;
}

.content-meta-enhanced {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.content-badge {
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.content-badge.fields {
    background-color: #ecfdf5;
    color: #059669;
}

.content-badge.pages {
    background-color: #fef3c7;
    color: #d97706;
}

/* Bulk selection controls */
.bulk-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 6px;
    flex-wrap: wrap;
}

.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.bulk-select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8e44ad;
}

.bulk-action-btn {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.bulk-action-btn:hover {
    background-color: #e5e7eb;
}

/* Field selection in content items */
.field-list-preview {
    margin-top: 8px;
    padding: 8px;
    background-color: #f9fafb;
    border-radius: 4px;
    max-height: 100px;
    overflow-y: auto;
}

.field-item-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 12px;
}

.field-item-mini:last-child {
    margin-bottom: 0;
}

.field-item-mini input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #8e44ad;
}

.field-name-mini {
    color: #374151;
    font-weight: 500;
}

.field-preview-mini {
    color: #6b7280;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

@media (max-width: 768px) {
    .translation-config-panel {
        padding: 16px;
    }
    
    .summary-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .bulk-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .content-item-selectable {
        flex-direction: column;
        gap: 8px;
    }
}

/* Collection field display */
.collection-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
}

.content-item-header {
    margin-bottom: 12px;
}

.collection-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.collection-fields {
    margin-top: 12px;
    padding: 12px;
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
}

.fields-header {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.fields-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.field-name {
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.field-type {
    padding: 2px 8px;
    background-color: #ddd6fe;
    color: #6b21a8;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.field-required {
    padding: 2px 6px;
    background-color: #fee2e2;
    color: #dc2626;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.no-fields {
    color: #6b7280;
    font-style: italic;
    padding: 12px;
    text-align: center;
}

/* Collection Item Fields Dropdown */
.item-fields-dropdown {
    margin-top: 12px;
    padding: 16px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.fields-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fields-dropdown-header {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.fields-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.field-item-selection {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.field-item-selection:hover {
    background-color: #f3f4f6;
}

.field-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
}

.field-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #8e44ad;
    cursor: pointer;
}

.field-checkbox-label .field-name {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.field-type-badge {
    padding: 3px 10px;
    background-color: #ede9fe;
    color: #7c3aed;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Scrollbar styling for fields list */
.fields-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.fields-dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.fields-dropdown-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.fields-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cache Controls */
.cache-controls {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cache-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cache-info {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cache-updating {
    font-size: 14px;
    color: #007bff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 1.5s infinite;
}

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

#refresh-cache-btn {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #007bff;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#refresh-cache-btn:hover:not(:disabled) {
    background: #0056b3;
    border-color: #0056b3;
}

#refresh-cache-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#cache-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
