/* Logged-in app pages (client, artisan, admin dashboards) */

.app-shell {
    background-color: #f4f6f8;
}

.app-shell > .app-main {
    max-width: 1440px;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .app-shell > .app-main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.app-shell > .app-main > main {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
}

/* Override Project.css .btn on Bootstrap buttons */
.app-shell .btn.btn-primary,
.app-shell .btn.btn-secondary,
.app-shell .btn.btn-outline-primary,
.app-shell .btn.btn-outline-danger,
.app-shell .btn.btn-link,
.app-shell .btn.btn-close {
    background-color: var(--bs-btn-bg, inherit);
    color: var(--bs-btn-color, inherit);
    border-color: var(--bs-btn-border-color, inherit);
    text-align: center;
    border-radius: var(--bs-btn-border-radius, 0.375rem);
    padding: var(--bs-btn-padding-y, 0.375rem) var(--bs-btn-padding-x, 0.75rem);
}

.app-shell .btn.btn-primary {
    background-color: #5FA9F0;
    border-color: #5FA9F0;
    color: #fff;
}

.app-shell .btn.btn-primary:hover {
    background-color: #4a98e0;
    border-color: #4a98e0;
    color: #fff;
}

.app-shell .page-title,
.app-shell .app-page__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}

/* Filter / section headings (not home page 48px .heading) */
.app-shell .heading {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #333 !important;
    display: block;
    margin: 1rem 0 0.65rem !important;
}

.app-shell h3.fw-bold,
.app-shell h4.fw-bold,
.app-shell h5.fw-bold {
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Cards / panels */
.app-shell .outlined,
.app-shell .outsideDiv {
    background: #fff;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    padding: 1.25rem 1.35rem !important;
    height: auto !important;
    width: 100%;
}

.app-shell .outsideDiv {
    max-height: none;
    overflow: visible;
}

.app-shell [style*="max-height:70vh"],
.app-shell [style*="max-height: 70vh"] {
    max-height: min(75vh, 720px) !important;
    overflow-y: auto !important;
}

.app-shell .app-scroll-panel {
    max-height: min(75vh, 720px);
    overflow-y: auto;
}

/* Search / hero stripe bars */
.app-shell .stripe {
    background: linear-gradient(125deg, #ffe9b8 0%, #ffd078 50%, #ffb228 100%);
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    margin: 0 0 1.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(255, 178, 40, 0.2);
    align-items: center;
}

.app-shell .stripe:not(:has(h3, h4, h5, input, .form-control)) {
    display: none !important;
}

.app-shell .stripe .form-control {
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.app-shell .stripe h3,
.app-shell .stripe h4 {
    margin: 0;
    font-size: 1.15rem;
}

/* Sidebar column */
.app-shell #filterSection {
    max-height: none;
    overflow: visible;
}

@media (min-width: 768px) {
    .app-shell #filterSection {
        position: sticky;
        top: 5.5rem;
        align-self: flex-start;
    }

    .app-shell #filterSection > .outlined,
    .app-shell #filterSection > .outlined + .outlined {
        margin-bottom: 1rem;
    }
}

.app-shell .userdbtn {
    border: 1px solid #e5e7eb;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.app-shell .userdbtn:hover {
    background-color: #f0f7ff;
    border-color: #5FA9F0;
}

.app-shell .button1 {
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
    font-weight: 500;
}

.app-shell .project-info .info-row {
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Dashboard layout rows */
.app-shell .container-fluid > .row + .row,
.app-shell .app-page > .row + .row {
    margin-top: 0.5rem;
}

.app-shell .d-flex.mt-4.gap-2,
.app-shell .row .d-flex.gap-2 {
    gap: 1.25rem !important;
    align-items: flex-start;
}

/* Booking pages */
.app-shell .app-booking-tabs .nav-link {
    color: #555;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.55rem 1rem;
}

.app-shell .app-booking-tabs .nav-link.active {
    color: #5FA9F0;
    background: transparent;
    border-bottom-color: #5FA9F0;
    font-weight: 600;
}

.app-shell .app-booking-card {
    background: #fff;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
}

/* Tables */
.app-shell .table {
    font-size: 0.9rem;
}

.app-shell .table thead th {
    background: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

/* Chat / messages */
.app-shell #chatWindow {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.app-shell #messageContainer {
    flex: 1;
    min-height: 280px;
    max-height: 55vh;
    overflow-y: auto !important;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.app-shell #messagesList {
    list-style: none;
    padding: 0.75rem;
    margin: 0;
}

.app-shell #clientList.list-group {
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 8px;
}

.app-shell #clientList .list-group-item {
    border-color: #eee;
    cursor: pointer;
}

.app-shell #clientList .list-group-item:hover,
.app-shell #clientList .list-group-item.active {
    background-color: #eef6ff;
    border-color: #cfe4fc;
}

.app-shell #sendButton.btn-primary {
    min-width: 5rem;
}

/* Calendar in sidebar */
.app-shell #calendar {
    margin-top: 0.75rem;
}

.app-shell .fc-toolbar {
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Project / craftsman list areas */
.app-shell #projectList,
.app-shell #Favoritecraftsmanlist,
.app-shell #craftsmanlist {
    padding: 0.25rem 0;
}

.app-shell .orangelable {
    color: #e8941a;
    font-size: 1.05rem;
}

/* Mobile filter toggle */
.app-shell #toggleFilter.btn-primary {
    border-radius: 10px;
    font-weight: 500;
}

/* Empty state */
.app-shell .nodata {
    max-width: 220px;
    height: auto;
    opacity: 0.85;
}
