/* Services Page Layout - Light Theme */
:root {
    --_colors---blue: #3b82f6;
    --_colors---bw-600: #171717;
    --_colors---green: #34c759;
    --_colors---red: #ff3b30;
    --_colors---orange: #ff9500;
    --_colors---teal: #5ac8fa;
    --_colors---bw-250: #e5e5e5;
    --_colors---bw-100: white;
    --_colors---bw-300: #d4d4d4;
    --_colors---bw-200: #fafafa;
    --_colors---bw-350: #a3a3a3;
    --_colors---bw-400: #737373;
    --_colors---blue-100: #eff6ff;
}

body.body-home {
    background-color: var(--_colors---bw-200);
    color: var(--_colors---bw-600);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

/* Header styles from Dashboard */
.header-home {
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    height: 60px;
    max-height: 60px;
    padding: 0 32px;
    display: flex;
    background: var(--_colors---bw-100);
    border-bottom: 1px solid var(--_colors---bw-250);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav-item {
    padding: 8px 16px;
    color: var(--_colors---bw-500);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.header-nav-item:hover {
    background: var(--_colors---bw-200);
    color: var(--_colors---bw-600);
}

.header-nav-item.active {
    background: var(--_colors---blue-100);
    color: var(--_colors---blue);
}

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

.header-user-email {
    font-size: 14px;
    color: var(--_colors---bw-400);
}

.header-logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--_colors---bw-600);
    margin-right: 24px;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

/* Services Container */
.services-container {
    display: flex;
    height: calc(100vh - 160px);
    background: var(--_colors---bw-100);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--_colors---bw-250);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Left Panel: Service List */
.services-list-panel {
    width: 380px;
    border-right: 1px solid var(--_colors---bw-250);
    display: flex;
    flex-direction: column;
    background: var(--_colors---bw-200);
}

.services-panel-header {
    padding: 24px;
    border-bottom: 1px solid var(--_colors---bw-250);
}

.services-panel-header h2 {
    font-size: 20px;
    color: var(--_colors---bw-600);
    margin: 0;
}

.services-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

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

.service-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--_colors---bw-400);
    margin-bottom: 12px;
    padding-left: 8px;
    font-weight: 600;
}

/* Service Card (Small) */
.service-list-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 8px;
}

.service-list-card:hover {
    background: var(--_colors---bw-100);
    border-color: var(--_colors---bw-250);
}

.service-list-card.active {
    background: var(--_colors---blue-100);
    border-color: var(--_colors---blue);
}

.service-list-card .service-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--_colors---bw-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--_colors---bw-250);
}

.service-list-card .service-info-small h4 {
    margin: 0;
    font-size: 15px;
    color: var(--_colors---bw-600);
}

.service-list-card .service-info-small p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--_colors---bw-400);
}

/* Right Panel: Detail View */
.services-detail-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 48px;
    background: var(--_colors---bw-100);
    position: relative;
    overflow-y: auto;
}

.detail-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--_colors---bw-350);
    text-align: center;
}

.detail-empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--_colors---bw-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 1px solid var(--_colors---bw-250);
}

.service-title-section h1 {
    font-size: 32px;
    color: var(--_colors---bw-600);
    margin: 0 0 8px 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(52, 199, 89, 0.1);
    color: var(--_colors---green);
}

.status-badge.inactive {
    background: var(--_colors---bw-200);
    color: var(--_colors---bw-400);
    border: 1px solid var(--_colors---bw-250);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.active .status-dot {
    background: var(--_colors---green);
    box-shadow: 0 0 8px var(--_colors---green);
}

.service-description-long {
    font-size: 15px;
    line-height: 1.6;
    color: var(--_colors---bw-400);
    max-width: 700px;
    margin-bottom: 40px;
}

.service-detail-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--_colors---bw-250);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    text-decoration: none;
}

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

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--_colors---bw-200);
    color: var(--_colors---bw-600);
    border: 1px solid var(--_colors---bw-250);
}

.btn-secondary:hover {
    background: var(--_colors---bw-250);
}

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

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-disconnect {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-disconnect:hover {
    background: #ef4444;
    color: white;
}

.btn-disconnect:hover img {
    filter: brightness(0) invert(1);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--_colors---bw-100);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--_colors---bw-250);
}

/* Availability Styles */
.availability-results {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--_colors---bw-250);
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.availability-status h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.availability-status p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.time-slot-btn {
    background: var(--_colors---bw-200);
    border: 1px solid var(--_colors---bw-250);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot-btn:hover {
    background: var(--_colors---blue-100);
    border-color: var(--_colors---blue);
    color: var(--_colors---blue);
}

/* Loading */
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--_colors---bw-250);
    border-top-color: var(--_colors---blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .services-container {
        flex-direction: column;
        height: auto;
        margin: 20px;
    }

    .services-list-panel {
        width: 100%;
        height: 300px;
    }
}