/* Malvern View Transport - Common Utility Styles */

/* Navigation Bar - Ensure it's always on top */
.navbar {
    position: relative;
    z-index: 1030;
}

/* Dropdown menu - needs higher z-index than navbar */
.dropdown-menu {
    z-index: 1031 !important;
}

/* Empty State Component */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Selectable Items (cards, rows, etc.) */
.selectable-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.selectable-item:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.selectable-item.selected {
    background-color: #e7f1ff;
    border-color: #0d6efd;
    border-width: 2px;
}

/* Sticky Action Button */
.sticky-action-btn {
    position: sticky;
    bottom: 20px;
    z-index: 1000;
}

/* Count Badge */
.count-badge {
    background-color: #198754;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.count-badge.count-badge-primary {
    background-color: #0d6efd;
}

.count-badge.count-badge-warning {
    background-color: #ffc107;
    color: #000;
}

/* Page Header with Icon */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    margin-bottom: 0.5rem;
}

.page-header .text-muted {
    font-size: 1.1rem;
}

/* Info Card with Left Border */
.info-card {
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.info-card.info-card-success {
    border-left-color: #198754;
}

.info-card.info-card-warning {
    border-left-color: #ffc107;
}

.info-card.info-card-danger {
    border-left-color: #dc3545;
}

.info-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Detail Row with Icon */
.detail-row {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.detail-row i {
    color: #0d6efd;
    width: 24px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.detail-row.detail-row-muted i {
    color: #6c757d;
}

/* Loading Spinner Container */
.loading-container {
    text-align: center;
    padding: 2rem 1rem;
}

.loading-container .spinner-border {
    margin-bottom: 1rem;
}

/* Action Cards Grid */
.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Status Badge */
.status-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Section Divider */
.section-divider {
    border-top: 2px solid #dee2e6;
    margin: 2rem 0;
}

/* Hide/Show utilities */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Centered Content Container */
.centered-content {
    max-width: 800px;
    margin: 0 auto;
}

.centered-content-wide {
    max-width: 1000px;
    margin: 0 auto;
}

/* Hover Card Effect */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Icon Sizes */
.icon-xs {
    font-size: 0.875rem;
}

.icon-sm {
    font-size: 1rem;
}

.icon-md {
    font-size: 1.5rem;
}

.icon-lg {
    font-size: 2rem;
}

.icon-xl {
    font-size: 3rem;
}

.icon-xxl {
    font-size: 4rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .action-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h2 {
        font-size: 1.75rem;
    }
    
    .sticky-action-btn {
        bottom: 10px;
    }
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fb; /* soft grey */
    border-top: 3px solid #007aff; /* brand blue */
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    z-index: 9999;
    font-family: sans-serif;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 480px;
    width: 100%;
    justify-content: space-between;
}

/* Icon + text container */
.install-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.install-banner-left img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.install-banner span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.install-banner button {
    background: #007aff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Close button */
.install-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}

/* Hidden utility */
.hidden {
    display: none;
}

/* iPhone overlay */
.ios-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.ios-overlay-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 320px;
    text-align: center;
    font-family: sans-serif;
}



