/* Apple-style main styling for HTML Translator */

/* Basic styling */
body {
    background-color: #ffffff;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    letter-spacing: -0.02em;
    font-weight: 400;
}

/* Typography - Apple style */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

p, .form-label, .form-text, .btn, .alert {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 980px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 0 15px 15px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
    margin-bottom: 20px;
}

.card {
    border-radius: 18px;
    border: none;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    color: #1d1d1f;
    border: 1px solid #e6e6e6;
}

.card-header {
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
    background-color: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    color: #1d1d1f;
    font-weight: 500;
}

/* File upload styling - Apple-style */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #d2d2d7;
    border-radius: 14px;
    text-align: center;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-upload-wrapper:hover {
    border-color: #0071e3;
    background-color: #f5f5f7;
    transform: translateY(-2px);
}

.file-upload-wrapper.drag-active {
    border-color: #0071e3;
    background-color: #f5f5f7;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.file-upload-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1d1d1f;
    font-size: 1.05rem;
}

.file-upload-message svg {
    margin-bottom: 1.25rem;
    color: #0071e3;
    transition: transform 0.2s ease;
}

.file-upload-wrapper:hover .file-upload-message svg {
    transform: translateY(-5px);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Preview styling */
.code-preview {
    background-color: #282c34;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.code-preview pre {
    margin: 0;
}

.code-preview code {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* Translation progress */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #f5f5f7;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    background-color: #0071e3;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Alerts with icons */
.alert {
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-info {
    background-color: #f5f9fc;
    color: #0071e3;
    border-left: 4px solid #0071e3;
}

.alert-success {
    background-color: #f2f9f5;
    color: #34c759;
    border-left: 4px solid #34c759;
}

.alert-warning {
    background-color: #fef8f2;
    color: #ff9500;
    border-left: 4px solid #ff9500;
}

.alert-danger {
    background-color: #fef2f2;
    color: #ff3b30;
    border-left: 4px solid #ff3b30;
}

.alert svg {
    margin-right: 10px;
    flex-shrink: 0;
}

/* Улучшение отображения для оценки качества */
.quality-evaluation-card {
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quality-score-bar {
    height: 8px;
    background-color: #f5f5f7;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.quality-score-value {
    height: 100%;
    background-color: #0071e3;
    border-radius: 4px;
}

/* Buttons - Apple-style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 980px; /* Apple-style rounded buttons */
    font-weight: 400;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #0071e3;
    color: white;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.0625rem;
}

.btn svg {
    margin-right: 6px;
    transition: transform 0.15s ease;
}

.btn:hover svg {
    transform: translateX(2px);
}

/* Feature list styling */
ul, ol {
    padding-left: 1.2rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
}

/* Additional responsive adjustments */
@media (max-width: 576px) {
    .file-upload-wrapper {
        padding: 1rem;
    }
    
    .code-preview {
        max-height: 300px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Language item styling for improved visibility */
.language-item {
    color: #1d1d1f !important;
}

.language-results {
    background-color: #ffffff !important;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
}

/* Контейнер для кнопки скачивания */
.download-button-container {
    margin: 1.5rem 0;
    text-align: center;
}

.btn-success {
    background-color: #34c759;
    color: white;
}

.btn-success:hover, .btn-success:focus {
    background-color: #30b955;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
    background-color: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    color: #1d1d1f;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    outline: none;
}

/* Dark mode support removed - Using light theme Apple-style only */
