/* ===========================
   Google Fonts Import
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;600;700&display=swap');

/* ===========================
   CSS Variables
   =========================== */

:root {
    --primary-color: #6B3276;
    --primary-hover: #5a2963;
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f9fafb;
    --text-primary: #333;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

html, body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.form-label, label {
    font-weight: 600;
}

/* ===========================
   Logo Styling
   =========================== */

.app-logo {
    content: url('/images/logo.profit-booking-edmonton_1200-630.png');
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

a, .btn-link {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var(--primary-hover);
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding: 2rem;
    background-color: var(--bg-main);
}

/* Card Styling */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow-color);
    background: var(--bg-card);
}

.card-header {
    background-color: #F8F8F8;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Table Styling */
.table {
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.5rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-hover);
}

.table a {
    font-weight: 700;
}

/* Badge Styling */
.badge {
    padding: 0.35rem 0.65rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Button Refinements */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--border-color);
    background-color: var(--bg-card);
}

.btn-outline-primary:hover {
    background-color: var(--bg-hover);
    color: var(--primary-hover);
    border-color: var(--border-color);
}

.btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--border-color);
    background-color: var(--bg-card);
}

.btn-outline-secondary:hover {
    background-color: var(--bg-hover);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

/* Force action buttons to stay horizontal */
.action-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.25rem !important;
    flex-wrap: nowrap !important;
}

.action-buttons-container .btn {
    flex-shrink: 0 !important;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Client Detail Three-Column Layout */
.client-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 1200px) {
    .client-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .client-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Notes List Styling */
.notes-list {
    max-height: 600px;
    overflow-y: auto;
}

.note-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.note-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.note-item-compact {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.note-item-compact:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.badge-sm {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
}

/* Contacts List Styling */
.contacts-list {
    max-height: 600px;
    overflow-y: auto;
}

.contact-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.contact-item:last-child {
    margin-bottom: 0;
}

/* ===========================
   Task Management Styles
   =========================== */

/* Priority Badge */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    font-weight: 500;
}

.priority-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--priority-color);
}

.priority-text {
    color: #374151;
}

/* Status Badges */
.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-primary {
    background-color: #0066cc;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.bg-purple {
    background-color: #6f42c1;
    color: white;
}

/* Overdue Badge */
.overdue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.overdue-row {
    position: relative;
    border-left: 3px solid #dc3545 !important;
}

.overdue-row td:first-child {
    padding-left: 0.75rem;
}

.overdue-row:hover {
    background-color: #fef2f2 !important;
}

/* Task Link */
.task-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.task-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Filters Section */
.filters-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

.filter-group select {
    min-width: 150px;
}

/* Data Table */
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    border-collapse: collapse;
}

.data-table thead th {
    background-color: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 2px solid #e5e7eb;
}

.data-table tbody td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table a {
    font-weight: 700;
}

/* Button Icon */
.btn-icon {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Task Detail Container */
.task-detail-container {
    display: grid;
    gap: 1.5rem;
}

.task-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    row-gap: 0.75rem;
}

.detail-row {
    display: contents;
}

.detail-row.full-width {
    grid-column: 1 / -1;
    display: block;
}

.detail-row strong {
    color: #4b5563;
    font-size: 0.875rem;
    padding-top: 0.5rem;
}

/* Time Tracking */
.time-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 6px;
}

.time-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.time-stat strong {
    font-size: 0.875rem;
    color: #6b7280;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.time-value.over-budget {
    color: #dc3545;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: none;
    border-radius: 0.375rem;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.15s ease-in-out;
}

/* Pinned Drawer Styles */
.modal-overlay.pinned {
    background-color: transparent;
    position: static;
    display: block;
}

.modal-content.pinned-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30%;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    z-index: 1000;
    margin: 0;
    overflow-y: auto;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.btn-close:hover {
    opacity: 0.75;
}

.btn-close:focus {
    opacity: 1;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(107, 50, 118, 0.25);
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 50, 118, 0.1);
}

/* Select/Dropdown Styling */
.form-select, select.form-control {
    width: 100%;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-select:focus, select.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 50, 118, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236B3276' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:disabled, select.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

/* Small select styling */
.form-select-sm {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    background-position: right 0.75rem center;
    background-size: 14px 10px;
}

/* Card Header with Actions */
.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

/* Top Bar Styles */
.top-row .btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    color: #374151;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
    position: relative;
}

.top-row .btn-icon:hover {
    color: #0066cc;
    background-color: rgba(0, 102, 204, 0.1);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    line-height: 1;
    min-width: 16px;
    text-align: center;
}

/* Text Utilities */
.text-muted {
    color: #6b7280;
}

/* Semicircular Progress Gauge (180 degrees) */
.circular-progress-wrapper {
    display: inline-block;
    width: 60px;
    height: 30px;
}

.semicircular-progress {
    width: 100%;
    height: 100%;
}

.semicircular-progress .circle-bg {
    opacity: 0.3;
}

.semicircular-progress .circle {
    transition: stroke-dasharray 0.3s ease;
}

.semicircular-progress .percentage-text {
    font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
    }

    .filter-group select {
        min-width: 100%;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .time-summary {
        flex-direction: column;
        gap: 1rem;
    }

    /* Hide tables on mobile */
    .mobile-hide {
        display: none !important;
    }

    /* Show mobile cards only on mobile */
    .mobile-show {
        display: block !important;
    }

    /* Page Header Mobile Layout */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .page-header h1 {
        width: 100%;
        font-size: 1.5rem;
        word-wrap: break-word;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* Reduce button padding on mobile */
    .header-actions .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
    }

    .header-actions .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }

    /* General button padding reduction on mobile */
    .btn {
        padding: 0.4rem 0.75rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
    }

    /* Client/Page Headers with d-flex pattern */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 h1 {
        width: 100%;
        font-size: 1.5rem;
        word-wrap: break-word;
        margin-bottom: 0 !important;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 > div {
        width: 100%;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}

/* Desktop: Hide mobile cards, show tables */
@media (min-width: 769px) {
    .mobile-show {
        display: none !important;
    }

    .mobile-hide {
        display: table !important;
    }
}

/* Mobile Card Layouts */
.mobile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px var(--shadow-color);
}

.mobile-card:last-child {
    margin-bottom: 0;
}

.mobile-card.overdue {
    border-left: 4px solid #dc3545;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    flex: 1;
}

.mobile-card-title:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.mobile-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.mobile-card-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mobile-card-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    text-align: right;
}

.mobile-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.mobile-card-grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}
/* ===========================
   Efficiency Report Styles
   =========================== */

/* KPI Cards */
.kpi-card {
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.kpi-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.kpi-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chart Container */
.card canvas {
    max-height: 400px;
}

/* Report Header */
.report-period-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-hover);
    border-radius: 20px;
    color: var(--text-secondary);
}

/* Purple Badge Shades for Efficiency Report */
.badge-purple-dark {
    background-color: #8B52A6;
    color: white;
}

.badge-purple-primary {
    background-color: #6B3276;
    color: white;
}

.badge-purple-medium {
    background-color: #A572C0;
    color: white;
}

.badge-purple-light {
    background-color: #C092DA;
    color: white;
}

/* ===========================
   Reports Landing Page
   =========================== */

.report-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.report-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.report-meta {
    margin-top: 0.75rem;
}

.report-meta .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===========================
   Hide Pin Button on Mobile
   =========================== */

@media (max-width: 768px) {
    .pin-button {
        display: none !important;
    }
}
