:root {
    --primary-color: #f9a8d4;
    --secondary-color: #ec4899;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --sidebar-width: 250px;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f4f6f9;
}

/* Login Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8e1e4;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-box h1 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.login-box h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* Admin Dashboard Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h2 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #777;
    font-size: 0.9rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-nav li.active a, 
.sidebar-nav a:hover {
    background-color: #f9f2f4;
    color: var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
}

.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
}

.content-section {
    display: none;
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-section.active {
    display: block;
}

.content-section h1 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.content-section p {
    color: #777;
    margin-bottom: 25px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #d6306c;
}

.btn-save {
    background-color: var(--success-color);
    color: white;
}

.btn-save:hover {
    background-color: #218838;
}

.btn-add {
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 20px;
}

.btn-add:hover {
    background-color: #f691c9;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #777;
    transition: color 0.3s;
}

.edit-btn:hover {
    color: var(--warning-color);
}

.delete-btn:hover, .delete-img:hover {
    color: var(--danger-color);
}

/* Service Items */
.service-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item {
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
}

.service-header {
    padding: 15px;
    background: #f2f2f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.service-actions {
    display: flex;
    gap: 10px;
}

.service-content {
    padding: 15px;
    border-top: 1px solid #eee;
}

.service-item.collapsed .service-content {
    display: none;
}

/* Gallery Manager */
.gallery-uploader {
    margin-bottom: 30px;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    padding: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f9f2f4;
}

.upload-area i {
    font-size: 3rem;
    color: #aaa;
    margin-bottom: 15px;
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.img-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.img-container:hover .img-actions {
    opacity: 1;
}

.img-title {
    width: 100%;
    padding: 10px;
    border: none;
    border-top: 1px solid #eee;
}

/* Opening Hours */
.hours-editor {
    background: white;
    border-radius: 6px;
}

.day-hours {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.day-label {
    width: 120px;
    font-weight: 500;
}

.hours-inputs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-select {
    width: 120px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.hours-editor .btn-save {
    margin-top: 20px;
}

/* Mobile sidebar toggle button */
.sidebar-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: none;
}

/* Collapsed sidebar styles */
.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

.sidebar-collapsed .content {
    margin-left: 0;
    width: 100%;
}

/* Media queries for responsive behavior */
@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        width: 250px;
        transition: transform 0.3s ease;
    }
    
    .content {
        margin-left: 0;
        width: 100%;
        transition: margin-left 0.3s ease;
    }
    
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* When sidebar is visible on mobile */
    .admin-container:not(.sidebar-collapsed) .content {
        margin-left: 0;
    }
}