body {
    background-color: var(--_colors---bw-200);
    color: var(--_colors---bw-600);
    min-height: 100vh;
    font-family: var(--_colors---main);
}

/* Header Styles (Unified with Dashboard) */
.header-home {
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    height: 60px;
    max-height: 60px;
    padding: 0 32px;
    display: flex;
    background: var(--_colors---bw-100);
    border-bottom: 1px solid var(--_colors---bw-250);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.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;
}

/* Modal Styles */
.modal-overlay,
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active,
.modal.active {
    display: flex;
}

.modal-content {
    background: var(--_colors---bw-100);
    border: 1px solid var(--_colors---bw-250);
    border-radius: 24px;
    padding: 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 3px solid var(--_colors---bw-250);
}

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

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--_colors---bw-400);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--_colors---bw-600);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--_colors---bw-400);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--_colors---bw-200);
    border: 1px solid var(--_colors---bw-250);
    border-radius: 12px;
    color: var(--_colors---bw-600);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--_colors---blue);
    background: var(--_colors---bw-100);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 32px;
}

.services-sidebar {
    width: 340px;
    flex-shrink: 0;
}

.services-detail {
    flex: 1;
    background: var(--_colors---bw-100);
    border: 1px solid var(--_colors---bw-250);
    border-radius: 24px;
    padding: 40px;
    min-height: 600px;
    position: sticky;
    top: 100px;
}

.services-header {
    margin-bottom: 24px;
}

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

.service-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--_colors---bw-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-left: 8px;
}

.service-item {
    background: var(--_colors---bw-100);
    border: 1px solid var(--_colors---bw-250);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-item:hover {
    border-color: var(--_colors---blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.service-item-icon {
    width: 44px;
    height: 44px;
    background: var(--_colors---bw-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.service-item-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--_colors---bw-600);
    margin-bottom: 2px;
}

.service-item-info p {
    font-size: 13px;
    color: var(--_colors---bw-400);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-item-info p.connected {
    color: var(--_colors---green, #10b981);
}

.service-detail-view {
    display: none;
}

.service-detail-view.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.detail-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--_colors---bw-600);
    margin-bottom: 8px;
}

.detail-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.detail-description {
    font-size: 16px;
    color: var(--_colors---bw-500);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: var(--_colors---main);
    text-decoration: none;
    background-color: var(--_colors---blue);
    color: white;
    line-height: 1;
}

.btn:hover {
    opacity: 0.9 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

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

.btn-secondary:hover {
    background-color: var(--_colors---bw-250);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

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

.btn-disconnect {
    background: transparent;
    color: var(--_colors---bw-400);
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-disconnect:hover {
    color: var(--_colors---red);
}

.setup-notification-info {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--_colors---bw-250);
}

/* Accounts Section */
.accounts-section {
    max-width: 1600px;
    margin: 0 auto;
}

.accounts-section-header {
    margin-bottom: 24px;
}

.accounts-section-header h2 {
    font-size: 24px;
    color: var(--_colors---bw-600);
    margin-bottom: 8px;
}

.accounts-section-header p {
    color: var(--_colors---bw-400);
    font-size: 14px;
}

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

.account-item {
    background: var(--_colors---bw-100);
    border: 1px solid var(--_colors---bw-250);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.account-item:hover {
    border-color: var(--_colors---blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-avatar {
    width: 44px;
    height: 44px;
    background: var(--_colors---bw-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--_colors---bw-600);
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.account-details h4 {
    color: var(--_colors---bw-600);
    font-size: 16px;
    margin-bottom: 6px;
}

.account-details p {
    color: var(--_colors---bw-400);
    font-size: 13px;
}

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

.modal-actions {
    margin: 10px auto;
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Modal Table Styles */
.events-table {
    width: 100%;
    margin-top: 20px;
}

.events-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--_colors---bw-200);
    color: var(--_colors---bw-400);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-table td {
    padding: 16px;
    border-bottom: 1px solid var(--_colors---bw-250);
    color: var(--_colors---bw-600);
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
}

.availability-results {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

.status-available {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-busy {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.status-available .status-icon {
    background: #10b981;
    color: white;
}

.status-busy .status-icon {
    background: #ef4444;
    color: white;
}

.status-text h4 {
    color: var(--_colors---bw-600);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.status-text p {
    color: var(--_colors---bw-400);
    font-size: 14px;
    margin: 0;
}

.suggested-slots h5 {
    color: var(--_colors---bw-600);
    font-size: 14px;
    margin-bottom: 12px;
}

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

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

.time-slot:hover {
    border-color: var(--_colors---blue);
    background-color: var(--_colors---blue-100);
    color: var(--_colors---blue);
}
/* File Upload Styles (Ported from Dashboard) */
.file-upload {
    border: 2px dashed var(--_colors---bw-250);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: var(--_colors---primary-100);
    background: var(--_colors---bw-150);
}

.file-upload.has-file {
    border-color: var(--_colors---primary-100);
    background: var(--_colors---bw-150);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-text {
    color: var(--_colors---bw-500);
    font-size: 14px;
}

.file-upload-text strong {
    color: var(--_colors---primary-100);
}

.error-text {
    color: #ef4444;
    font-size: 12px;
    margin-top: 8px;
}