:root {
    --bg-color: #f8f9fc; /* Light blue-ish grey like image */
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --accent-black: #000000;
    --accent-white: #ffffff;
    --border-color: #eef0f5;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* Layout */
.layout-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    padding: 40px;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-header {
    padding-left: 10px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px dashed #ccc; /* Dashed border as requested/observed */
    border-radius: 12px;
    transition: all 0.2s ease;
}

.back-button:hover {
    border-color: var(--accent-black);
    background-color: #fff;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.menu-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    color: var(--accent-black);
    background-color: rgba(0,0,0,0.03);
}

.menu-item.active {
    background-color: var(--accent-black);
    color: var(--accent-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Content Area */
.content-area {
    flex-grow: 1;
    max-width: 900px;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.section-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Card Styling */
.content-card {
    background: var(--accent-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.card-group {
    margin-bottom: 30px;
}

.group-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 200px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.info-value {
    flex-grow: 1;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.info-action {
    margin-left: 20px;
}

/* Buttons */
.btn-black {
    background-color: var(--accent-black);
    color: var(--accent-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: opacity 0.2s;
}

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

.btn-icon {
    background-color: var(--accent-black);
    color: var(--accent-white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 14px;
}

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

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

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

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
}

/* Saved Grid & Cards */
.saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.saved-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.saved-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.saved-card-image {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.saved-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.saved-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.saved-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
}
.saved-card-tag {
    background: #f5f6fa;
    color: #333;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
}
.saved-card-rating {
    color: #e7711b;
    font-weight: 600;
}
.saved-card-location {
    font-size: 12px;
    color: var(--text-secondary);
}
.saved-card-arrow {
    color: var(--text-secondary);
}

.inline-status {
    margin: 8px 0 16px 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}
.inline-status.success {
    background: #e6f4ea;
    color: #137333;
}
.inline-status.error {
    background: #fce8e6;
    color: #a50e0e;
}
.inline-status.info {
    background: #e8f0fe;
    color: #1a73e8;
}

/* Responsive */
@media (max-width: 900px) {
    .layout-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
        gap: 20px;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px; /* For scrollbar space */
    }

    .menu-item {
        white-space: nowrap;
        padding: 10px 16px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .info-value {
        width: 100%;
    }

    .info-action {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-end;
    }
}

/* Appointments List */
.appointments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 6px;
}
.appointment-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--accent-white);
    box-shadow: var(--card-shadow);
    padding: 14px;
    display: grid;
    gap: 10px;
}
.appointment-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}
.appointment-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.appointment-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid #e0e3e7;
}
.appointment-status i {
    font-size: 12px;
}
.appointment-status.status-completed {
    background: #e6f4ea;
    color: #137333;
    border-color: #c7eac9;
}
.appointment-status.status-pending {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #d2e3fc;
}
.appointment-status.status-cancelled {
    background: #fce8e6;
    color: #a50e0e;
    border-color: #f4c7c3;
}
.appointment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.appointment-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.appointment-badge {
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid #e6e9ef;
    background: #f5f6fa;
}
.appointment-badge.price {
    color: #174ea6;
    background: #e8f0fe;
    border-color: #d2e3fc;
}
.appointment-badge.duration {
    color: #1f2937;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

@media (max-width: 720px) {
    .appointments-grid {
        gap: 10px;
    }
    .appointment-row {
        gap: 10px;
    }
}
