

/* Hero Section */
.hero-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border: 1px solid #e9ecef;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon iconify-icon {
    font-size: 4rem;
    color: #0d6efd;
}

.hero-title {
    font-size: 2.5rem;
    color: #2c3e50;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #6c757d;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    font-family: 'PT Sans', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header-modern {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: #0d6efd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.header-title {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
}

.header-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
}

.btn-action-primary {
    background: #0d6efd;
    color: white;
}

.btn-action-primary:hover {
    background: #0b5ed7;
    transform: scale(1.05);
}

.btn-action-danger {
    background: #dc3545;
    color: white;
}

.btn-action-danger:hover {
    background: #bb2d3b;
    transform: scale(1.05);
}

.modern-badge {
    background: #0d6efd;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-body-modern {
    padding: 1.5rem;
    background: white;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: none;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background: white;
    outline: none;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #6c757d;
    font-size: 1rem;
    padding: 0.75rem 0.75rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.input-group:focus-within .input-group-text {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
}

.btn-primary {
    background: #0d6efd;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-secondary {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    color: #6c757d;
    font-size: 0.95rem;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
}

/* Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Bus Note Cards */
.bus-note-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bus-note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0d6efd;
    border-radius: 12px 12px 0 0;
}

.bus-note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bus-note-number {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    background: #0d6efd !important;
    color: white !important;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.bus-note-operator {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.bus-note-type {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.bus-note-route {
    display: flex;
    align-items: center;
    color: #198754;
    font-weight: 500;
}

.route-badge {
    background: #198754; /* fallback color */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'PT Sans', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: inline-block;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.bus-note-text {
    font-style: italic;
    color: #6c757d;
    background: rgba(13, 110, 253, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #0d6efd;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.bus-note-date {
    font-size: 0.8rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
}

.delete-note-btn {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.bus-note-card:hover .delete-note-btn {
    opacity: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
    grid-column: 1 / -1;
}

.empty-icon iconify-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-subtitle {
    font-size: 1rem;
    margin: 0;
}

/* Bus Info Preview */
.bus-info-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.bus-preview-badge {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.bus-preview-details {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.bus-preview-image {
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.bus-preview-image:hover {
    transform: scale(1.02);
}

/* Bus Note Images */
.bus-note-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.bus-card-image {
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.bus-note-card:hover .bus-card-image {
    transform: scale(1.05);
}

/* Image loading states */
.bus-card-image,
.bus-preview-image {
    background: #f8f9fa;
}

.bus-card-image[src=""],
.bus-preview-image[src=""] {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .stat-item {
        min-width: auto;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .card-header-modern {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-actions {
        align-self: flex-end;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bus-note-card {
        padding: 1.25rem;
    }
    
    .delete-note-btn {
        opacity: 1;
    }
    
    .hero-icon iconify-icon {
        font-size: 3rem;
    }
    
    .card-body-modern {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .header-content {
        gap: 0.75rem;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .header-title {
        font-size: 1.1rem;
    }
    
    .form-control, .input-group-text, .btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Animation Effects */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.bus-note-card {
    animation: slideInUp 0.3s ease-out;
}

.modern-card {
    animation: slideInUp 0.4s ease-out;
}

/* Dark Mode Support */
[data-theme="dark"] .hero-section {
    background: #1e293b;
    border-color: #374151;
}

[data-theme="dark"] .hero-title {
    color: #f1f5f9;
}

[data-theme="dark"] .hero-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .stat-item {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .stat-number {
    color: #f1f5f9;
}

[data-theme="dark"] .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .modern-card {
    background: #1e293b;
    border-color: #374151;
}

[data-theme="dark"] .card-header-modern {
    background: #0f172a;
    border-color: #374151;
}

[data-theme="dark"] .card-title-modern {
    color: #ffffff;
    font-weight: 700;
}

[data-theme="dark"] .card-subtitle-modern {
    color: #cbd5e1;
    font-weight: 500;
}

[data-theme="dark"] .card-body-modern {
    background: #1e293b;
}

[data-theme="dark"] .form-label {
    color: #ffffff;
    font-weight: 600;
}

[data-theme="dark"] .form-control {
    background: #334155;
    border-color: #475569;
    color: #ffffff;
    font-weight: 500;
}

[data-theme="dark"] .form-control:focus {
    background: #334155;
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

[data-theme="dark"] .form-control::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .input-group-text {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
    font-weight: 600;
}

[data-theme="dark"] .btn-outline-secondary {
    background: #334155;
    border-color: #475569;
    color: #ffffff;
    font-weight: 600;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background: #475569;
    border-color: #64748b;
    color: #ffffff;
}

[data-theme="dark"] .bus-note-card {
    background: #1e293b;
    border-color: #374151;
}

[data-theme="dark"] .note-header h5 {
    color: #ffffff;
    font-weight: 700;
}

[data-theme="dark"] .note-content p {
    color: #cbd5e1;
    font-weight: 500;
}

[data-theme="dark"] .bus-info-value {
    color: #ffffff;
    font-weight: 600;
}

[data-theme="dark"] .bus-info-label {
    color: #e2e8f0;
    font-weight: 500;
}

[data-theme="dark"] .empty-state {
    color: #94a3b8;
}

[data-theme="dark"] .empty-title {
    color: #ffffff;
    font-weight: 700;
}

[data-theme="dark"] .empty-subtitle {
    color: #cbd5e1;
    font-weight: 500;
}

[data-theme="dark"] .bus-preview-details {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .bus-number {
    color: #ffffff;
    font-weight: 700;
}

[data-theme="dark"] .bus-type {
    color: #cbd5e1;
    font-weight: 600;
}

[data-theme="dark"] .operator-badge {
    background: #475569;
    border-color: #64748b;
    color: #ffffff;
    font-weight: 600;
}

[data-theme="dark"] .note-meta {
    color: #cbd5e1;
    font-weight: 500;
}

[data-theme="dark"] .delete-note-btn {
    color: #f87171;
    font-weight: 600;
}

[data-theme="dark"] .delete-note-btn:hover {
    background: #1f2937;
    color: #fca5a5;
    font-weight: 700;
}

/* Edit button styling */
.edit-note-btn {
    color: #3b82f6;
    font-weight: 600;
}

.edit-note-btn:hover {
    background: #f3f4f6;
    color: #2563eb;
    font-weight: 700;
}

[data-theme="dark"] .edit-note-btn {
    color: #60a5fa;
    font-weight: 600;
}

[data-theme="dark"] .edit-note-btn:hover {
    background: #1f2937;
    color: #93c5fd;
    font-weight: 700;
}