/**
 * Pro Dashboard Styles
 * Veranda Market - Service Provider Dashboard
 */

/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #a8e6cf;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;

    --text-primary: #1a1a2e;
    --text-secondary: #666;
    --text-muted: #999;
    --text-light: #fff;

    --bg-primary: #f8f9fa;
    --bg-white: #fff;
    --bg-dark: #1a1a2e;
    --bg-sidebar: #1e2a3a;

    --border-color: #e0e0e0;
    --border-light: #f0f0f0;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;

    --sidebar-width: 260px;
    --header-height: 70px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

/* ===================================
   Sidebar
   =================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-base);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-light);
}

.sidebar-header .logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-header .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-header .logo-accent {
    color: var(--primary-color);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.nav-item.active {
    background: rgba(46, 204, 113, 0.15);
    color: var(--primary-color);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.view-profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    margin-bottom: 0.5rem;
}

.view-profile-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}

/* ===================================
   Main Wrapper
   =================================== */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   Dashboard Header
   =================================== */
.dashboard-header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.notification-btn:hover {
    color: var(--text-primary);
}

.notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: var(--radius-full);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.user-menu:hover {
    background: var(--bg-primary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-status.online i {
    color: var(--success-color);
    font-size: 0.5rem;
}

.user-menu > i {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* User Dropdown */
.user-dropdown {
    position: fixed;
    top: calc(var(--header-height) + 5px);
    right: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1001;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition-fast);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-primary);
}

.dropdown-item.logout {
    color: var(--danger-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* ===================================
   Dashboard Content
   =================================== */
.dashboard-content {
    flex: 1;
    padding: 2rem;
}

.dashboard-section {
    display: none;
}

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

/* ===================================
   Stats Grid
   =================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.messages {
    background: rgba(52, 152, 219, 0.15);
    color: var(--secondary-color);
}

.stat-icon.bookings {
    background: rgba(46, 204, 113, 0.15);
    color: var(--primary-color);
}

.stat-icon.reviews {
    background: rgba(243, 156, 18, 0.15);
    color: var(--accent-color);
}

.stat-icon.views {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===================================
   Content Card
   =================================== */
.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

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

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Activity List */
.activity-list {
    padding: 0.5rem 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    transition: background var(--transition-fast);
}

.activity-item:hover {
    background: var(--bg-primary);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.activity-icon.message {
    background: rgba(52, 152, 219, 0.15);
    color: var(--secondary-color);
}

.activity-icon.booking {
    background: rgba(46, 204, 113, 0.15);
    color: var(--primary-color);
}

.activity-icon.review {
    background: rgba(243, 156, 18, 0.15);
    color: var(--accent-color);
}

.activity-icon.view {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-action:hover {
    border-color: var(--primary-color);
    background: rgba(46, 204, 113, 0.05);
}

.quick-action i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.quick-action span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===================================
   Messages Section
   =================================== */
.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: calc(100vh - var(--header-height) - 4rem);
    overflow: hidden;
}

/* Conversations List */
.conversations-list {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.conversations-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.conversation-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.conversations-scroll {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.conversation-item:hover {
    background: var(--bg-primary);
}

.conversation-item.active {
    background: rgba(46, 204, 113, 0.1);
}

.conversation-item.unread {
    background: rgba(52, 152, 219, 0.05);
}

.conversation-item.unread .conversation-name {
    font-weight: 600;
}

.conversation-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.conversation-avatar .message-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--secondary-color);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    border: 2px solid var(--bg-white);
}

.conversation-preview i {
    color: var(--text-muted);
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

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

.conversation-name {
    font-size: 0.95rem;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.conversation-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Area */
.chat-area {
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.back-to-list {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.chat-user-details {
    display: flex;
    flex-direction: column;
}

.chat-user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-user-status {
    font-size: 0.8rem;
    color: var(--success-color);
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-action {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.chat-action:hover {
    background: var(--primary-color);
    color: white;
}

.chat-action.whatsapp:hover {
    background: #25d366;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-lg);
}

.message.sent .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received .message-content {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    text-align: right;
}

/* Message States */
.message.sending .message-content {
    opacity: 0.7;
}

.message.sending .message-time i {
    animation: pulse 1s infinite;
}

.message.failed .message-content {
    background: var(--danger-color);
    opacity: 0.9;
}

.message.failed .message-time {
    color: rgba(255, 255, 255, 0.9);
}

/* Chat Loading & Empty States */
.chat-loading,
.chat-error,
.no-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    height: 100%;
}

.chat-loading i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.chat-error {
    color: var(--danger-color);
}

.no-messages {
    color: var(--text-secondary);
}

/* Loading and Empty State Styles */
.loading-data,
.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.loading-data i {
    color: var(--primary-color);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
}

.empty-state p {
    font-size: 0.95rem;
    max-width: 300px;
}

.chat-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Chat Input */
.chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-primary);
    border-radius: 30px;
    padding: 0.5rem;
}

.attach-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.attach-btn:hover {
    color: var(--text-primary);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    padding: 0.5rem;
    outline: none;
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.send-btn:hover {
    background: var(--primary-dark);
}

/* Chat Empty State */
.chat-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.chat-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.chat-empty h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* ===================================
   Bookings Section
   =================================== */
.bookings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.booking-tab {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.booking-tab:hover {
    background: var(--bg-primary);
}

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

.tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.booking-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Bookings List */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.booking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.booking-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-type-badge i {
    font-size: 0.7rem;
}

.booking-customer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.customer-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.booking-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.booking-status.pending {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning-color);
}

.booking-status.confirmed {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success-color);
}

.booking-status.completed {
    background: rgba(52, 152, 219, 0.15);
    color: var(--secondary-color);
}

.booking-body {
    padding: 1.25rem 1.5rem;
}

.booking-service {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.booking-service i {
    color: var(--primary-color);
}

.booking-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.booking-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-contact a:hover {
    text-decoration: underline;
}

.booking-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
}

/* ===================================
   Reviews Section
   =================================== */
.reviews-overview {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-big {
    text-align: center;
}

.rating-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

.rating-stars {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-rating {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-reply-section {
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.reply-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reply-toggle:hover {
    text-decoration: underline;
}

.review-reply {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.reply-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.review-reply p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===================================
   Profile Section
   =================================== */
.profile-form {
    max-width: 800px;
}

.form-content {
    padding: 1.5rem;
}

.profile-photo-edit {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

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

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.5rem;
}

/* Skills Input */
.current-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.skill-tag.removable button {
    background: none;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.skill-tag.removable button:hover {
    opacity: 1;
}

.add-skill-wrapper {
    display: flex;
    gap: 0.5rem;
}

.add-skill-wrapper input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.btn-add-skill {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 0;
}

/* ===================================
   Services Section
   =================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-edit-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.service-edit-card .service-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.service-edit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.service-actions {
    display: flex;
    gap: 0.5rem;
}

.service-actions button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.edit-btn {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

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

.delete-btn {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

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

.service-edit-card .service-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.service-price {
    font-weight: 600;
    color: var(--primary-color);
}

.service-duration {
    color: var(--text-muted);
}

/* ===================================
   Portfolio Section
   =================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.portfolio-edit-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-edit-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.portfolio-edit-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.delete-photo-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--danger-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===================================
   Settings Section
   =================================== */
.availability-toggle,
.notification-item,
.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.availability-toggle:last-child,
.notification-item:last-child,
.privacy-item:last-child {
    border-bottom: none;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-color);
    border-radius: 28px;
    transition: background var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    flex: 1;
}

.toggle-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.toggle-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Danger Zone */
.danger-zone .card-header h2 {
    color: var(--danger-color);
}

.danger-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.danger-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.danger-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

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

.btn-accept {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success-color);
}

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

.btn-decline {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}

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

.btn-message {
    background: rgba(52, 152, 219, 0.15);
    color: var(--secondary-color);
}

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

.btn-complete {
    background: rgba(52, 152, 219, 0.15);
    color: var(--secondary-color);
}

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

.btn-full {
    width: 100%;
}

/* ===================================
   Modal
   =================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-row {
    margin-bottom: 1rem;
}

/* ===================================
   Toast
   =================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 3000;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.toast.error i {
    color: var(--danger-color);
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .messages-container {
        grid-template-columns: 1fr;
        height: calc(100vh - var(--header-height) - 4rem);
    }

    .conversations-list {
        display: flex;
    }

    .chat-area {
        display: none;
        position: fixed;
        inset: 0;
        top: 0;
        background: var(--bg-white);
        z-index: 500;
    }

    .chat-area.active {
        display: flex;
    }

    .back-to-list {
        display: block;
    }

    .chat-empty {
        display: none;
    }

    .user-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 0 1rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }

    .quick-action {
        padding: 1rem;
    }

    .quick-action span {
        font-size: 0.8rem;
    }

    .booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .booking-actions {
        flex-wrap: wrap;
    }

    .booking-actions .btn {
        flex: 1;
        min-width: 100px;
    }

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

    .form-group.full-width {
        grid-column: span 1;
    }

    .profile-photo-edit {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .form-actions .btn {
        width: 100%;
    }

    .danger-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .user-dropdown {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.25rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .bookings-tabs {
        flex-direction: column;
    }

    .conversations-header {
        padding: 1rem;
    }

    .conversation-item {
        padding: 0.875rem 1rem;
    }

    .conversation-avatar {
        width: 42px;
        height: 42px;
    }
}
