/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Admin Header */
.admin-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
}

.admin-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.admin-nav .nav-link:hover {
    background: #357abd;
}

/* Main Content */
.admin-main {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.package-management {
    padding: 30px;
}

.package-management h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Add Package Form */
.add-package-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.add-package-form h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}

.submit-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Current Packages */
.current-packages {
    padding: 30px;
}

.current-packages h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.packages-list {
    display: grid;
    gap: 20px;
}

.package-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: border-color 0.3s ease;
}

.package-item:hover {
    border-color: #4a90e2;
}

.package-image {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.package-info h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.package-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.package-price {
    color: #4a90e2;
    font-weight: 600;
    font-size: 1.1rem;
}

.package-actions {
    display: flex;
    gap: 10px;
}

.edit-btn,
.delete-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.edit-btn {
    background: #28a745;
    color: white;
}

.edit-btn:hover {
    background: #218838;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

/* Add styles for image selector */
.image-selector {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.image-selector h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.image-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
}

.image-item:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-item.selected {
    border-color: #25D366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
}

.image-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.image-name {
    padding: 8px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    word-break: break-word;
}

/* Message styles */
.message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Country section styles */
.country-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
}

.country-title {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 20px 24px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.country-packages {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.package-item {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 200px;
    width: 100%;
}

.package-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.package-content-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.package-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
}

.package-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-info h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.package-info p {
    margin: 6px 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.package-price {
    color: #4a90e2 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.package-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    justify-content: center;
    min-width: 120px;
}

.edit-btn, .delete-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.edit-btn {
    background: #4a90e2;
    color: white;
}

.edit-btn:hover {
    background: #357abd;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

/* Responsive design */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .admin-nav {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .country-packages {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .package-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .package-image {
        width: 100%;
        height: 250px;
    }
    
    .package-actions {
        flex-direction: row;
        justify-content: center;
        border-left: none;
        border-top: 1px solid #e9ecef;
        padding: 16px;
    }
    
    .edit-btn, .delete-btn {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 10px;
    }
    
    .package-management {
        padding: 20px;
    }
    
    .add-package-form {
        padding: 20px;
    }
} 