/* Botless Video Admin Styles */

/* Header Styles */
.botless-admin-header {
    margin: 20px 0;
    padding: 0;
}

.botless-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.botless-logo img {
    height: 40px;
    width: auto;
}

.botless-page-title {
    margin: 0;
    padding: 0;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.3;
    color: #1d2327;
    display: flex;
    align-items: center;
}

.botless-brand {
    font-weight: 600;
    color: #2271b1;
}

.botless-separator {
    margin: 0 8px;
    color: #666;
}

.botless-notification-bar {
    background: #fff;
    border-left: 4px solid #2271b1;
    padding: 12px;
    margin: 20px 0;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.botless-notification-bar p {
    margin: 0;
}

/* Main container */
.botless-admin-page {
    margin: 20px 0;
    padding: 0 20px 0 0;
}

/* Header */
.botless-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Content Layout */
.botless-content-area {
    display: flex;
    gap: 20px;
}

.botless-admin-content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Main Content */
.botless-main-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Settings Form Styles */
.botless-settings-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.botless-settings-form .form-table th {
    width: 200px;
}

.botless-settings-form .form-table td {
    padding: 15px 10px;
}

.botless-settings-form .form-table input[type="text"],
.botless-settings-form .form-table input[type="number"],
.botless-settings-form .form-table select {
    width: 100%;
    max-width: 400px;
}

.botless-settings-form .form-table .description {
    margin-top: 5px;
    color: #666;
}

/* Sidebar */
.botless-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.botless-widget {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.botless-widget h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 600;
}

.botless-widget ul {
    margin: 0;
    padding-left: 20px;
}

.botless-widget li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.botless-widget p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.4;
}

.botless-widget a {
    text-decoration: none;
    color: #2271b1;
}

.botless-widget a:hover {
    color: #135e96;
    text-decoration: underline;
}

.botless-donate-button-container {
    text-align: center;
    margin: 15px 0 5px 0;
}

.botless-donate-button-container .button-primary {
    display: inline-block;
    min-width: 120px;
    text-align: center;
    font-weight: 600;
    padding: 8px 15px;
}

/* Settings Page Styles */
.botless-core-image-uploader {
    border: 1px dashed #ccc;
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

.botless-core-placeholder-preview {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    display: block;
}

.botless-core-bundled-default-preview {
    max-width: 150px;
    max-height: 150px;
    border: 1px dashed #ccc;
    margin-bottom: 10px;
    background-color: #f0f0f0;
}

/* Logs specific styling */
.botless-logs-content {
    /* Remove these styles from the container */
    /* background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04); */
}

/* Add box styling to each section */
.botless-box {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
}

.botless-analytics-section {
    /* Remove margin-bottom as it's handled by botless-box */
    /* margin-bottom: 30px; */
}

.botless-analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.botless-period-selector select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.botless-chart-container {
    margin: 20px 0;
    height: 300px;
}

.botless-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.botless-stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.botless-stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.botless-stat-value {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #2271b1;
}

.botless-logs-section {
    /* Remove margin-top as it's handled by botless-box */
    /* margin-top: 30px; */
}

.botless-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.botless-logs-actions {
    margin-left: auto;
}

#botless-logs-cleared-notice {
    margin-top: 0;
    margin-bottom: 20px;
    padding: 8px 12px;
}

#botless-clear-logs {
    background-color: #f0f0f1;
    color: #d63638;
    border-color: #d63638;
}

#botless-clear-logs:hover {
    background-color: #d63638;
    color: #fff;
}

.tablenav-pages {
    margin: 10px 0;
    text-align: right;
}

.tablenav-pages .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
}

.tablenav-pages .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Dashboard Styles */
.botless-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.botless-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    flex: 1;
    min-width: 250px;
}

.botless-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.botless-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 5px;
}

.botless-stat-label {
    color: #646970;
    font-size: 13px;
}

.botless-chart-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.botless-chart-controls label {
    font-weight: 600;
    margin-right: 5px;
}

.botless-chart-controls select {
    min-width: 120px;
}

/* Dashboard container */
.botless-dashboard-container {
    /* Remove box styling from container */
    /* background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04); */
}

.botless-dashboard-section {
    /* Remove margin-bottom as it's handled by botless-box */
    /* margin-bottom: 30px; */
}

.botless-dashboard-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.botless-dashboard-section h3 {
    margin: 20px 0 10px 0;
}

.botless-dashboard-section ul {
    margin-left: 20px;
}

.botless-dashboard-section li {
    margin-bottom: 8px;
}

/* Module Cards */
.botless-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    overflow: hidden; /* Prevent overflow */
    margin-bottom: 15px; /* Add space after the grid */
}

.botless-module-card {
    display: flex;
    margin-bottom: 0; /* Remove margin since grid handles spacing */
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #2271b1;
    background: #f8f8f8;
    height: 100%; /* Ensure all cards are same height */
    box-sizing: border-box; /* Include padding in the height calculation */
}

.botless-module-inactive {
    border-left-color: #ccc;
    opacity: 0.7;
}

.botless-module-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.botless-module-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #2271b1;
}

.botless-module-inactive .botless-module-icon .dashicons {
    color: #888;
}

.botless-module-content {
    flex: 1;
}

.botless-module-content h3 {
    margin: 0 0 10px 0;
    padding: 0;
}

.botless-module-actions {
    margin-top: 15px;
}

.botless-coming-soon {
    display: inline-block;
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #888;
    border-radius: 3px;
    font-size: 12px;
}

/* Tab functionality styles */
.botless-tabs {
    margin-bottom: 20px;
}

.botless-tab-button {
    background: #f1f1f1;
    border: 1px solid #ccd0d4;
    padding: 10px 15px;
    margin-right: 5px;
    cursor: pointer;
    border-bottom: none;
    display: inline-block;
}

.botless-tab-button.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.botless-tab-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.botless-tab-content {
    display: none;
    border: 1px solid #ccd0d4;
    padding: 20px;
    background: #fff;
}

.botless-tab-content.active {
    display: block;
}

/* Testing section styles */
.botless-testing-section {
    position: relative;
}

.botless-copy-button {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
}

.botless-copy-button:hover {
    background: #f0f0f0;
    color: #000;
}

.botless-copy-button.copied {
    background: #e7f7e3;
    color: #28a745;
    border-color: #28a745;
}

.botless-testing-instructions {
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Logs Page Styles */
.botless-logs-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
}

.botless-logs-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.botless-logs-table {
    width: 100%;
    border-collapse: collapse;
}

.botless-logs-table th,
.botless-logs-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.botless-logs-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #1d2327;
}

.botless-logs-table tr:hover {
    background-color: #f8f9fa;
}

.botless-empty-logs {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
    font-style: italic;
}

.botless-core-reset-ua,
.botless-core-remove-image-button {
    margin-left: 10px;
    background-color: #f0f0f1;
    color: #d63638;
    border-color: #d63638;
}

@media (max-width: 768px) {
    .botless-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .botless-admin-content,
    .botless-content-area {
        flex-direction: column;
    }

    .botless-sidebar {
        width: 100%;
    }

    .botless-cards {
        flex-direction: column;
    }

    .botless-chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .botless-modules-grid {
        grid-template-columns: 1fr;
    }

    .botless-analytics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .botless-logs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
} 