/* Main Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    line-height: 1.6;
}
.container { 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.card { 
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}
.btn { 
    background: linear-gradient(135deg, #4a90e2, #3498db);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}
.btn-success { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.btn-danger { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.btn-warning { background: linear-gradient(135deg, #f39c12, #e67e22); }
.btn-secondary { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.btn-info { background: linear-gradient(135deg, #3498db, #2980b9); }

/* Header */
.header { 
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.header h1 { font-size: 28px; margin-bottom: 8px; }

/* Progress Bar */
.progress-bar { 
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
}
.progress-fill { 
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #3498db);
    border-radius: 6px;
    width: 0%;
    transition: width 0.8s ease;
}

/* Translation Box */
.translation-box { 
    background: #f8fafc;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    border: 1px solid #e2e8f0;
}
.translation-box h3 { 
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Custom Translation Box */
.custom-translation-box {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
}

.custom-translation-box h3 {
    color: #e67e22;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-translation-box h3 span {
    background: #f39c12;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.char-counter {
    font-size: 14px;
    color: #7f8c8d;
    text-align: right;
    margin-top: 5px;
}

.char-counter.high {
    color: #27ae60;
}

.char-counter.low {
    color: #e74c3c;
}

/* Rating Controls */
.rating-row { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}
.rating-group { }
.rating-group label { 
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
    font-size: 15px;
}
select { 
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s;
}
select:focus { 
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Textarea */
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

textarea.saved {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Navigation */
.navigation { 
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

/* Status Messages */
.status-message { 
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: none;
    animation: slideIn 0.3s ease;
}
.status-success { 
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-error { 
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.status-warning { 
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .card { padding: 20px; }
    .rating-row { grid-template-columns: 1fr; gap: 15px; }
    .navigation { flex-direction: column; gap: 10px; }
    .navigation button { width: 100%; }
}

/* Admin specific */
.tab-container {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.tab {
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s;
}
.tab:hover { color: #4a90e2; background: #f8fafd; }
.tab.active { color: #3498db; border-bottom-color: #3498db; background: #f8fafd; }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }

.model-badge {
    display: inline-block;
    background: #e8f4fd;
    color: #2c3e50;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin: 2px;
}

/* Info boxes */
.info-box {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.info-box.tip {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    color: #2c3e50;
}

.info-box.warning {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    color: #856404;
}

/* Original text box */
.original-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

/* Guidelines Button - Fixed Position */
.guidelines-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.guidelines-button .btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.guidelines-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.4);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e2e8f0;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

table tr:hover {
    background: #f8fafd;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
