/* ===== Cleaning Panel Styles ===== */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --sidebar-width: 260px;
    --header-height: 60px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.5;
}

/* ===== Layout ===== */
.cleaning-app {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.cleaning-sidebar {
    width: var(--sidebar-width);
    background: var(--gray-900);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.logo-icon {
    font-size: 28px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-400);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-badge {
    position: absolute;
    right: 12px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--gray-400);
}

.logout-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.logout-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== Main Content ===== */
.cleaning-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.mobile-header {
    display: none;
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle, .notifications-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    cursor: pointer;
}

.menu-toggle:hover, .notifications-btn:hover {
    background: var(--gray-100);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

.content-wrapper {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Page Header ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.page-subtitle {
    color: var(--gray-500);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
}

.back-link:hover {
    color: var(--primary);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.stat-card.large {
    grid-column: span 2;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.scheduled { background: #dbeafe; color: var(--primary); }
.stat-icon.in-progress { background: #fef3c7; color: var(--warning); }
.stat-icon.completed { background: #d1fae5; color: var(--success); }
.stat-icon.today { background: #e0e7ff; color: #6366f1; }
.stat-icon.earnings { background: #d1fae5; color: var(--success); }
.stat-icon.total { background: #dbeafe; color: var(--primary); }
.stat-icon.tasks { background: #fef3c7; color: var(--warning); }

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
}

/* ===== Calendar ===== */
.tasks-calendar {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--gray-600);
}

.calendar-nav:hover {
    background: var(--gray-50);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    font-size: 14px;
}

.calendar-day:hover {
    background: var(--gray-100);
}

.calendar-day.other-month {
    color: var(--gray-300);
}

.calendar-day.today {
    background: var(--primary);
    color: white;
}

.calendar-day.has-tasks::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.calendar-day.today.has-tasks::after {
    background: white;
}

/* ===== Tasks List ===== */
.tasks-list {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.tasks-date {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gray-700);
}

.task-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.task-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.task-card:last-child {
    margin-bottom: 0;
}

.task-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--gray-900);
    min-width: 70px;
}

.task-time svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.task-type {
    color: var(--gray-500);
}

.task-status {
    color: var(--status-color, var(--gray-500));
    font-weight: 500;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action svg {
    width: 18px;
    height: 18px;
}

.btn-start {
    background: var(--primary);
    color: white;
}

.btn-start:hover {
    background: var(--primary-dark);
}

.btn-complete {
    background: var(--success);
    color: white;
}

.btn-complete:hover {
    background: #059669;
}

.btn-view {
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-view:hover {
    background: var(--gray-200);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

.empty-state.large {
    padding: 80px 20px;
}

.empty-state svg, .empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-outline {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.filter-select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
}

/* ===== Cards ===== */
.detail-card, .profile-card, .profile-form-card, .rates-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.detail-header h1 {
    font-size: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    background: color-mix(in srgb, var(--status-color) 15%, white);
    color: var(--status-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-item svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    margin-top: 2px;
}

.detail-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.detail-value {
    font-weight: 500;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ===== Checklist ===== */
.checklist-items {
    list-style: none;
}

.checklist-items li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.checklist-items li:last-child {
    border-bottom: none;
}

.checklist-items li svg {
    width: 20px;
    height: 20px;
    color: var(--gray-300);
}

.checklist-items li.checked svg {
    color: var(--success);
}

.checklist-items.interactive label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checklist-item input:checked + .checkbox-custom {
    background: var(--success);
    border-color: var(--success);
}

.checklist-item input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.checklist-item.checked .item-title {
    text-decoration: line-through;
    color: var(--gray-400);
}

.checklist-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--gray-500);
    white-space: nowrap;
}

/* ===== Photos ===== */
.photos-grid, .photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.photo-item, .photo-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.photo-item img, .photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 8px;
    color: white;
    font-size: 11px;
}

.photo-category {
    display: block;
    font-weight: 500;
}

.upload-section {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.upload-zone svg {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.upload-zone label {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

.photos-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 13px;
    background: var(--gray-100);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--gray-200);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* ===== Messages ===== */
.messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: calc(100vh - 120px);
}

.chats-list {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.chat-item:hover {
    background: var(--gray-50);
}

.chat-item.active {
    background: var(--primary);
    color: white;
}

.chat-item.admin-chat {
    background: var(--gray-50);
}

.chat-item.admin-chat.active {
    background: var(--primary);
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-avatar svg {
    width: 20px;
    height: 20px;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-weight: 500;
    font-size: 14px;
}

.chat-object {
    font-size: 12px;
    opacity: 0.7;
}

.chat-window {
    background: white;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.chat-status {
    font-size: 12px;
    color: var(--success);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.chat-empty, .chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-400);
}

.chat-empty svg, .chat-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.chat-input-form {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--gray-200);
}

.chat-input-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 24px;
    font-size: 14px;
}

.chat-input-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-send {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-send:hover {
    background: var(--primary-dark);
}

/* ===== Notifications ===== */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(59,130,246,0.05), white);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--icon-color) 15%, white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
    color: var(--icon-color);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.notification-type {
    font-size: 12px;
    color: var(--gray-500);
}

.notification-time {
    font-size: 12px;
    color: var(--gray-400);
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--gray-600);
}

.notification-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.notification-link:hover {
    text-decoration: underline;
}

.notification-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===== Earnings ===== */
.earnings-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.rate-type {
    color: var(--gray-600);
}

.rate-value {
    font-weight: 600;
    color: var(--success);
}

.earnings-history h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    margin-bottom: 20px;
}

.month-section {
    margin-bottom: 24px;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.month-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.month-total {
    font-weight: 600;
    color: var(--success);
}

.earning-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

.earning-date {
    font-weight: 600;
    color: var(--gray-500);
    min-width: 50px;
}

.earning-info {
    flex: 1;
}

.earning-object {
    font-weight: 500;
}

.earning-type {
    font-size: 13px;
    color: var(--gray-500);
}

.earning-amount {
    font-weight: 600;
    color: var(--success);
}

/* ===== Profile ===== */
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.profile-card {
    text-align: center;
}

.profile-avatar-section {
    margin-bottom: 20px;
}

.profile-avatar.large {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    font-size: 36px;
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-role {
    color: var(--gray-500);
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.profile-stat .stat-value {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.star-icon {
    width: 18px;
    height: 18px;
    color: var(--warning);
    fill: var(--warning);
}

.profile-form h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
}

.setting-item span {
    font-size: 14px;
}

.toggle {
    width: 44px;
    height: 24px;
    appearance: none;
    background: var(--gray-300);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toggle:checked {
    background: var(--primary);
}

.toggle:checked::before {
    transform: translateX(20px);
}

/* ===== Objects ===== */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.object-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.object-image {
    height: 160px;
    background: var(--gray-200);
}

.object-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.object-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.object-placeholder svg {
    width: 48px;
    height: 48px;
}

.object-content {
    padding: 16px;
}

.object-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.object-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.object-address svg {
    width: 14px;
    height: 14px;
}

.object-actions {
    display: flex;
    gap: 8px;
}

/* ===== Templates Grid ===== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.template-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.template-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.template-preview {
    list-style: none;
}

.template-preview li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-600);
}

.template-preview li svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.template-preview li.more {
    color: var(--gray-400);
    font-style: italic;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #dbeafe;
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
}

.info-box svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 16px;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background: var(--gray-100);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

/* ===== Login Page ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray-500);
    font-size: 14px;
}

.login-form {
    margin-bottom: 20px;
}

.login-footer {
    text-align: center;
}

.login-footer a {
    color: var(--gray-500);
    font-size: 14px;
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--primary);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

/* ===== Error Page ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}

.error-container {
    text-align: center;
    padding: 40px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-container h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.error-container p {
    color: var(--gray-500);
    margin-bottom: 8px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
    .messages-layout {
        grid-template-columns: 1fr;
    }
    
    .chats-list {
        display: none;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cleaning-sidebar {
        transform: translateX(-100%);
    }
    
    .cleaning-sidebar.open {
        transform: translateX(0);
    }
    
    .cleaning-main {
        margin-left: 0;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card.large {
        grid-column: span 2;
    }
    
    .task-card {
        flex-wrap: wrap;
    }
    
    .task-time {
        order: 1;
    }
    
    .task-content {
        order: 3;
        width: 100%;
        margin-top: 12px;
    }
    
    .task-actions {
        order: 2;
        margin-left: auto;
    }
}
