/* BookIt.ai Admin Dashboard Styles */

:root {
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --primary-light: #F8BBD9;
    --secondary: #9C27B0;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --info: #2196F3;
    --dark: #212121;
    --light: #F5F5F5;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --navbar-height: 64px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-100);
    color: var(--dark);
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-header .brand i {
    font-size: 1.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
}

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

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar-nav .nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
}

.sidebar-footer .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

/* Top Navbar */
.top-navbar {
    height: var(--navbar-height);
    background: white;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle {
    font-size: 1.5rem;
    color: var(--gray-600);
    padding: 0;
}

.navbar-search {
    flex: 1;
    max-width: 400px;
}

.navbar-search .input-group-text {
    background: var(--gray-100);
    border: none;
    color: var(--gray-500);
}

.navbar-search .form-control {
    background: var(--gray-100);
    border: none;
}

.navbar-search .form-control:focus {
    box-shadow: none;
}

.navbar-actions {
    margin-left: auto;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
}

.user-dropdown:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
}

/* Page Content */
.page-content {
    padding: 24px;
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.stats-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.stats-card .icon-box.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stats-card .icon-box.success {
    background: #C8E6C9;
    color: var(--success);
}

.stats-card .icon-box.warning {
    background: #FFE0B2;
    color: var(--warning);
}

.stats-card .icon-box.info {
    background: #BBDEFB;
    color: var(--info);
}

.stats-card .stats-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.stats-card .stats-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stats-card .stats-change {
    font-size: 0.875rem;
}

.stats-card .stats-change.positive {
    color: var(--success);
}

.stats-card .stats-change.negative {
    color: var(--danger);
}

/* Cards */
.card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.card-body {
    padding: 20px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
    padding: 12px 16px;
}

.table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background: var(--gray-100);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

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

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

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

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.15);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info .details .name {
    font-weight: 500;
}

.user-info .details .email {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Professional Card */
.professional-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.professional-card .logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.25rem;
}

.professional-card .info .business-name {
    font-weight: 600;
}

.professional-card .info .category {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 0.875rem;
}

/* Filters */
.filters-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filters-card .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 6px;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border: none;
    padding: 8px 14px;
    margin: 0 2px;
    border-radius: 6px;
}

.pagination .page-link:hover {
    background: var(--primary-light);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.login-card .logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .logo i {
    font-size: 3rem;
    color: var(--primary);
}

.login-card .logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 8px;
}

.login-card .logo p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Detail Page */
.detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.detail-header .avatar {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.detail-header .info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-header .info .meta {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Status Tags */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-tag.pending {
    background: #FFF3E0;
    color: #E65100;
}

.status-tag.confirmed {
    background: #E3F2FD;
    color: #1565C0;
}

.status-tag.completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-tag.cancelled {
    background: #FFEBEE;
    color: #C62828;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar-header .brand span,
    .sidebar-nav .nav-link span,
    .sidebar-footer .nav-link span {
        display: none;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }
}

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

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

    .sidebar-header .brand span,
    .sidebar-nav .nav-link span,
    .sidebar-footer .nav-link span {
        display: inline;
    }

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

    .top-navbar {
        padding: 0 16px;
    }

    .navbar-search {
        display: none;
    }

    .page-content {
        padding: 16px;
    }
}
