/**
 * Admin Styles for OnceBlock
 *
 * @package OnceBlock
 * @since 1.0.0
 */

/* General Admin Styles */
.bpmgr-admin-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.bpmgr-admin-main {
    flex: 2;
}

.bpmgr-admin-sidebar {
    flex: 1;
    max-width: 300px;
}

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

.bpmgr-widget h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #23282d;
}

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

.bpmgr-widget li {
    margin-bottom: 5px;
}

.bpmgr-widget code {
    display: block;
    margin: 5px 0;
    padding: 5px;
    background: #f1f1f1;
    font-size: 12px;
}

/* Tools Page Styles */
.bpmgr-tools-container {
    margin-top: 20px;
}

.bpmgr-tool-section {
    margin-bottom: 30px;
}

.bpmgr-tool-section h2 {
    margin-bottom: 15px;
    border-bottom: 1px solid #ccd0d4;
    padding-bottom: 10px;
}

.bpmgr-tool-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    margin-bottom: 15px;
    padding: 20px;
}

.bpmgr-tool-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
}

.bpmgr-tool-card p {
    margin-bottom: 15px;
}

.bpmgr-tool-card .button {
    margin-right: 10px;
}

.bpmgr-success {
    color: #00a32a;
    font-weight: 600;
}

.bpmgr-error {
    color: #d63638;
    font-weight: 600;
}

.bpmgr-warning {
    color: #dba617;
    font-weight: 600;
}

/* Statistics Page Styles */
.bpmgr-stats-container {
    margin-top: 20px;
}

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

.bpmgr-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    padding: 20px;
    text-align: center;
}

.bpmgr-stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
}

.bpmgr-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

.bpmgr-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.bpmgr-stats-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    padding: 20px;
}

.bpmgr-stats-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #23282d;
}

.bpmgr-full-width {
    grid-column: 1 / -1;
}

.bpmgr-chart-container {
    margin: 20px 0;
    text-align: center;
}

#bpmgr-usage-chart {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

/* Meta Box Styles */
.bpmgr-meta-table {
    width: 100%;
}

.bpmgr-meta-table th {
    text-align: left;
    padding: 8px 0;
    font-weight: 600;
    width: 30%;
}

.bpmgr-meta-table td {
    padding: 8px 0;
}

.bpmgr-meta-table input[type="text"],
.bpmgr-meta-table select,
.bpmgr-meta-table textarea {
    width: 100%;
}

/* Block Editor Styles */
.bpmgr-block-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.bpmgr-block-preset-wrapper {
    position: relative;
}

/* Column Styles */
.column-bpmgr_usage,
.column-bpmgr_shortcode {
    width: 120px;
}

.column-bpmgr_shortcode code {
    font-size: 11px;
    background: #f0f0f1;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bpmgr-admin-container {
        flex-direction: column;
    }
    
    .bpmgr-admin-sidebar {
        max-width: none;
    }
    
    .bpmgr-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bpmgr-stats-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .bpmgr-stat-number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .bpmgr-stats-cards {
        grid-template-columns: 1fr;
    }
}
