/**
 * Simple Post View Counter - Admin Styles
 * @package Simple Post View Counter
 * @version 1.0.1
 */

/* Main Admin Wrapper */
.simpvc-admin-wrap {
    max-width: 1200px;
    margin: 20px 0;
}

/* Settings Section */
.simpvc-settings-section {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.simpvc-settings-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 18px;
}

.simpvc-settings-section .form-table th {
    width: 200px;
    padding: 15px 10px 15px 0;
    vertical-align: top;
}

.simpvc-settings-section .form-table td {
    padding: 15px 10px;
}

.simpvc-settings-section fieldset label {
    margin-bottom: 8px;
    display: block;
    font-weight: normal;
}

.simpvc-settings-section fieldset input[type="radio"],
.simpvc-settings-section fieldset input[type="checkbox"] {
    margin-right: 8px;
}

/* Stats Grid */
.simpvc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0 30px 0;
}

.simpvc-stat-card {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.simpvc-stat-card:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.simpvc-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    display: block;
    margin-bottom: 8px;
    line-height: 1.2;
}

.simpvc-stat-label {
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Posts Table */
.simpvc-posts-table {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.simpvc-posts-table h2 {
    margin: 0 0 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 18px;
    color: #23282d;
}

.simpvc-posts-table .wp-list-table {
    margin: 0;
    border: none;
}

.simpvc-view-number {
    font-weight: bold;
    color: #0073aa;
    font-size: 16px;
}

/* Usage Info */
.simpvc-usage-info {
    margin-top: 30px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.simpvc-usage-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 18px;
}

.simpvc-usage-info h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #23282d;
    font-size: 16px;
}

.simpvc-usage-info ul {
    margin-bottom: 20px;
}

.simpvc-usage-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.simpvc-usage-info code {
    background: #f1f1f1;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
    color: #d14;
    border: 1px solid #e1e1e1;
}

/* Button Styles */
.simpvc-usage-info .button,
.simpvc-posts-table .button {
    margin-right: 5px;
}

.simpvc-posts-table .button-small {
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.5;
    height: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .simpvc-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .simpvc-stat-card {
        padding: 15px;
    }
    
    .simpvc-stat-number {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .simpvc-admin-wrap {
        margin: 10px 0;
    }
    
    .simpvc-settings-section,
    .simpvc-usage-info {
        padding: 15px;
    }
    
    .simpvc-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .simpvc-stat-card {
        padding: 15px 10px;
    }
    
    .simpvc-stat-number {
        font-size: 24px;
    }
    
    .simpvc-stat-label {
        font-size: 13px;
    }
    
    .simpvc-posts-table h2 {
        padding: 15px;
        font-size: 16px;
    }
    
    .simpvc-settings-section .form-table th {
        width: auto;
        display: block;
        padding: 10px 0 5px 0;
    }
    
    .simpvc-settings-section .form-table td {
        display: block;
        padding: 5px 0 15px 0;
    }
    
    .simpvc-posts-table table {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .simpvc-settings-section,
    .simpvc-usage-info,
    .simpvc-posts-table h2 {
        padding: 12px;
    }
    
    .simpvc-stat-number {
        font-size: 20px;
    }
    
    .simpvc-stat-label {
        font-size: 12px;
    }
    
    .simpvc-usage-info code {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .simpvc-posts-table .button-small {
        font-size: 11px;
        padding: 1px 6px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .simpvc-settings-section,
    .simpvc-stat-card,
    .simpvc-usage-info,
    .simpvc-posts-table {
        background: #1a1a1a;
        border-color: #444444;
        color: #ffffff;
    }
    
    .simpvc-settings-section h2,
    .simpvc-usage-info h3,
    .simpvc-usage-info h4,
    .simpvc-posts-table h2 {
        color: #ffffff;
    }
    
    .simpvc-stat-label {
        color: #cccccc;
    }
    
    .simpvc-posts-table h2 {
        background: #2a2a2a;
        border-bottom-color: #444444;
    }
    
    .simpvc-usage-info code {
        background: #2a2a2a;
        border-color: #444444;
        color: #ff6b6b;
    }
	.form-table th, .form-wrap label{
        color: #ffffff;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .simpvc-stat-number {
        color: #000000;
    }
    
    .simpvc-view-number {
        color: #000000;
        font-weight: 900;
    }
    
    .simpvc-settings-section,
    .simpvc-stat-card,
    .simpvc-usage-info,
    .simpvc-posts-table {
        border-width: 2px;
        border-color: #000000;
    }
}

/* Print Styles */
@media print {
    .simpvc-admin-wrap {
        max-width: none;
    }
    
    .simpvc-stats-grid {
        display: block;
    }
    
    .simpvc-stat-card {
        display: inline-block;
        width: 23%;
        margin-right: 2%;
        page-break-inside: avoid;
    }
    
    .simpvc-posts-table,
    .simpvc-usage-info {
        page-break-inside: avoid;
    }
    
    .button {
        display: none;
    }
}