@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

.athena-analytics-dashboard body {
    color: #e0e0e0;
    background-color: #0d0d0f;
    font-weight: 400;
    transition: background-color 0.3s ease;
    margin: 0;
    padding: 0;
}

/* Dashboard Container */
.athena-analytics-dashboard #athena-analytics-container {
    background-color: #1f1f1f;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    margin: 40px auto;
}

/* Dashboard Title */
.athena-analytics-dashboard .athena-dashboard-title {
    font-weight: 400;
    font-size: 2.5rem;
    color: #00c6ff;
    text-align: center;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid #00c6ff;
    padding-bottom: 10px;
}

/* Chart Container */
.athena-analytics-dashboard .chart-container {
    width: 100%;
    height: 100%;
    margin-top: 30px;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.athena-analytics-dashboard canvas {
    background-color: #1c1c1c;
    border-radius: 8px;
    max-width: 100%;
    overflow-x: hidden;
    display: block;
}


/* Tooltip Styling */
.athena-analytics-dashboard .chartjs-tooltip {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 8px;
    border-radius: 5px;
}

/* Time Range Button Styling */
.athena-analytics-dashboard .time-range-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 10px;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.athena-analytics-dashboard .time-range-button {
    background-color: #2a2a2a;
    color: #00c6ff;
    border: 1px solid #00c6ff;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.athena-analytics-dashboard .time-range-button:hover {
    background-color: #00c6ff;
    color: #121212;
    transform: scale(1.05);
}

.athena-analytics-dashboard .time-range-button.active {
    background-color: #00c6ff;
    color: #121212;
}

/* Summary Section */
.athena-analytics-dashboard .summary-container.wide-horizontal {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 20px;
    margin: 20px 0;
    background-color: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Table Styling */
.athena-analytics-dashboard .keyphrase-ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.athena-analytics-dashboard .keyphrase-ranking-table th {
    background-color: #2d2d2d;
    color: #00c6ff;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Chart Box Styling */
.athena-analytics-dashboard .chart-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.athena-analytics-dashboard .glowing-text {
    color: #ffffff;
    position: relative;
}

.athena-analytics-dashboard .glowing-text::before,
.athena-analytics-dashboard .glowing-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 198, 255, 0.5);
    filter: blur(6px);
    z-index: -1;
}

.athena-analytics-dashboard .glowing-text::before {
    opacity: 0.8;
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}

/* Top Cities and Device Usage Section Styling */
.athena-analytics-dashboard .chart-box-table {
    flex: 1 1 45%;
    min-width: 300px;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    color: #f5f5f5;
}

.athena-analytics-dashboard .section-header {
    text-align: center;
    color: #a78bfa;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Top Cities and Device Usage Section Styling */
.athena-analytics-dashboard .chart-box-table {
    flex: 1 1 45%;
    min-width: 300px;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    color: #e0e0e0; /* Matches the main dashboard font color */
    font-weight: 400; /* Consistent font weight */
}

.athena-analytics-dashboard .section-header {
    text-align: center;
    color: #a78bfa;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

/* Table Styling for Top Cities and Device Usage */
/* Table Styling for Top Cities and Device Usage */
.athena-analytics-dashboard .analytics-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
}

.athena-analytics-dashboard .analytics-table th {
    background-color: #2d2d2d;
    color: #ffffff; /* Set header text color to white */
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 12px 15px;
    letter-spacing: 0.06em;
    border-bottom: 2px solid #00c6ff;
}

.athena-analytics-dashboard .analytics-table td {
    background-color: #1a1a1a;
    padding: 10px 15px;
    font-size: 1rem;
    color: #ffffff; /* Set cell text color to white */
    border-bottom: 1px solid #2a2a2a;
    font-weight: 400;
}

.athena-analytics-dashboard .analytics-table tr:hover {
    background-color: #2a2a2a;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .athena-analytics-dashboard .chart-box-table {
        min-width: 100%;
    }
}

.license-status {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 12px;
    font-weight: bold; /* Bold text */
    font-size: 16px; /* Increase font size */
    color: #28a745;
    background-color: #d4edda;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.spinner {
    display: none;
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #00d1ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.spinner.active {
    display: block;
}


/* General Body Styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
}



/* Progress Bar Container */
#progress-bar-container {
    margin: 30px 0;
    width: 100%;
    height: 10px;
    background: rgba(20, 20, 25, 0.9);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 209, 255, 0.1);
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d1ff, #0073e6);
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.8);
}

/* Button Styling */
button#generate-btn {
    background: linear-gradient(135deg, #00d1ff, #0073e6);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 209, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

button#generate-btn:hover {
    background: linear-gradient(135deg, #0073e6, #00d1ff);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 209, 255, 0.8);
}

/* Keep all charts full-width but capped in height */
#channelsChart,
#trafficSourcesChart,
#topPagesChart {
  width: 100%;
  max-height: 300px;    /* or whatever fixed height you prefer */
}

/* === Canvas Base Styling (used by Top Page Views) === */
.athena-analytics-dashboard canvas {
    background-color: #1c1c1c;
    border-radius: 8px;
    max-width: 100%;
    overflow-x: hidden;
    display: block;
}

/* If you need to override Chart.js inline styles */
.athena-analytics-dashboard .chart-container {
  position: relative;
  height: 300px;        /* fixed container height */
}

/* Brighten all links in the Keyphrase/URL table */
.athena-analytics-dashboard .table-responsive a {
  color: #00c6ff !important;
  text-decoration: underline !important;
}
