/* Admin Panel Styles */

.oxygen-admin-dashboard {
    margin-top: 20px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin: 0;
}

.admin-actions {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-actions h3 {
    margin: 0 0 15px 0;
    color: #23282d;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.action-buttons .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recent-tanks {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.recent-tanks h3 {
    margin: 0 0 15px 0;
    color: #23282d;
}

/* Report Styles */
.report-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.report-section h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid #0073aa;
}

.stat-item strong {
    display: block;
    font-size: 18px;
    color: #0073aa;
    margin-bottom: 5px;
}

/* Settings Styles */
.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
}

.form-table td {
    padding: 15px 10px;
}

.form-table input[type="number"],
.form-table input[type="email"] {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-table input[type="number"]:focus,
.form-table input[type="email"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.form-table input[type="checkbox"] {
    margin-right: 8px;
}

.form-table .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
    font-size: 13px;
}

/* Error States */
.form-table input.error {
    border-color: #dc3232;
    box-shadow: 0 0 0 1px #dc3232;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.notice {
    margin: 20px 0;
    padding: 12px 15px;
    border-radius: 4px;
    border-left: 4px solid;
}

.notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .button {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .form-table input[type="number"],
    .form-table input[type="email"] {
        width: 100%;
    }
}

/* Custom WordPress Admin Integration */
.wp-admin .oxygen-admin-dashboard {
    margin-top: 0;
}

.wp-admin .stat-card {
    border-color: #c3c4c7;
}

.wp-admin .admin-actions,
.wp-admin .recent-tanks {
    border-color: #c3c4c7;
}

/* Print Styles */
@media print {
    .action-buttons,
    .wp-admin-bar,
    .admin-menu {
        display: none !important;
    }
    
    .stat-card,
    .admin-actions,
    .recent-tanks {
        border: 1px solid #000;
        box-shadow: none;
        break-inside: avoid;
    }
    
    .stat-number {
        color: #000 !important;
    }
} 