/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #c0936d;
    --accent-color: #e74c3c;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.nav-brand i {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-hero, .btn-submit {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #a07855;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-language {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-language:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-hero {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-hero:hover {
    background: #a07855;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(192, 147, 109, 0.4);
}

.btn-submit {
    background: var(--secondary-color);
    color: var(--white);
    width: 100%;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #a07855;
}

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="0.9em" font-size="90" opacity="0.05">✂</text></svg>');
    background-size: 100px;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card .price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.about-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Hours Section */
.hours {
    padding: 5rem 0;
    background: var(--white);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hours-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.hours-item .day {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hours-item .time {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
    background: #a07855;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Booking Page */
.booking-section {
    padding: 5rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.page-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
}

.booking-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-light);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Service Selection Cards */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-card-select {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card-select:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card-select.selected {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.service-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c9a043 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.service-card-select:hover .service-card-icon {
    transform: scale(1.05);
}

.service-card-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.service-card-select h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.service-card-select p {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.service-card-duration {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.service-card-duration i {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.service-card-price {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
}

.service-card-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.service-card-select.selected .service-card-check {
    opacity: 1;
    transform: scale(1);
}

.service-card-check i {
    color: var(--white);
    font-size: 0.75rem;
}

/* Responsive adjustments for service cards */
@media (max-width: 1024px) {
    .service-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .service-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* My Appointments Section */
.my-appointments {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.my-appointments h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lookup-group {
    display: flex;
    gap: 1rem;
}

.lookup-group input {
    flex: 1;
}

.btn-lookup {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-lookup:hover {
    background: #34495e;
}

.appointments-list {
    margin-top: 2rem;
}

.appointment-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.appointment-item.completed {
    border-left-color: var(--success);
    opacity: 0.7;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.appointment-header h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.pending {
    background: var(--warning);
    color: var(--white);
}

.status-badge.confirmed {
    background: var(--success);
    color: var(--white);
}

.status-badge.completed {
    background: var(--text-light);
    color: var(--white);
}

.appointment-details {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.appointment-details p {
    margin-bottom: 0.5rem;
}

.appointment-details i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.appointment-actions {
    display: flex;
    gap: 1rem;
}

.btn-reschedule, .btn-cancel {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-reschedule:hover {
    background: #a07855;
}

.btn-cancel {
    background: var(--danger);
    color: var(--white);
}

.btn-cancel:hover {
    background: #c0392b;
}

.btn-reschedule:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.modal-large {
    max-width: 700px;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-color);
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Reschedule Modal */
.reschedule-current-info {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.reschedule-current-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.reschedule-current-info p {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
    text-align: left;
}

.reschedule-picker {
    margin-bottom: 1.5rem;
}

.reschedule-picker h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.reschedule-selection {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.reschedule-selection p {
    margin: 0;
    text-align: left;
    color: var(--text-color);
}

.reschedule-selection span {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.modal-actions .btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.modal-actions .btn-secondary:hover {
    background: var(--text-color);
}

/* Gallery Section */
.gallery {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.gallery-filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.gallery-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item-info {
    padding: 1rem;
}

.gallery-item-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-item-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.gallery-item-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    z-index: 3001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 3001;
    border-radius: 5px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    max-width: 600px;
    text-align: center;
}

.lightbox-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    color: var(--text-light);
    margin: 0.5rem 0;
}

/* Dashboard Gallery Management */
.main-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--bg-light);
}

.main-tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.main-tab-btn:hover {
    color: var(--primary-color);
}

.main-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.main-tab-btn i {
    margin-right: 0.5rem;
}

.dashboard-content-section {
    animation: fadeIn 0.3s;
}

.gallery-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gallery-management-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.gallery-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-management-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.gallery-management-item.featured {
    border: 3px solid var(--secondary-color);
}

.gallery-management-item.featured::before {
    content: '⭐';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1;
}

.gallery-management-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-management-info {
    padding: 1rem;
}

.gallery-management-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-management-status.active {
    background: var(--success);
    color: var(--white);
}

.gallery-management-status.inactive {
    background: var(--text-light);
    color: var(--white);
}

.gallery-management-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-management-actions button {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-edit:hover {
    background: #a07855;
}

.btn-delete {
    background: var(--danger);
    color: var(--white);
}

.btn-delete:hover {
    background: #c0392b;
}

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

.btn-toggle:hover {
    background: #1a252f;
}

/* Gallery Form */
.gallery-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.image-preview {
    text-align: center;
    margin: 1rem 0;
    max-height: 250px;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: contain;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Modal Responsive Adjustments */
@media (max-height: 700px) {
    .modal-content {
        margin: 1rem auto;
        padding: 1.5rem;
        max-height: calc(100vh - 2rem);
    }
    
    .image-preview {
        max-height: 150px;
    }
    
    .image-preview img {
        max-height: 120px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        padding: 1.5rem;
    }
    
    .modal-large {
        max-width: none;
    }
}

/* Image Source Tabs */
.image-source-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.source-tab {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.source-tab:hover {
    background: rgba(44, 62, 80, 0.1);
}

.source-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.source-tab i {
    font-size: 1rem;
}

/* File Upload Styling */
input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    background: var(--bg-light);
    transition: all 0.3s;
}

input[type="file"]:hover {
    border-color: var(--secondary-color);
    background: var(--white);
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 1rem;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--secondary-color);
}

/* Upload Progress */
.upload-progress {
    margin-top: 1rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    width: 0%;
}

#progressText {
    font-weight: 600;
    color: var(--primary-color);
}



.modal-actions .btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Dashboard */
.login-section {
    padding: 5rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 450px;
    margin: 0 auto;
}

.login-box h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-light);
    font-size: 0.9rem;
    color: var(--text-light);
}

.login-info p {
    margin-bottom: 0.5rem;
}

.error-message {
    color: var(--danger);
    margin-top: 1rem;
    text-align: center;
}

.dashboard-section {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

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

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-card i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.stat-card.new-appointments i {
    color: var(--warning);
    animation: pulse 2s infinite;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-light);
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

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

.appointments-grid {
    display: grid;
    gap: 1.5rem;
}

.barber-name {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Calendar and Time Slots Styles */
.datetime-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Calendar Widget */
.calendar-widget {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.calendar-header h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.calendar-nav {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
}

.calendar-nav:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--white);
    border: 2px solid transparent;
    color: var(--text-dark);
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: var(--bg-light);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

.calendar-day.other-month {
    color: #ddd;
    cursor: default;
}

.calendar-day.selected {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    font-weight: 700;
    transform: scale(1.05);
}

.calendar-day.today {
    border-color: var(--primary-color);
    font-weight: 700;
}

/* Time Slots Widget */
.time-slots-widget {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.time-slots-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-slots-title i {
    color: var(--secondary-color);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.time-slots-grid::-webkit-scrollbar {
    width: 6px;
}

.time-slots-grid::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.time-slots-grid::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.time-slot {
    padding: 0.875rem 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.time-slot:hover:not(.booked):not(.disabled) {
    background: var(--bg-light);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 147, 109, 0.2);
}

.time-slot.selected {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: scale(1.05);
    font-weight: 600;
}

.time-slot.occupied {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.3) 100%);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    border-style: dashed;
    cursor: default;
    position: relative;
    font-weight: 500;
}

.time-slot.occupied::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.time-slot.booked {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: #ddd;
}

.time-slot.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.time-slots-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 3rem 1rem;
    font-style: italic;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Compact mobile navigation */
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-brand {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .btn-primary, 
    .btn-secondary {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .btn-language {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }

    /* Reduce hero height on mobile */
    .hero {
        height: 400px;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Reduce section padding */
    .services,
    .about,
    .hours {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .booking-section {
        padding: 2rem 0;
    }

    .services-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .lookup-group {
        flex-direction: column;
    }

    .appointment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .appointment-actions {
        flex-direction: column;
    }

    /* Calendar responsive */
    .datetime-picker {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 300px;
    }

    .calendar-day {
        font-size: 0.875rem;
    }

    .time-slot {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Ultra compact navigation */
    .navbar {
        padding: 0.35rem 0;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-brand i {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.35rem;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .btn-primary, 
    .btn-secondary,
    .btn-language {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Further reduce hero on very small screens */
    .hero {
        height: 300px;
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* More compact sections */
    .services,
    .about,
    .hours {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .booking-section {
        padding: 1.5rem 0;
    }

    /* Hide some nav links on very small screens */
    .nav-links a[href*="#about"],
    .nav-links a[href*="#services"] {
        display: none;
    }
}
