/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

.admin-container, .login-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container {
    max-width: 500px;
    margin: 100px auto;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #333;
}

.message {
    padding: 10px;
    margin-bottom: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.error-message {
    padding: 10px;
    margin-bottom: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Tables */
.tours-table, .admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tours-table th, .tours-table td,
.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tours-table th, .admin-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.tours-table tr:hover, .admin-table tr:hover {
    background-color: #f5f5f5;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.btn:hover {
    opacity: 0.9;
}

.new-btn {
    background: #2dbbe7;
}

.edit-btn {
    background: #28a745;
}

.delete-btn {
    background: #dc3545;
}

.submit-btn {
    background: #007bff;
    padding: 12px 24px;
}

.cancel-btn {
    background: #6c757d;
}

.login-btn {
    background: #007bff;
    width: 100%;
    padding: 12px;
}

.logout-btn {
    background: #dc3545;
}

.form-actions {
    margin-top: 30px;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 20px;
}

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

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #3498db;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1rem;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-card:hover {
    transform: translateY(-5px);
    background-color: #3498db;
}

.action-card:hover .action-icon,
.action-card:hover .action-title {
    color: #fff;
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #3498db;
    transition: color 0.3s ease;
}

.action-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.recent-updates {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.recent-updates h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}

.update-list {
    list-style: none;
    padding: 0;
}

.update-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.update-title {
    font-weight: bold;
    color: #2c3e50;
}

.update-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.welcome-message {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.welcome-message h2 {
    margin-top: 0;
    color: #2c3e50;
}

.welcome-message p {
    margin-bottom: 0;
    color: #7f8c8d;
}

/* Fixed sections layout */
.fixed-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.section-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
}

.section-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.section-id {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

.status-configured {
    color: #27ae60;
    font-weight: bold;
}

.status-not-configured {
    color: #e74c3c;
    font-weight: bold;
}

.section-card .edit-btn {
    width: 100%;
    text-align: center;
}

/* Language Switcher for Admin */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

.language-switcher a {
    display: inline-block;
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.language-switcher a:hover {
    opacity: 0.9;
}

.language-switcher a.active {
    background-color: #007bff;
}

/* Language filter in admin forms */
.language-filter {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.language-filter form {
    display: flex;
    align-items: center;
}

.language-filter label {
    margin-right: 15px;
    font-weight: bold;
    color: #333;
}

.language-filter select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: white;
    font-size: 16px;
    min-width: 150px;
    cursor: pointer;
}

.language-filter select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fixed-sections {
        grid-template-columns: 1fr;
    }
    
    .admin-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .stats-grid, .admin-actions {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        padding: 15px;
    }
    
    .stat-card, .action-card, .recent-updates {
        padding: 15px;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 15px;
        justify-content: flex-start;
    }
    
    .language-filter form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .language-filter label {
        margin-bottom: 8px;
    }
    
    .language-filter select {
        width: 100%;
    }
}

.image-preview {
    max-width: 200px;
    max-height: 150px;
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 5px;
    display: block;
}
.image-upload-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.current-image {
    margin-bottom: 10px;
}
.file-input-container {
    margin-top: 10px;
}