/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo {
    flex-shrink: 0;
}

.site-logo {
    max-height: 80px;
    max-width: 200px;
    border-radius: 8px;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-text {
    flex: 1;
    min-width: 250px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.info-box {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #0c5460;
}

.info-box small {
    font-size: 0.9rem;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

.language-selector label {
    font-weight: 500;
    margin: 0;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 0.85rem;
}

.language-selector select option {
    background: #667eea;
    color: white;
}

.language-selector select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.admin-header .language-selector {
    position: static;
    background: #f8f9fa;
    color: #333;
    margin-bottom: 15px;
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.admin-header .language-selector select {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.admin-header .language-selector select option {
    background: white;
    color: #333;
}

/* Form Styles */
.feedback-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Rating Styles */
.rating {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rating input[type="radio"] {
    display: none;
}

.rating label {
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.rating input[type="radio"]:checked + label {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

/* Button Styles */
.btn-submit,
.btn-filter,
.btn-update,
.btn-logout {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover,
.btn-filter:hover,
.btn-update:hover,
.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-filter {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-update {
    padding: 8px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-logout {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Login Form Styles */
.login-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 50px auto;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Admin Header Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-logo {
    flex-shrink: 0;
}

.admin-site-logo {
    max-height: 50px;
    max-width: 150px;
    border-radius: 6px;
    background: #f8f9fa;
    padding: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.stat-number.new {
    color: #ffc107;
}

.stat-number.read {
    color: #17a2b8;
}

.stat-number.responded {
    color: #28a745;
}

/* Filter Styles */
.filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    min-width: 150px;
}

/* Feedback List Styles */
.feedback-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.feedback-item {
    border-bottom: 1px solid #eee;
    padding: 20px;
}

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

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feedback-header h3 {
    color: #333;
    margin-bottom: 5px;
}

.feedback-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-new {
    background-color: #fff3cd;
    color: #856404;
}

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

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

.status-closed {
    background-color: #f8d7da;
    color: #721c24;
}

.category {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.rating {
    background-color: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.feedback-details p {
    margin-bottom: 10px;
    color: #666;
}

.feedback-message {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    margin-top: 10px;
}

.feedback-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.status-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-form select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #667eea;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #667eea;
    color: white;
}

.pagination a.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .site-logo {
        max-height: 60px;
        max-width: 150px;
    }
    
    .feedback-form {
        padding: 20px;
    }
    
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .feedback-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form select,
    .filter-form button {
        width: 100%;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-site-logo {
        max-height: 40px;
        max-width: 120px;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 10px;
    }
}
