/* Care System - Shared Styles */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

/* General */
body {
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', sans-serif;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
}

.nav-user-info {
    font-size: 0.875rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Tables */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}


/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Buttons */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

/* Flash messages */
.flash-message {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Sticky table header in care grid (desktop only) */
@media (min-width: 768px) {
    .care-grid thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        box-shadow: 0 2px 0 #dee2e6;
    }
}

/* Care grid — responsive stacking on mobile */
@media (max-width: 767px) {
    .care-grid {
        max-height: none;
        overflow-y: visible;
    }

    .care-grid table,
    .care-grid tbody,
    .care-grid tr,
    .care-grid td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .care-grid thead {
        display: none;
    }

    .care-grid tbody tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .care-grid td.client-name {
        background-color: #f8f9fa !important;
        font-weight: 600;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        border-bottom: 2px solid #dee2e6;
    }

    .care-grid td.care-area-cell {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .care-grid td.care-area-cell:last-child {
        border-bottom: none;
    }

    .care-grid td.care-area-cell::before {
        content: attr(data-label);
        font-size: 0.875rem;
        font-weight: 500;
        flex: 1;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
