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

html {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #F5F5F5;
    color: #333;
    overflow-x: hidden;
}

/* Dashboard Wrapper */
.admin-dashboard-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #F5F5F5;
}

/* Sidebar Styles */
.dashboard-sidebar {
    width: 260px;
    background: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #E5E5E5;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2D6A4F;
    font-size: 20px;
    font-weight: 600;
}

.logo svg {
    color: #2D6A4F;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
    padding: 0 12px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.nav-link:hover {
    background: #F5F5F5;
    color: #2D6A4F;
}

.nav-item.active .nav-link {
    background: #2D6A4F;
    color: white;
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-link .badge {
    margin-left: auto;
    background: #2D6A4F;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Mobile App Promo */
.mobile-app-promo {
    margin-top: auto;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.mobile-app-promo h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.mobile-app-promo p {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.btn-download {
    width: 100%;
    padding: 10px;
    background: white;
    color: #2D6A4F;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #F5F5F5;
}

/* Header */
.dashboard-header {
    background: white;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid #E5E5E5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #F5F5F5;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #E5E5E5;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.user-email {
    font-size: 12px;
    color: #999;
}

/* Dashboard Content */
.dashboard-content {
    padding: 32px;
}

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

.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.content-header p {
    color: #999;
    font-size: 14px;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #2D6A4F;
    color: white;
}

.btn-primary:hover {
    background: #1B4332;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 1px solid #E5E5E5;
}

.btn-secondary:hover {
    background: #F5F5F5;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #E5E5E5;
}

.stat-card-primary {
    background: linear-gradient(135deg, #2D6A4F 0%, #40916C 100%);
    color: white;
    border: none;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-header span {
    font-size: 14px;
    opacity: 0.9;
}

.stat-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.stat-card:not(.stat-card-primary) .stat-icon-btn {
    border-color: #E5E5E5;
    background: #F5F5F5;
}

.stat-icon-btn:hover {
    transform: rotate(90deg);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.stat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.stat-card-primary .stat-footer {
    color: rgba(255,255,255,0.9);
}

.stat-card:not(.stat-card-primary) .stat-footer {
    color: #666;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 24px;
}

.dashboard-left,
.dashboard-center,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card */
.card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #E5E5E5;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    margin-bottom: 0;
}

/* Team Collaboration */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F9F9F9;
    border-radius: 8px;
}

.team-member img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-info strong {
    font-size: 14px;
    color: #333;
}

.member-info span {
    font-size: 12px;
    color: #999;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-completed {
    background: #D4EDDA;
    color: #155724;
}

.status-progress {
    background: #FFF3CD;
    color: #856404;
}

.status-pending {
    background: #F8D7DA;
    color: #721C24;
}

/* Reminder Card */
.reminder-card {
    background: #F9F9F9;
    padding: 20px;
    border-radius: 8px;
}

.reminder-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.reminder-time {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

/* Progress Chart */
.progress-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.progress-chart canvas {
    max-width: 250px;
    max-height: 250px;
}

.progress-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-completed {
    background: #2D6A4F;
}

.legend-progress {
    background: #95D5B2;
}

.legend-pending {
    background: #E5E5E5;
}

/* Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F9F9F9;
    border-radius: 8px;
    transition: all 0.2s;
}

.project-item:hover {
    background: #F0F0F0;
    transform: translateX(4px);
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-info strong {
    font-size: 14px;
    color: #333;
}

.project-info span {
    font-size: 12px;
    color: #999;
}

/* Time Tracker */
.time-tracker-card {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: white;
}

.time-tracker-card h3 {
    color: white;
}

.time-display {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin: 24px 0;
    font-variant-numeric: tabular-nums;
}

.time-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-time-control {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-time-control:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.btn-stop {
    background: #DC3545;
    border-color: #DC3545;
}

.btn-stop:hover {
    background: #C82333;
}

/* Chart Container */
#projectAnalyticsChart {
    max-height: 300px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        left: -260px;
        z-index: 1000;
        transition: left 0.3s;
    }
    
    .dashboard-sidebar.open {
        left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styles */
.dashboard-sidebar::-webkit-scrollbar,
.dashboard-main::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track,
.dashboard-main::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb,
.dashboard-main::-webkit-scrollbar-thumb {
    background: #E5E5E5;
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover,
.dashboard-main::-webkit-scrollbar-thumb:hover {
    background: #CCC;
}

/* Bookings Section */
.bookings-section {
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.booking-stats, .customer-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}

.stat-item strong {
    font-size: 18px;
    font-weight: 700;
    color: #2D6A4F;
}

.bookings-list, .customers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bookings-list .week-header {
    display: flex!important;
}

.booking-item, .customer-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.booking-item:hover, .customer-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.booking-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-display {
    font-size: 18px;
    font-weight: 700;
    color: #2D6A4F;
}

.date-display {
    font-size: 12px;
    color: #6b7280;
}

.booking-details, .customer-info {
    flex: 1;
}

.customer-info {
    display: flex;
    flex-direction: column;
}

.customer-info h4, .booking-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.customer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.meeting-notes {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

.booking-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Customer Avatar */
.customer-avatar {
    display: flex;
    align-items: center;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2D6A4F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.customer-stats {
    display: flex;
    align-items: center;
}

.booking-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.booking-count strong {
    font-size: 18px;
    font-weight: 700;
    color: #2D6A4F;
}

.booking-count span {
    font-size: 12px;
    color: #6b7280;
}

.customer-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #f3f4f6;
    border-color: #2D6A4F;
    color: #2D6A4F;
}

.last-booking {
    font-size: 12px;
    color: #9ca3af;
    margin: 4px 0 0 0;
}

.no-bookings, .no-customers {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-bookings h3, .no-customers h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.no-bookings p, .no-customers p {
    font-size: 14px;
    margin: 0;
}

/* Working Hours Settings */
.settings-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.section-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex-shrink: 0;
}

.section-header p {
    color: #6b7280;
    margin: 0;
    padding-top: 4px;
    line-height: 1.5;
}

/* Calendar Design Specific Styles */
#calendarDesignForm {
    margin-top: 0;
}

.calendar-preview {
    margin: 24px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.calendar-preview h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.form-help {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.form-group input[type="color"]:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* General Settings Styles */
.general-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.general-settings .form-group {
    margin-bottom: 0;
}

.general-settings label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.general-settings input,
.general-settings select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.general-settings input:focus,
.general-settings select:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* View Toggle Styling */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.view-toggle {
    display: flex;
    background: #e9e9e9;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    height: 50px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.view-btn.active {
    background: white;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Admin Calendar View Styling */
.calendar-view {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.calendar-container {
    max-width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #f8f9fa;
    border-color: #d1d5db;
    color: #374151;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
}

.calendar-header-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
}

.day-header {
    background: #f9fafb;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.admin-calendar-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    border: 1px solid #f3f4f6;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-calendar-day:hover {
    background: #f8f9fa;
}

.admin-calendar-day.other-month {
    background: #f9fafb;
    color: #d1d5db;
}

.admin-calendar-day.today {
    background: #eff6ff;
    border-color: #3b82f6;
}

.admin-calendar-day-number {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.admin-calendar-day.other-month .admin-calendar-day-number {
    color: #d1d5db;
}

.admin-calendar-day.today .admin-calendar-day-number {
    color: #3b82f6;
    font-weight: 600;
}

.booking-event {
    background: #2D6A4F;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-event:hover {
    background: #1B4332;
    transform: scale(1.02);
}

.booking-event.morning {
    background: #3b82f6;
}

.booking-event.afternoon {
    background: #f59e0b;
}

.booking-event.evening {
    background: #8b5cf6;
}

/* Service Information Styling */
.service-info {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    font-size: 14px;
    align-items: center;
}

.service-name {
    color: #2D6A4F;
    font-weight: 500;
}

.service-duration {
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Booking Details Modal */
.detail-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.detail-section p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 6px 0;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Ensure calendar grid works properly */
.calendar-view .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-view .calendar-header-days {
    display: contents;
}

.calendar-view .calendar-days {
    display: contents;
}

.calendar-view .day-header {
    background: #f9fafb;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-view .admin-calendar-day {
    background: white;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #f3f4f6;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

/* Responsive calendar */
@media (max-width: 768px) {
    .calendar-view .admin-calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .calendar-view .booking-event {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .calendar-view .admin-calendar-day-number {
        font-size: 12px;
    }
}

/* Week Group Styling */
.week-group {
    margin-bottom: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.week-header {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-range {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.week-count {
    background: #2D6A4F;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.week-bookings {
    padding: 0;
}

.week-bookings .booking-item {
    border-bottom: 1px solid #f3f4f6;
    margin: 0;
    border-radius: 0;
}

.week-bookings .booking-item:last-child {
    border-bottom: none;
}

.week-bookings .booking-item:hover {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-header p {
        padding-top: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .general-settings {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .week-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .week-range {
        font-size: 16px;
    }
}

.working-hours-form {
    background: white;
}

.days-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.day-settings {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.day-settings.closed {
    background: #f9fafb;
    border-color: #d1d5db;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.day-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.day-name input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2D6A4F;
}

.day-name label {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
}

.day-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.working {
    background: #d1fae5;
    color: #065f46;
}

.status-indicator.closed {
    background: #fee2e2;
    color: #991b1b;
}

.day-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.time-range {
    display: flex;
    align-items: end;
    gap: 16px;
}

.time-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-input label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.time-input input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
}

.time-separator {
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 6px;
}

.breaks-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.breaks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.breaks-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.btn-add-break {
    background: #2D6A4F;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-break:hover {
    background: #1e4a3a;
}

.breaks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.break-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.break-item input {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    width: 80px;
}

.break-item .break-label {
    font-size: 12px;
    color: #6b7280;
    min-width: 40px;
}

.btn-remove-break {
    background: #dc2626;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-remove-break:hover {
    background: #b91c1c;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

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

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.setting-item input,
.setting-item select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* Working Hours Messages */
.working-hours-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.working-hours-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.working-hours-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.working-hours-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Embed Generator */
.embed-generator {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.embed-options {
    margin-bottom: 24px;
}

.embed-options .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.embed-options .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.embed-options label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.embed-options input,
.embed-options select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.embed-code-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.embed-code-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.embed-code-section p {
    color: #6b7280;
    margin-bottom: 16px;
}

.code-block {
    margin-bottom: 24px;
}

.code-block textarea {
    resize: vertical;
    min-height: 80px;
}

.embed-preview {
    margin-bottom: 24px;
}

.embed-preview iframe {
    width: 100%;
    border: none;
}

.embed-instructions {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.embed-instructions h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.embed-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.embed-instructions li {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.embed-instructions li:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Working Hours */
@media (max-width: 768px) {
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .time-range {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .breaks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Page Styles */
.services-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.service-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
}

.stat-item span {
    font-size: 14px;
    color: #6b7280;
}

.services-list {
    margin-top: 20px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fafafa;
    transition: all 0.2s;
}

.service-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.service-info h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.service-info p {
    margin: 0 0 4px 0;
    color: #6b7280;
    font-size: 14px;
}

.service-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.duration,
.cost {
    font-size: 14px;
    color: #6b7280;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background: #d1fae5;
    color: #065f46;
}

.status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Service Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #374151;
}

/* Form Styles for Services */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-help {
    margin-top: 5px;
    font-size: 12px;
    color: #6b7280;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Service Reserve Times */
.service-reserve-times {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.reserve-time {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #d1d5db;
}

.reserve-time:first-child {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.reserve-time:last-child {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

/* Custom Time Select Dropdowns */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background-color: #ffffff;
}

.form-group select:hover {
    border-color: #d1d5db;
    border-color: #9ca3af;
}

.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

/* Time Select Container */
.time-select-container {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.time-select-item {
    flex: 1;
    position: relative;
}

.time-select-item label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.time-select-item select {
    width: 100%;
    height: 44px;
    padding: 10px 40px 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    cursor: pointer;
}

.time-select-item select:hover {
    border-color: #9ca3af;
}

.time-select-item select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.time-select-item .form-help {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Time Select Icons */
.time-select-item::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

/* Preparation Time Specific Styling */
.time-select-item:first-child select {
    border-left: 4px solid #f59e0b;
}

.time-select-item:first-child select:focus {
    border-left-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Cleanup Time Specific Styling */
.time-select-item:last-child select {
    border-left: 4px solid #3b82f6;
}

.time-select-item:last-child select:focus {
    border-left-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

