/**
 * WHATSAPP NUMBER MANAGER
 * Main Style Extras & Layout Enhancements
 */

/* Timeline for WhatsApp Status History */
.timeline-history {
    position: relative;
    padding-left: 24px;
    margin-top: 15px;
}

.timeline-history::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 7px;
    width: 2px;
    background: rgba(0, 243, 255, 0.25);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.timeline-item.dot-blocked .timeline-dot {
    border-color: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red);
}

.timeline-item.dot-active .timeline-dot {
    border-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.timeline-content {
    background: rgba(16, 22, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.timeline-date {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* Detail info grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.detail-item {
    background: rgba(13, 18, 34, 0.7);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.12);
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Notification alerts list */
.notification-card {
    background: rgba(16, 22, 42, 0.85);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.notification-card:hover {
    transform: translateX(4px);
}

.notif-blocked {
    border-left: 4px solid var(--neon-red);
    background: linear-gradient(90deg, rgba(255, 51, 102, 0.08) 0%, rgba(16, 22, 42, 0.85) 100%);
}

.notif-activated {
    border-left: 4px solid var(--neon-green);
    background: linear-gradient(90deg, rgba(5, 255, 161, 0.08) 0%, rgba(16, 22, 42, 0.85) 100%);
}

.notif-tomorrow {
    border-left: 4px solid var(--neon-amber);
    background: linear-gradient(90deg, rgba(255, 183, 3, 0.08) 0%, rgba(16, 22, 42, 0.85) 100%);
}

.notif-warning {
    border-left: 4px solid var(--neon-pink);
    background: linear-gradient(90deg, rgba(255, 42, 133, 0.08) 0%, rgba(16, 22, 42, 0.85) 100%);
}

.notif-icon {
    font-size: 20px;
    line-height: 1;
}

.notif-content {
    flex-grow: 1;
}

.notif-title {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    margin-bottom: 2px;
}

.notif-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.chart-card {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-body {
    height: 270px;
    position: relative;
    width: 100%;
}

/* Upcoming Active Widget */
.upcoming-active-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.upcoming-box {
    background: linear-gradient(135deg, rgba(20, 28, 51, 0.9) 0%, rgba(16, 22, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upcoming-box:hover {
    transform: translateY(-2px);
    border-color: var(--neon-cyan);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.2);
}

.upcoming-box.today {
    border-left: 4px solid var(--neon-green);
}

.upcoming-box.tomorrow {
    border-left: 4px solid var(--neon-amber);
}

.upcoming-box.this_week {
    border-left: 4px solid var(--neon-cyan);
}

.upcoming-icon {
    font-size: 26px;
}

.upcoming-count {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.upcoming-label {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 4px;
}

/* Pagination Controls */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    background: var(--bg-surface);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--text-primary);
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--neon-cyan);
    color: #fff;
}

.page-btn.active {
    background: var(--neon-cyan);
    color: #081124;
    border-color: var(--neon-cyan);
    font-weight: 800;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.35);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.empty-state-desc {
    font-size: 13px;
    color: var(--text-muted);
}
