/* ==========================================================================
   MeuIP BGP Dashboard - Custom Styling (Dark/Glassmorphism theme)
   ========================================================================== */

/* Custom CSS Properties */
:root {
    --bg-app: #080c14;
    --bg-card: rgba(16, 22, 37, 0.65);
    --bg-card-hover: rgba(22, 31, 51, 0.8);
    --border-glow: rgba(0, 242, 254, 0.15);
    --border-color: rgba(255, 255, 255, 0.05);
    
    /* Brand Colors */
    --color-primary: #00f2fe;
    --color-secondary: #4facfe;
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-text: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    
    /* Text Colors */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #4b5563;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-warning: #fbbf24;
    --color-warning-bg: rgba(251, 191, 36, 0.1);
    --color-danger: #f43f5e;
    --color-danger-bg: rgba(244, 63, 94, 0.1);
    --color-info: #3b82f6;
    --color-info-bg: rgba(59, 130, 246, 0.1);
    
    /* Fonts */
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Shadows & Transitions */
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Dark mode custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* App Layout Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* HEADER SECTION */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(16, 22, 37, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-main);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: #080c14;
    box-shadow: var(--shadow-glow);
}

.logo-icon i {
    width: 24px;
    height: 24px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-text h1 span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

/* Status badge variations */
.status-badge[data-status="active"] {
    background: var(--color-success-bg);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}
.status-badge[data-status="active"] .status-dot {
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

.status-badge[data-status="inactive"] {
    background: var(--color-danger-bg);
    border-color: rgba(244, 63, 94, 0.2);
    color: var(--color-danger);
}
.status-badge[data-status="inactive"] .status-dot {
    background-color: var(--color-danger);
}

.status-badge[data-status="loading"] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.status-badge[data-status="loading"] .status-dot {
    background-color: var(--text-muted);
    animation: pulse 1.5s infinite ease-in-out;
}

/* Refresh Button */
.btn-refresh {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(180deg);
    color: var(--color-primary);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.btn-refresh:active {
    transform: scale(0.95) rotate(180deg);
}

/* HERO: IP CARDS SECTION */
.hero-ips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
}

.ip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.ip-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-main), 0 4px 20px rgba(0, 242, 254, 0.05);
}

.ip-card:hover::before {
    opacity: 1;
    height: 5px;
}

.ip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ip-protocol {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(0, 242, 254, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

.btn-copy:active {
    transform: scale(0.9);
}

.ip-card-body {
    margin-bottom: 1.25rem;
}

.ip-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    word-break: break-all;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#card-ipv6 .ip-value {
    font-size: 1.45rem;
    line-height: 1.3;
}

.ip-isp {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

.ip-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ip-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-dark);
}

.pulse-indicator.green {
    background-color: var(--color-success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: indicator-pulse 1.8s infinite;
}

.pulse-indicator.red {
    background-color: var(--color-danger);
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7);
    animation: indicator-pulse-red 1.8s infinite;
}

.pulse-indicator.loading {
    background-color: var(--text-muted);
    animation: pulse 1.5s infinite ease-in-out;
}

/* MAIN DASHBOARD GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* DASHBOARD CARD STANDARD */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.dash-card:hover {
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-main), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dash-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--color-secondary);
}

.card-title-icon i {
    width: 18px;
    height: 18px;
}

.dash-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dash-card .card-body {
    padding: 1.5rem;
    flex: 1;
}

/* INFO LIST STANDARD */
.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-list li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 1.05rem;
    font-weight: 500;
}

.info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CSS Utilities and badges */
.code-font {
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.text-highlight {
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-asn {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.2);
    color: var(--color-secondary);
    font-family: var(--font-mono);
}

.badge-rpki {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.badge-rpki[data-rpki="valid"] {
    background: var(--color-success-bg);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.badge-rpki[data-rpki="invalid"] {
    background: var(--color-danger-bg);
    border-color: rgba(244, 63, 94, 0.2);
    color: var(--color-danger);
}

.badge-rpki[data-rpki="unknown"] {
    background: var(--color-warning-bg);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--color-warning);
}

/* PROGRESS BAR (BGP Visibility) */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.25rem;
    border: 1px solid rgba(255,255,255,0.02);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* BLACKLIST CARD SPECFICS */
.card-blacklist .card-header {
    justify-content: space-between;
}

.blacklist-selector {
    margin-left: auto;
}

.custom-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-select:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 242, 254, 0.3);
}

.custom-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.1);
}

.custom-select option {
    background-color: #0b0f19;
    color: var(--text-main);
}

.blacklist-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.blacklist-summary-label {
    color: var(--text-muted);
}

#blacklist-overall-badge {
    font-weight: 700;
    font-size: 0.8rem;
}

#blacklist-overall-badge[data-status="clean"] {
    background: var(--color-success-bg);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

#blacklist-overall-badge[data-status="listed"] {
    background: var(--color-danger-bg);
    border-color: rgba(244, 63, 94, 0.2);
    color: var(--color-danger);
}

#blacklist-overall-badge[data-status="checking"] {
    background: var(--color-warning-bg);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--color-warning);
}

.blacklist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blacklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.blacklist-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.blacklist-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.blacklist-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.blacklist-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blacklist-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.blacklist-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.blacklist-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blacklist-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.blacklist-status-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* RBL Item Statuses */
.blacklist-item[data-status="clean"] {
    border-left: 3px solid var(--color-success);
}
.blacklist-item[data-status="clean"] .blacklist-status-dot {
    background-color: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
}
.blacklist-item[data-status="clean"] .blacklist-status-text {
    color: var(--color-success);
}

.blacklist-item[data-status="listed"] {
    background: rgba(244, 63, 94, 0.03);
    border-left: 3px solid var(--color-danger);
}
.blacklist-item[data-status="listed"] .blacklist-status-dot {
    background-color: var(--color-danger);
    box-shadow: 0 0 6px var(--color-danger);
}
.blacklist-item[data-status="listed"] .blacklist-status-text {
    color: var(--color-danger);
}

.blacklist-item[data-status="blocked"] {
    border-left: 3px solid var(--color-warning);
}
.blacklist-item[data-status="blocked"] .blacklist-status-dot {
    background-color: var(--color-warning);
}
.blacklist-item[data-status="blocked"] .blacklist-status-text {
    color: var(--color-warning);
}

.blacklist-item[data-status="unsupported"] {
    border-left: 3px solid var(--text-dark);
    opacity: 0.6;
}
.blacklist-item[data-status="unsupported"] .blacklist-status-dot {
    background-color: var(--text-dark);
}
.blacklist-item[data-status="unsupported"] .blacklist-status-text {
    color: var(--text-muted);
}

.loading-item {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* MAP CARD SPECIFICS */
.map-card-body {
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Overflow hidden so map behaves */
    height: auto;
    min-height: 380px;
}

.map-view {
    height: 320px;
    width: 100%;
    background: #06090f;
    z-index: 1;
}

.map-coordinates {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 1.25rem;
    background: rgba(10, 14, 26, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    z-index: 2;
}

.coord-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.coord-label {
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.coord-value {
    font-weight: 500;
    color: var(--color-primary);
}

/* Override Leaflet Dark styles */
.leaflet-container {
    font-family: var(--font-sans) !important;
}

.leaflet-bar {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--shadow-main) !important;
}

.leaflet-bar a {
    background-color: rgba(20, 28, 47, 0.9) !important;
    color: var(--text-main) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: var(--transition-smooth);
}

.leaflet-bar a:hover {
    background-color: rgba(30, 41, 59, 1) !important;
    color: var(--color-primary) !important;
}

.leaflet-control-attribution {
    background-color: rgba(10, 14, 26, 0.8) !important;
    color: var(--text-dark) !important;
    font-size: 0.7rem !important;
}

.leaflet-control-attribution a {
    color: var(--text-muted) !important;
}

/* CUSTOM MAP PIN PULSE */
.pulse-marker {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.pulse-marker-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    animation: marker-pulse-ring 2s infinite ease-out;
    opacity: 0;
}

/* SKELETON LOADING ANIMATION */
.skeleton {
    animation: skeleton-glow 1.5s infinite ease-in-out;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    display: inline-block;
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}

.skeleton-text {
    width: 120px;
    height: 1.2rem;
}

.skeleton-title {
    width: 180px;
    height: 1.5rem;
}

.skeleton-badge {
    width: 80px;
    height: 1.6rem;
    border-radius: 6px;
}

/* TOAST NOTIFICATION */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(16, 22, 37, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 4px solid var(--color-success);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
    backdrop-filter: blur(8px);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: var(--color-success);
}

/* FOOTER SECTION */
.app-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.app-footer a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ANIMATIONS */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes indicator-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes indicator-pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(244, 63, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    }
}

@keyframes marker-pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes skeleton-glow {
    0%, 100% {
        background-color: rgba(255, 255, 255, 0.02);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.08);
    }
}

.pulse-icon {
    animation: rotate-slow 20s infinite linear;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* DIAGNOSTIC ACTIONS BANNER & BUTTONS */
.diagnostic-actions-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-main), 0 0 20px rgba(16, 185, 129, 0.05);
    animation: banner-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    gap: 1.5rem;
}

@keyframes banner-slide-in {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actions-banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

.actions-banner-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    color: var(--color-success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.actions-banner-icon i {
    width: 24px;
    height: 24px;
}

.actions-banner-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.actions-banner-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-export-pdf-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-primary);
    border: none;
    color: #080c14;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-export-pdf-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-export-pdf-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-export-header:hover {
    color: var(--color-success) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    background: rgba(16, 185, 129, 0.08) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
    transform: translateY(-1px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .app-container {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .connection-status {
        width: 100%;
        justify-content: space-between;
    }
    
    .hero-ips {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ip-value {
        font-size: 1.5rem;
    }
    
    #card-ipv6 .ip-value {
        font-size: 1.25rem;
    }
    
    .map-card-body {
        height: auto !important;
        min-height: auto !important;
    }
    
    .map-view {
        height: 250px !important;
    }

    .diagnostic-actions-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .actions-banner-content {
        align-items: flex-start;
    }
    
    .btn-export-pdf-primary {
        width: 100%;
        padding: 0.85rem;
    }
}
