/* Notification Dashboard Styles */
.card-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    margin-top: 1rem;
}

.card-stats:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-stats .card-body {
    padding: 25px;
}

.card-stats .numbers {
    text-align: right;
}

.card-stats .card-category {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.8;
    font-weight: 500;
}

.card-stats .card-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.card-stats .icon-big {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.icon-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.icon-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.icon-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.icon-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Beautiful Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 15px;
    padding: 25px 30px;
    color: #495057;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e3f2fd;
}

.dashboard-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 28px;
    color: #6c757d;
}

.dashboard-title-section {
    flex: 1;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
}

.dashboard-subtitle {
    font-size: 14px;
    margin: 5px 0 0 0;
    color: #6c757d;
    font-weight: 400;
}

.dashboard-header .btn {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid #6c757d;
    color: #495057;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.dashboard-header .btn:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: #495057;
    color: #2c3e50;
}

/* Notification Header Button Styles */
.notification-header .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.notification-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.notification-header .notification-title {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 1.5rem;
}

.notification-header .notification-title i {
    color: white;
}

/* Notification Card Headers in Body */
.card-sent .notification-card-header {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border-radius: 15px 15px 0 0;
    padding: 15px;
    margin: -15px -15px 15px -15px;
    border-bottom: none;
    border: 1px solid #d4edda;
}

.card-queue .notification-card-header {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border-radius: 15px 15px 0 0;
    padding: 15px;
    margin: -15px -15px 15px -15px;
    border-bottom: none;
    border: 1px solid #ffeaa7;
}

.card-failed .notification-card-header {
    background: linear-gradient(135deg, #fdf2f2 0%, #fef7f7 100%);
    border-radius: 15px 15px 0 0;
    padding: 15px;
    margin: -15px -15px 15px -15px;
    border-bottom: none;
    border: 1px solid #f8d7da;
}

.notification-card-title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.notification-card-title i {
    margin-right: 10px;
    font-size: 18px;
    color: #495057;
}

.card-sent .notification-card-title,
.card-queue .notification-card-title,
.card-failed .notification-card-title {
    color: #2c3e50;
}

.card-sent .notification-filter-link,
.card-queue .notification-filter-link,
.card-failed .notification-filter-link {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-sent .notification-filter-link:hover,
.card-queue .notification-filter-link:hover,
.card-failed .notification-filter-link:hover {
    color: #2c3e50;
    text-decoration: none;
    transform: translateX(3px);
}

/* Notification Cards - Clean White Background */
.card-sent,
.card-queue,
.card-failed {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.card-sent:hover,
.card-queue:hover,
.card-failed:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Elegant Loading Spinner */
.dashboard-loading {
    position: relative;
    padding: 60px 0;
}

.elegant-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Dashboard Loading */
.dashboard-loading {
    padding: 60px 0;
    text-align: center;
}

.dashboard-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Notification Lists */
.notification-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.notification-item {
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #f8f9fa;
    background: #fff;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

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

.notification-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.notification-link:hover {
    text-decoration: none;
    color: inherit;
}

.notification-destination {
    font-size: 12px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 2px;
}

.notification-date {
    font-size: 10px;
    color: #495057;
}

.empty-state {
    text-align: center;
    padding: 30px 15px;
}

.empty-state p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
    padding: 20px;
}

.card-header h4,
.card-header h5 {
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-stats .icon-big {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .card-stats .card-title {
        font-size: 24px;
    }
    
    .notification-item {
        padding: 12px;
    }
    
    .notification-list {
        max-height: 300px;
    }
}

/* Alert Enhancements */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

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

.dashboard-content {
    animation: fadeIn 0.5s ease-in-out;
}

/* Text utilities */
.text-sm {
    font-size: 0.875rem;
}

/* Date Navigation Wrapper */
.date-navigation-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.date-nav-btn {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    transition: all 0.3s ease;
    font-size: 14px;
}

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

.date-nav-btn:active {
    transform: translateY(0);
}

.date-nav-btn i {
    font-size: 12px;
}

/* Channel Navigation Wrapper */
.channel-navigation-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-select {
    flex: 1;
    min-width: 200px;
}

.channel-nav-btn {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #b3d7ff;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    color: #0d6efd;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.1);
}

.channel-nav-btn:hover {
    background: linear-gradient(135deg, #d1ecf1 0%, #e8f4fd 100%);
    border-color: #86c5ff;
    color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.15);
}

.channel-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.1);
}

.channel-nav-btn i {
    font-size: 12px;
    color: #0d6efd;
}

.channel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    box-shadow: none;
}

.channel-nav-btn:disabled:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

.channel-nav-btn:disabled i {
    color: #6c757d;
}

/* Dashboard Main Card Styles */
.dashboard-main-card {
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    margin-top: 2rem;
}

.dashboard-main-card .notification-header {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
