/* Dashboard Specific Styles */

/* Sidebar and mobile header styles moved to shared-sidebar.css */

/* Dashboard Body */
.dashboard-body {
    background-color: #f8f9fa;
}

/* User Info in Sidebar */
.user-info {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.user-name {
    color: #fff;
    font-weight: 500;
    margin-bottom: 2px;
}

.user-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Content header styles moved to shared-sidebar.css */

/* Notification Bell */
.notification-bell {
    position: relative;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
}

.notification-bell .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
}

/* Date Display */
.date-display {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    margin-left: 15px;
    white-space: nowrap;
}

.date-display i {
    margin-right: 8px;
}

/* Settings Dropdown */
.dropdown .btn {
    color: #6c757d;
    background: none;
    border: none;
    padding: 5px;
}

.dropdown .btn:hover,
.dropdown .btn:focus {
    color: #0d6efd;
}

/* Dashboard Main Content */
.dashboard-main {
    margin-top: 15px;
}

/* Welcome Card */
.dashboard-welcome {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-content h3 {
    margin-bottom: 10px;
    font-weight: 500;
}

.welcome-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

/* Dashboard Section */
.dashboard-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.section-header {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
}

.section-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #343a40;
    font-weight: 600;
}

.section-content {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

/* Dashboard Item */
.dashboard-item {
    text-decoration: none;
    color: #212529;
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    color: #0d6efd;
}

.dashboard-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: #0d6efd;
    position: relative;
}

.dashboard-label {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.1;
}

/* Quick Stats - Enhanced */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.stats-card {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.stats-icon {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 10px;
}

.stats-info h5 {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.stats-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.stats-trend {
    font-size: 0.75rem;
    color: #6c757d;
}

.stats-trend i {
    margin-right: 3px;
}

/* Dashboard Panels */
.dashboard-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 12px;
}

.panel-header {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.panel-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
}

.panel-actions {
    display: flex;
    align-items: center;
}

.panel-actions .form-select {
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.view-all {
    font-size: 0.875rem;
    color: #0d6efd;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

.panel-body {
    padding: 12px;
}

/* Dual Panel Layout */
.dashboard-dual-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
}

.bg-primary {
    background-color: #0d6efd;
}

.bg-success {
    background-color: #28a745;
}

.bg-danger {
    background-color: #dc3545;
}

.bg-info {
    background-color: #17a2b8;
}

.activity-details {
    flex: 1;
}

.activity-text {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Quick Access Sections */
.quick-access-section {
    margin-bottom: 20px;
}

.quick-access-section:last-child {
    margin-bottom: 0;
}

.quick-access-section h5 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #343a40;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-access-item {
    text-decoration: none;
    color: #212529;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.quick-access-item:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.quick-access-item i {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #0d6efd;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-dual-panel {
        grid-template-columns: 1fr;
    }
    
    .section-content {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .content-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
        margin-bottom: 15px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .header-left {
        flex: 1 1 100%;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-left h2 {
        font-size: 1.2rem;
        margin: 0;
        flex: 1;
        min-width: 0;
    }

    .date-display {
        font-size: 0.8rem;
        margin-left: 0;
        color: #6c757d;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .header-right {
        gap: 8px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }

    .notification-bell {
        font-size: 1rem;
        padding: 6px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

    .notification-bell:hover {
        background-color: #f8f9fa;
    }

    .dropdown .btn {
        padding: 6px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

    .dropdown .btn:hover {
        background-color: #f8f9fa;
    }

    .dashboard-dual-panel {
        flex-direction: column;
    }

    /* Maintain order on mobile */
    .dashboard-panel:first-child {
        order: 1;
    }

    .dashboard-panel:last-child {
        order: 2;
    }
}

@media (max-width: 576px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .section-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .dashboard-item {
        padding: 6px 2px;
    }
    
    .dashboard-icon {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .dashboard-label {
        font-size: 0.75rem;
    }

    .content-header {
        padding: 6px 10px;
        gap: 6px;
        margin-bottom: 12px;
    }

    .header-left {
        margin-bottom: 6px;
        gap: 6px;
    }

    .header-left h2 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .date-display {
        font-size: 0.75rem;
        margin-left: 0;
    }

    .date-display i {
        margin-right: 4px;
    }

    .header-right {
        gap: 6px;
    }

    .notification-bell {
        font-size: 0.9rem;
        padding: 5px;
    }

    .dropdown .btn {
        padding: 5px;
        font-size: 0.9rem;
    }
}

/* Mobile Responsive Styles */
/* Mobile responsive styles moved to shared-sidebar.css */

/* Domain Status Indicator Styles */
.domain-status-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.domain-status-indicator.status-online {
    background-color: #28a745;
}

.domain-status-indicator.status-offline {
    background-color: #dc3545;
    animation: pulse 2s infinite;
}

.domain-status-indicator.status-untracked {
    background-color: #6c757d;
}

.domain-status-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.8);
    }
    100% {
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
    }
}

/* Dashboard item warning state for offline domains */
.dashboard-item-warning {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%) !important;
    border: 2px solid #dc3545 !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2) !important;
    animation: warning-pulse 3s infinite;
}

.dashboard-item-warning:hover {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%) !important;
    border-color: #c82333 !important;
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3) !important;
    transform: translateY(-2px);
}

.dashboard-item-warning .dashboard-icon {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.dashboard-item-warning .dashboard-label {
    color: #dc3545 !important;
    font-weight: 600;
}

@keyframes warning-pulse {
    0% {
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
    }
    50% {
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    }
    100% {
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
    }
}

/* My Reminders Panel Styles - Table Format */
.my-reminders-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 12px;
}

/* Dashboard reminder table styling - mobile-friendly version */
#dashboardReminderTable {
    margin-bottom: 0;
    font-size: 0.8rem;
    border-collapse: separate;
    border-spacing: 0;
}

#dashboardReminderTable thead th {
    background-color: #343a40;
    color: white;
    border: none;
    padding: 8px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    position: sticky;
    top: 0;
    z-index: 10;
}

#dashboardReminderTable tbody td {
    padding: 6px 8px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
    line-height: 1.3;
}

#dashboardReminderTable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Column width constraints for compact display */
#dashboardReminderTable th:nth-child(1),
#dashboardReminderTable td:nth-child(1) {
    min-width: 120px;
    max-width: 120px;
}

#dashboardReminderTable th:nth-child(2),
#dashboardReminderTable td:nth-child(2) {
    min-width: 150px;
    max-width: 150px;
}

#dashboardReminderTable th:nth-child(3),
#dashboardReminderTable td:nth-child(3) {
    min-width: 80px;
    max-width: 80px;
}

#dashboardReminderTable th:nth-child(4),
#dashboardReminderTable td:nth-child(4) {
    min-width: 70px;
    max-width: 70px;
}

#dashboardReminderTable th:nth-child(5),
#dashboardReminderTable td:nth-child(5) {
    min-width: 70px;
    max-width: 70px;
}

#dashboardReminderTable th:nth-child(6),
#dashboardReminderTable td:nth-child(6) {
    min-width: 80px;
    max-width: 80px;
}

#dashboardReminderTable th:nth-child(7),
#dashboardReminderTable td:nth-child(7) {
    min-width: 100px;
    max-width: 100px;
}

#dashboardReminderTable th:nth-child(8),
#dashboardReminderTable td:nth-child(8) {
    min-width: 100px;
    max-width: 100px;
}

/* Reminder row states - copied from reminder.css */
.reminder-row-done {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.reminder-row-expired {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
}

.reminder-row-own {
    background-color: #e3f2fd;
}

.reminder-row-own:hover {
    background-color: #bbdefb !important;
}

/* Badge styles - matching reminder.css exactly */
.type-badge, .priority-badge, .status-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

.type-badge {
    background-color: #e9ecef;
    color: #495057;
}

.priority-badge.priority-low {
    background-color: #d4edda;
    color: #155724;
}

.priority-badge.priority-medium {
    background-color: #fff3cd;
    color: #856404;
}

.priority-badge.priority-high {
    background-color: #f8d7da;
    color: #721c24;
}

.priority-badge.priority-critical {
    background-color: #f5c6cb;
    color: #721c24;
    font-weight: 600;
}

.status-badge.status-new {
    background-color: #6c757d;
    color: white;
}

.status-badge.status-ongoing {
    background-color: #28a745;
    color: white;
}

.status-badge.status-cancelled {
    background-color: #ffc107;
    color: #212529;
}

.status-badge.status-done {
    background-color: #007bff;
    color: white;
}

/* Message preview - matching reminder.css */
.message-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.message-preview:hover {
    color: #0d6efd;
}

/* Date columns - matching reminder.css */
.created-date-column {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.created-date-column .time-remaining-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.created-date-column .time-remaining {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.created-date-column .expire-date {
    font-size: 0.75rem;
    color: #6c757d;
    opacity: 0.8;
    white-space: nowrap;
}

.expire-date {
    font-size: 0.8rem;
    opacity: 0.8;
    white-space: nowrap;
}

/* Combined Merchant column - horizontal layout */
.merchant-column {
    min-width: 180px;
    max-width: 250px;
    font-size: 0.8rem;
}

.merchant-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.merchant-id-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    min-width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.merchant-name-text {
    color: #495057;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

/* Assigned to styling */
.assigned-to-own {
    font-weight: 600;
    color: #007bff;
    font-size: 0.7rem;
}

/* Status buttons - matching reminder.css exactly */
.status-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-width: 80px;
    white-space: nowrap;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-btn i {
    margin-right: 4px;
}

.status-btn:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.status-btn.disabled:hover {
    opacity: 0.5;
    transform: none;
}

/* Empty state */
.empty-state {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.empty-state h4 {
    margin: 10px 0 5px 0;
    font-size: 1.1rem;
    color: #495057;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

@keyframes critical-pulse {
    0%, 100% {
        background-color: #f5c6cb;
    }
    50% {
        background-color: #f1aeb5;
    }
}

/* Mobile responsiveness - mobile-friendly design */
@media (max-width: 768px) {
    .my-reminders-panel .panel-header {
        padding: 10px 12px;
    }
    
    .my-reminders-panel .panel-header h4 {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Mobile-friendly table styling */
    #dashboardReminderTable {
        font-size: 0.75rem;
        min-width: 700px; /* Increased for better readability */
    }
    
    #dashboardReminderTable thead th {
        padding: 8px 6px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background-color: #343a40;
        color: white;
        border: none;
        white-space: nowrap;
    }
    
    #dashboardReminderTable tbody td {
        padding: 8px 6px;
        vertical-align: middle;
        border-top: 1px solid #dee2e6;
        white-space: nowrap;
        line-height: 1.4;
    }
    
    /* Mobile-friendly column widths */
    #dashboardReminderTable th:nth-child(1),
    #dashboardReminderTable td:nth-child(1) {
        min-width: 100px;
        max-width: 120px;
    }
    
    #dashboardReminderTable th:nth-child(2),
    #dashboardReminderTable td:nth-child(2) {
        min-width: 140px;
        max-width: 180px;
        font-weight: 600;
    }
    
    /* Title column specific mobile optimization */
    #dashboardReminderTable td:nth-child(2) {
        font-size: 0.8rem;
        line-height: 1.4;
        word-break: break-word;
        hyphens: auto;
        padding: 8px 8px;
    }
    
    #dashboardReminderTable td:nth-child(2) strong {
        font-weight: 600;
        color: #0d6efd;
        display: block;
        margin-bottom: 2px;
    }
    
    /* Title column mobile enhancements */
    #dashboardReminderTable td:nth-child(2) {
        position: relative;
    }
    
    /* Title text truncation with tooltip support */
    #dashboardReminderTable td:nth-child(2) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    
    /* Allow title to expand on hover for full text */
    #dashboardReminderTable tbody tr:hover td:nth-child(2) {
        white-space: normal;
        word-break: break-word;
        overflow: visible;
        z-index: 5;
        position: relative;
        background-color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border-radius: 4px;
        padding: 8px;
        min-width: 200px;
    }
    
    #dashboardReminderTable th:nth-child(3),
    #dashboardReminderTable td:nth-child(3) {
        min-width: 80px;
        max-width: 100px;
    }
    
    #dashboardReminderTable th:nth-child(4),
    #dashboardReminderTable td:nth-child(4) {
        min-width: 60px;
        max-width: 80px;
    }
    
    #dashboardReminderTable th:nth-child(5),
    #dashboardReminderTable td:nth-child(5) {
        min-width: 60px;
        max-width: 80px;
    }
    
    #dashboardReminderTable th:nth-child(6),
    #dashboardReminderTable td:nth-child(6) {
        min-width: 70px;
        max-width: 90px;
    }
    
    #dashboardReminderTable th:nth-child(7),
    #dashboardReminderTable td:nth-child(7) {
        min-width: 90px;
        max-width: 110px;
    }
    
    #dashboardReminderTable th:nth-child(8),
    #dashboardReminderTable td:nth-child(8) {
        min-width: 90px;
        max-width: 110px;
    }
    
    .message-preview {
        max-width: 80px;
        font-size: 0.7rem;
    }
    
    /* Mobile-friendly badges */
    .type-badge, .priority-badge, .status-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
        border-radius: 8px;
        font-weight: 500;
        text-transform: uppercase;
        display: inline-block;
        white-space: nowrap;
    }
    
    /* Mobile-friendly merchant info */
    .merchant-info {
        gap: 6px;
    }
    
    .merchant-id-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        min-width: 30px;
    }
    
    .merchant-name-text {
        font-size: 0.7rem;
    }
    
    /* Ensure dashboard reminder table scrolls horizontally on mobile */
    .my-reminders-panel .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    /* All columns are now shown and scrollable horizontally */
}

@media (max-width: 576px) {
    /* Ultra-compact mobile styling for very small screens */
    .my-reminders-panel .panel-header {
        padding: 8px 10px;
    }
    
    .my-reminders-panel .panel-header h4 {
        font-size: 0.9rem;
    }
    
    #dashboardReminderTable {
        font-size: 0.65rem;
        min-width: 650px; /* Slightly reduced for very small screens */
    }
    
    #dashboardReminderTable thead th {
        padding: 6px 4px;
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
    
    #dashboardReminderTable tbody td {
        padding: 6px 4px;
        line-height: 1.3;
    }
    
    /* Ultra-compact column widths for very small screens */
    #dashboardReminderTable th:nth-child(1),
    #dashboardReminderTable td:nth-child(1) {
        min-width: 90px;
        max-width: 110px;
    }
    
    #dashboardReminderTable th:nth-child(2),
    #dashboardReminderTable td:nth-child(2) {
        min-width: 120px;
        max-width: 160px;
        font-weight: 600;
    }
    
    /* Title column ultra-compact mobile optimization */
    #dashboardReminderTable td:nth-child(2) {
        font-size: 0.75rem;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
        padding: 6px 6px;
    }
    
    #dashboardReminderTable td:nth-child(2) strong {
        font-weight: 600;
        color: #0d6efd;
        display: block;
        margin-bottom: 1px;
        font-size: 0.75rem;
    }
    
    #dashboardReminderTable th:nth-child(3),
    #dashboardReminderTable td:nth-child(3) {
        min-width: 70px;
        max-width: 90px;
    }
    
    #dashboardReminderTable th:nth-child(4),
    #dashboardReminderTable td:nth-child(4) {
        min-width: 50px;
        max-width: 70px;
    }
    
    #dashboardReminderTable th:nth-child(5),
    #dashboardReminderTable td:nth-child(5) {
        min-width: 50px;
        max-width: 70px;
    }
    
    #dashboardReminderTable th:nth-child(6),
    #dashboardReminderTable td:nth-child(6) {
        min-width: 60px;
        max-width: 80px;
    }
    
    #dashboardReminderTable th:nth-child(7),
    #dashboardReminderTable td:nth-child(7) {
        min-width: 80px;
        max-width: 100px;
    }
    
    #dashboardReminderTable th:nth-child(8),
    #dashboardReminderTable td:nth-child(8) {
        min-width: 80px;
        max-width: 100px;
    }
    
    .message-preview {
        max-width: 70px;
        font-size: 0.65rem;
    }
    
    /* Ultra-compact badges */
    .type-badge, .priority-badge, .status-badge {
        font-size: 0.6rem;
        padding: 2px 4px;
        border-radius: 6px;
    }
    
    /* Ultra-compact merchant info */
    .merchant-info {
        gap: 4px;
    }
    
    .merchant-id-badge {
        font-size: 0.6rem;
        padding: 2px 4px;
        min-width: 25px;
    }
    
    .merchant-name-text {
        font-size: 0.65rem;
    }
    
    /* Enhanced table container for very small screens */
    .my-reminders-panel .table-responsive {
        border-radius: 0.25rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

/* Toast Notification Styles */
#toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.toast:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.toast.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.toast.warning .toast-header {
    background-color: #fff3cd;
    border-bottom: 1px solid #ffeaa7;
    color: #856404;
}

.toast.warning .toast-header .toast-icon {
    color: #ffc107;
}

.toast.warning .toast-body {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 500;
}

.toast.error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.toast.error .toast-header {
    background-color: #f8d7da;
    border-bottom: 1px solid #f5c6cb;
    color: #721c24;
}

.toast.error .toast-header .toast-icon {
    color: #dc3545;
}

.toast.error .toast-body {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 500;
}

.toast.success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.toast.success .toast-header {
    background-color: #d4edda;
    border-bottom: 1px solid #c3e6cb;
    color: #155724;
}

.toast.success .toast-header .toast-icon {
    color: #28a745;
}

.toast.success .toast-body {
    background-color: #d4edda;
    color: #155724;
    font-weight: 500;
}

.toast-header {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
}

.toast-header .toast-icon {
    margin-right: 8px;
    font-size: 1rem;
}

.toast-header .btn-close {
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.7;
}

.toast-header .btn-close:hover {
    opacity: 1;
}

.toast-body {
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mobile responsive toast styles */
@media (max-width: 576px) {
    #toast-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px);
        padding: 0 !important;
    }
    
    .toast {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 8px;
    }
    
    .toast-header {
        padding: 6px 10px;
    }
    
    .toast-body {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    /* Ensure toasts are properly hidden when not showing */
    .toast:not(.show) {
        display: none !important;
    }
    
    /* Force hide toast container when empty */
    #toast-container:empty {
        display: none !important;
    }
}

/* Service Logs Button - Overdue Indicator Styles */
#serviceLogsDashboardItem.service-logs-overdue {
    background-color: #fff5f5 !important;
    border: 2px solid #dc3545 !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
    animation: service-logs-pulse 2s infinite;
    color: #dc3545 !important;
}

#serviceLogsDashboardItem.service-logs-overdue:hover {
    background-color: #ffe6e6 !important;
    border-color: #c82333 !important;
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4) !important;
    transform: translateY(-2px);
    color: #c82333 !important;
}

#serviceLogsDashboardItem.service-logs-overdue:hover .dashboard-label {
    color: #c82333 !important;
}

#serviceLogsDashboardItem.service-logs-overdue:hover .dashboard-icon {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #dc3545 !important;
}

#serviceLogsDashboardItem.service-logs-overdue .dashboard-icon {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#serviceLogsDashboardItem.service-logs-overdue .dashboard-label {
    color: #dc3545 !important;
    font-weight: bold !important;
}

/* Service Logs Overdue Badge */
.service-logs-overdue-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    line-height: 1;
}

/* Ensure the dashboard item container has relative positioning for badge */
#serviceLogsDashboardItem {
    position: relative;
}

/* Pulse animation for overdue service logs button */
@keyframes service-logs-pulse {
    0% {
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.5);
    }
    100% {
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    }
}