body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Loading overlay - neblokuje scrollování */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Kategorie */
.categories-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.category-item.parent {
    font-weight: bold;
}

.category-item.child {
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

.category-checkbox {
    margin-right: 0.75rem;
}

/* skrytí starého sidebaru v novém UI */
.sidebar { display: none; }

.sidebar-header h3 {
    color: #ffc107;
    margin-bottom: 30px;
    font-weight: bold;
}

.main-content { padding: 0 0 40px 0; }

/* nová obsahová typografie */
.content-body p { margin-bottom: 1rem; }
.content-body img { max-width: 100%; height: auto; }

.article-item {
    background: #495057;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.article-item:hover {
    background: #6c757d;
    border-left-color: #ffc107;
    transform: translateX(5px);
}

.article-item.selected {
    background: #007bff;
    border-left-color: #ffc107;
}

.article-url {
    font-size: 0.9em;
    color: #adb5bd;
    word-break: break-all;
}

.article-date {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 5px;
}

.welcome-screen {
    margin-top: 100px;
}

.steps {
    max-width: 500px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step i {
    color: #007bff;
    margin-right: 15px;
    width: 20px;
}

.article-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-title {
    color: #343a40;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.article-text {
    line-height: 1.6;
    color: #495057;
    margin-bottom: 30px;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-custom {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-translate {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-translate:hover {
    background: #218838;
    border-color: #1e7e34;
    color: white;
}

.btn-publish {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-publish:hover {
    background: #138496;
    border-color: #117a8b;
    color: white;
}

.alert-custom {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.translation-preview {
    background: #e7f3ff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.translation-preview h5 {
    color: #007bff;
    margin-bottom: 15px;
}

.original-content {
    opacity: 0.7;
    font-style: italic;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
}

.status-scraped {
    background: #d4edda;
    color: #155724;
}

.status-translated {
    background: #cce5ff;
    color: #004085;
}

.status-published {
    background: #d1ecf1;
    color: #0c5460;
}

.article-excerpt {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.article-excerpt h5 {
    color: #007bff;
    margin-bottom: 10px;
}

.title-variants {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.title-variants h5 {
    color: #856404;
    margin-bottom: 15px;
}

.variants-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.form-check {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.form-check:last-child {
    border-bottom: none;
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    line-height: 1.4;
    margin-left: 5px;
}

.form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 600;
}

.btn-success.btn-custom {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success.btn-custom:hover {
    background: #218838;
    border-color: #1e7e34;
    color: white;
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        position: relative;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-custom {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .variants-list {
        max-height: 200px;
    }
}