/* Sidebar Styles for Notifications and Favorites */

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Panel */
.sidebar-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: #fff;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.dark .sidebar-panel {
    background: #09090b;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.sidebar-panel.active {
    transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e4e4e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.dark .sidebar-header {
    border-color: #27272a;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #18181b;
    margin: 0;
}

.dark .sidebar-title {
    color: #fff;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .sidebar-close {
    border-color: #27272a;
    color: #a1a1aa;
}

.sidebar-close:hover {
    background: #f4f4f5;
    color: #18181b;
}

.dark .sidebar-close:hover {
    background: #27272a;
    color: #fff;
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    padding: 0 1.5rem;
    border-bottom: 1px solid #e4e4e7;
    flex-shrink: 0;
}

.sidebar-tabs.provider-single-tab-container {
    justify-content: center;
}

.dark .sidebar-tabs {
    border-color: #27272a;
}

.sidebar-tab {
    flex: 1;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #71717a;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sidebar-tab:hover {
    color: #18181b;
}

.dark .sidebar-tab:hover {
    color: #fff;
}

.sidebar-tab.active {
    color: #18181b;
}

.dark .sidebar-tab.active {
    color: #fff;
}

.sidebar-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #18181b;
}

.dark .sidebar-tab.active::after {
    background: #fff;
}

.sidebar-tab-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.provider-single-tab {
    flex: 0 0 auto;
    min-width: 220px;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

/* Sidebar Cards */
.sidebar-card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.dark .sidebar-card {
    background: #18181b;
    border-color: #27272a;
}

.sidebar-card:hover {
    border-color: #d4d4d8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dark .sidebar-card:hover {
    border-color: #3f3f46;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.sidebar-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #18181b;
    margin: 0;
}

.dark .sidebar-card-title {
    color: #fff;
}

.sidebar-card-time {
    font-size: 0.75rem;
    color: #a1a1aa;
}

.sidebar-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #18181b;
}

.dark .sidebar-card-rating {
    color: #fff;
}

.sidebar-card-rating svg {
    width: 16px;
    height: 16px;
    color: #eab308;
    fill: #eab308;
}

/* Route Display */
.sidebar-card-route {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sidebar-card-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #52525b;
}

.dark .sidebar-card-location {
    color: #a1a1aa;
}

.sidebar-card-location svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-card-location.from svg {
    color: #22c55e;
}

.sidebar-card-location.to svg {
    color: #ef4444;
}

.sidebar-card-arrow {
    color: #d4d4d8;
}

.dark .sidebar-card-arrow {
    color: #52525b;
}

/* Card Meta Info */
.sidebar-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: #71717a;
}

.dark .sidebar-card-meta {
    color: #a1a1aa;
}

.sidebar-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sidebar-card-meta-item svg {
    width: 14px;
    height: 14px;
}

/* Day Tags */
.sidebar-card-days {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sidebar-card-days svg {
    width: 14px;
    height: 14px;
    color: #a1a1aa;
}

.day-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #18181b;
    color: #fff;
    border-radius: 4px;
}

.dark .day-tag {
    background: #fff;
    color: #18181b;
}

/* Status Tags */
.sidebar-card-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.dark .sidebar-card-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.sidebar-card-tag.new {
    background: #dcfce7;
    color: #16a34a;
}

.dark .sidebar-card-tag.new {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

/* View Details Toggle */
.sidebar-card-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    padding: 0.625rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #71717a;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar-card-toggle:hover {
    color: #18181b;
}

.dark .sidebar-card-toggle:hover {
    color: #fff;
}

.sidebar-card-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.sidebar-card-toggle.expanded svg {
    transform: rotate(180deg);
}

/* Card Actions */
.sidebar-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e4e4e7;
}

.dark .sidebar-card-actions {
    border-color: #27272a;
}

.sidebar-card-btn {
    flex: 1;
    padding: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #e4e4e7;
    background: #fff;
    color: #18181b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.dark .sidebar-card-btn {
    border-color: #27272a;
    background: #18181b;
    color: #fff;
}

.sidebar-card-btn:hover {
    background: #f4f4f5;
}

.dark .sidebar-card-btn:hover {
    background: #27272a;
}

.sidebar-card-btn.danger {
    color: #ef4444;
    border-color: #fecaca;
}

.dark .sidebar-card-btn.danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.sidebar-card-btn.danger:hover {
    background: #fef2f2;
}

.dark .sidebar-card-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Empty State */
.sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #a1a1aa;
}

.sidebar-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.sidebar-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: #52525b;
    margin: 0 0 0.5rem;
}

.dark .sidebar-empty-title {
    color: #a1a1aa;
}

.sidebar-empty-text {
    font-size: 0.875rem;
    margin: 0;
}

/* Commuter Notifications (screenshot style) */
.commuter-interest-list {
    display: flex;
    flex-direction: column;
}

.commuter-interest-item {
    width: 100%;
    border: none;
    border-bottom: 1px solid #f4f4f5;
    background: transparent;
    padding: 1rem 1.5rem;
    text-align: left;
    cursor: pointer;
}

.commuter-interest-item:last-child {
    border-bottom: none;
}

.commuter-interest-route-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.commuter-interest-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    flex-shrink: 0;
}

.commuter-interest-dot.hidden {
    opacity: 0;
}

.commuter-interest-route {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.commuter-interest-item.read .commuter-interest-route {
    color: #52525b;
    font-weight: 500;
}

.commuter-trip-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.commuter-trip-badge.daily {
    background: #e0f2fe;
    color: #2563eb;
}

.commuter-trip-badge.one-time {
    background: #fff7ed;
    color: #c2410c;
}

.commuter-interest-message {
    margin: 0 0 0.25rem 1rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.commuter-interest-item.read .commuter-interest-message {
    color: #71717a;
}

.commuter-interest-time {
    display: block;
    margin-left: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.commuter-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.commuter-admin-card {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    padding: 1.3rem 1.2rem;
    text-align: left;
    cursor: pointer;
}

.commuter-admin-card.unread {
    border: 3px solid #d4d4d8;
}

.commuter-admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.commuter-admin-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.commuter-admin-card.read .commuter-admin-title {
    color: #52525b;
    font-weight: 600;
}

.commuter-admin-time {
    font-size: 0.85rem;
    color: #8b8b91;
    white-space: nowrap;
}

.commuter-admin-message {
    margin: 0;
    font-size: 0.85rem;
    color: #3f3f46;
    line-height: 1.45;
}

.commuter-admin-card.read .commuter-admin-message {
    color: #71717a;
}

.commuter-admin-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    min-width: 48px;
    height: 36px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 0.9rem;
}

/* Provider Notifications (single-tab card style) */
.provider-notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.provider-notification-card {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    padding: 1.3rem 1.2rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.provider-notification-card.unread {
    border: 3px solid #d4d4d8;
}

.provider-notification-card:hover {
    border-color: #d4d4d8;
}

.provider-notification-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.provider-notification-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.provider-notification-card.read .provider-notification-title {
    color: #52525b;
    font-weight: 600;
}

.provider-notification-time {
    font-size: 0.85rem;
    color: #8b8b91;
    white-space: nowrap;
}

.provider-notification-message {
    margin: 0;
    font-size: 1.05rem;
    color: #3f3f46;
    line-height: 1.45;
}

.provider-notification-card.read .provider-notification-message {
    color: #71717a;
}

.provider-notification-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    min-width: 48px;
    height: 36px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 0.9rem;
}

/* Favorite Heart Button */
.favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(244, 244, 245, 0.8);
    color: #71717a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .favorite-btn {
    background: rgba(39, 39, 42, 0.8);
    color: #a1a1aa;
}

.favorite-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

.dark .favorite-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.favorite-btn.active {
    background: #fef2f2;
    color: #ef4444;
}

.dark .favorite-btn.active {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.favorite-btn.active svg {
    fill: currentColor;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .sidebar-panel {
        max-width: 100%;
    }
}