/* Desktop styles */
.responsive-table th.date-column,
.responsive-table td.date-column { width: 15%; }
.responsive-table th.bot-name-column,
.responsive-table td.bot-name-column { width: 20%; }
.responsive-table th.ip-address-column,
.responsive-table td.ip-address-column { width: 15%; }
.responsive-table th.requested-url-column,
.responsive-table td.requested-url-column { width: 25%; }
.responsive-table th.status-code-column,
.responsive-table td.status-code-column { width: 10%; }
.responsive-table th.hostname-column,
.responsive-table td.hostname-column { width: 15%; }

.responsive-table td.requested-url-column {
    overflow-wrap: anywhere;
    word-break: break-word; /* fallback */
}

.responsive-table th,
.responsive-table td,
.wp-list-table.trackabot-two-col th,
.wp-list-table.trackabot-two-col td {
    box-sizing: border-box;
}

/* Force both 2-column tables to share the same column sizing */
.wp-list-table.trackabot-two-col {
  table-layout: fixed; /* critical */
  width: 100%;
}

.wp-list-table.trackabot-two-col th:first-child,
.wp-list-table.trackabot-two-col td:first-child {
  width: 80%;           /* Bot / Page URL column */
  overflow-wrap: anywhere;
  word-break: break-word; /* fallback */
}

.wp-list-table.trackabot-two-col th:last-child,
.wp-list-table.trackabot-two-col td:last-child {
  width: 20%;           /* Hits column */
  text-align: left;
  white-space: nowrap;
}

/* Container for the bot analytics chart.
   Creates a white card-style wrapper that matches WordPress admin tables,
   with fixed height and spacing for consistent dashboard layout. */
.trackabot-chart-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    box-sizing: border-box;
    margin-bottom: 20px;

    /* Match WP table visual feel */
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 15px;
    
    border-radius: 4px;

}

/* Chart canvas styling.
   Forces the Chart.js canvas to fully fill the wrapper
   while respecting the defined 300px max height. */
#dailyBotChart{
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 300px;
}

/* Mobile styles */
@media screen and (max-width: 600px) {
    .responsive-table thead {
        display: none;
    }
    
    /* Show date, bot name, and requested URL data cells with full width on mobile */
    .responsive-table td.date-column,
    .responsive-table td.bot-name-column,
    .responsive-table td.requested-url-column {
        display: block; /* Stack vertically */
        width: 100%; /* Full width for better visibility on mobile */
        text-align: left; /* Align text to the left */
    }

    .responsive-table tr {
    display: block; /* Each row as a block */
    margin-bottom: 10px; /* Space between rows */
    border: 1px solid #c3c4c7;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
  }
    
    .responsive-table td {
        padding: 8px 10px;
    }

    .responsive-table td.bot-name-column {
        font-weight: 600;
    }
	
    .responsive-table td.requested-url-column {
        font-size: 13px;
        line-height: 1.4;
    }
	
}