/**
 * Etkin Promosyon Admin CSS
 * Admin panel stilleri
 */

/* Genel Stiller */
.etkin-promosyon-wrap {
    max-width: 1200px;
}

.etkin-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.etkin-card h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Dashboard Stilleri */
.etkin-dashboard {
    margin-top: 20px;
}

.etkin-dashboard-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.etkin-dashboard-row .etkin-card {
    flex: 1;
    margin-bottom: 0;
}

/* API Durumu */
.etkin-card-api {
    border-left: 4px solid #00a32a;
}

.etkin-status {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.etkin-status-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.etkin-status-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.etkin-status .dashicons {
    margin-right: 8px;
    font-size: 18px;
}

.etkin-api-info p {
    margin: 8px 0;
    font-size: 14px;
}

/* Stok Durumu */
.etkin-card-stock {
    border-left: 4px solid #0073aa;
}

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

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

.etkin-stat-success {
    background: #d1e7dd;
    color: #0f5132;
}

.etkin-stat-error {
    background: #f8d7da;
    color: #842029;
}

.etkin-stat-warning {
    background: #fff3cd;
    color: #664d03;
}

.etkin-stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.etkin-stat-label {
    font-size: 12px;
    color: #666;
}

/* Zamanlanmış İşler */
.etkin-card-cron {
    border-left: 4px solid #f0ad4e;
}

.etkin-inactive {
    color: #999;
    font-style: italic;
}

/* Hızlı İşlemler */
.etkin-card-actions {
    border-left: 4px solid #5bc0de;
}

.etkin-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.etkin-quick-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Bilgilendirme Tablosu */
.etkin-card-info {
    border-left: 4px solid #6c757d;
}

.etkin-card-info table {
    margin-top: 15px;
}

.etkin-card-info th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Senkronizasyon Sayfası */
.etkin-sync-container {
    margin-top: 20px;
}

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

.etkin-stat-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.etkin-stat-card h3 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.etkin-stat-card .etkin-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.etkin-stat-card .etkin-stat-label {
    font-size: 12px;
    color: #666;
}

/* Senkronizasyon Butonları */
.etkin-sync-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.etkin-sync-buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    font-size: 14px;
    text-align: center;
    height: auto;
}

.etkin-sync-buttons .button .dashicons {
    font-size: 18px;
}

/* Progress Bar */
.etkin-sync-progress {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.etkin-progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.etkin-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-animation 2s infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.etkin-progress-text {
    text-align: center;
    font-weight: 500;
    color: #495057;
}

/* Sonuç Mesajları */
.etkin-sync-results {
    margin-top: 20px;
}

.etkin-success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #badbcc;
    margin: 10px 0;
}

.etkin-error {
    background: #f8d7da;
    color: #842029;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #f5c2c7;
    margin: 10px 0;
}

.etkin-warning {
    background: #fff3cd;
    color: #664d03;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ffecb5;
    margin: 10px 0;
}

.etkin-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #bee5eb;
    margin: 10px 0;
}

/* Otomatik Senkronizasyon */
.etkin-auto-sync-enabled {
    background: #d1e7dd;
    color: #0f5132;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #badbcc;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.etkin-auto-sync-disabled {
    background: #fff3cd;
    color: #664d03;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ffecb5;
    margin-bottom: 20px;
}

.etkin-auto-sync-disabled .dashicons {
    margin-right: 8px;
    font-size: 18px;
}

.etkin-status-active {
    background: #d1e7dd;
    color: #0f5132;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.etkin-status-inactive {
    background: #f8d7da;
    color: #842029;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

/* Cron Durumu */
.etkin-cron-working {
    background: #d1e7dd;
    color: #0f5132;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #badbcc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.etkin-cron-error {
    background: #f8d7da;
    color: #842029;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c2c7;
    margin-bottom: 15px;
}

.etkin-cron-error .dashicons {
    margin-right: 8px;
    font-size: 18px;
}

/* Ayarlar Sayfası */
.etkin-settings-container {
    margin-top: 20px;
}

.etkin-settings-container .etkin-card {
    margin-bottom: 30px;
}

.etkin-settings-container .form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    vertical-align: top;
}

.etkin-settings-container .form-table td {
    padding: 20px 10px;
}

.etkin-settings-container .description {
    margin-top: 5px;
    font-style: italic;
    color: #666;
}

/* Test Sonuçları */
.etkin-test-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.etkin-test-result .etkin-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.etkin-test-result .etkin-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.etkin-loading {
    color: #0073aa;
    font-style: italic;
}

/* Log Sayfası */
.etkin-logs-filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.etkin-logs-actions {
    margin-bottom: 20px;
}

.etkin-logs-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
}

.etkin-logs-table {
    margin: 0;
    border: none;
}

.etkin-logs-table th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.etkin-logs-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
}

.etkin-log-row:hover {
    background: #f8f9fa;
}

.etkin-log-date {
    font-family: monospace;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.etkin-log-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.etkin-log-badge-success {
    background: #d1e7dd;
    color: #0f5132;
}

.etkin-log-badge-error {
    background: #f8d7da;
    color: #842029;
}

.etkin-log-badge-warning {
    background: #fff3cd;
    color: #664d03;
}

.etkin-log-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.etkin-log-message {
    max-width: 400px;
    word-wrap: break-word;
}

.etkin-no-data {
    color: #999;
    font-style: italic;
}

.etkin-no-logs {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Pagination */
.etkin-pagination {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.etkin-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    color: #0073aa;
}

.etkin-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.etkin-pagination .page-numbers:hover {
    background: #f8f9fa;
}

/* Modal */
.etkin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.etkin-modal-content {
    background: #fff;
    border-radius: 4px;
    max-width: 80%;
    max-height: 80%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.etkin-modal-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.etkin-modal-header h3 {
    margin: 0;
    color: #23282d;
}

.etkin-modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.etkin-modal-close:hover {
    color: #333;
}

.etkin-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.etkin-modal-body pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .etkin-dashboard-row {
        flex-direction: column;
    }
    
    .etkin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .etkin-stats-row {
        grid-template-columns: 1fr;
    }
    
    .etkin-sync-buttons {
        grid-template-columns: 1fr;
    }
    
    .etkin-quick-actions {
        flex-direction: column;
    }
    
    .etkin-logs-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .etkin-modal-content {
        max-width: 95%;
        margin: 20px;
    }
}

/* Loading Animation */
.etkin-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.etkin-text-center { text-align: center; }
.etkin-text-right { text-align: right; }
.etkin-text-left { text-align: left; }
.etkin-mb-0 { margin-bottom: 0; }
.etkin-mb-1 { margin-bottom: 10px; }
.etkin-mb-2 { margin-bottom: 20px; }
.etkin-mt-0 { margin-top: 0; }
.etkin-mt-1 { margin-top: 10px; }

/* Progress Bar ve Notifications */
@import url('progress.css');

/* Bulk Operations Styles */
.etkin-bulk-container {
    max-width: 1200px;
}

.etkin-bulk-filters {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.etkin-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.etkin-filter-group {
    flex: 1;
    min-width: 200px;
}

.etkin-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.etkin-filter-group input,
.etkin-filter-group select,
.etkin-filter-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.etkin-bulk-actions {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.etkin-bulk-section {
    margin-bottom: 30px;
}

.etkin-bulk-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.etkin-bulk-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.etkin-bulk-buttons .button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.etkin-bulk-buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.etkin-bulk-results {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.etkin-results-table {
    overflow-x: auto;
}

.etkin-bulk-stats {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

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

.etkin-stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.etkin-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.etkin-stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Reports Styles */
.etkin-reports-container {
    max-width: 1400px;
}

.etkin-reports-filters {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.etkin-reports-dashboard {
    margin-bottom: 30px;
}

.etkin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.etkin-dashboard-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.etkin-card-header {
    background: #0073aa;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.etkin-card-header h3 {
    margin: 0;
    font-size: 16px;
}

.etkin-card-icon {
    font-size: 20px;
}

.etkin-card-content {
    padding: 20px;
}

.etkin-stat-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.etkin-chart-container {
    height: 150px;
    position: relative;
}

.etkin-detailed-reports {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.etkin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.etkin-tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.etkin-tab-button.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
    font-weight: 600;
}

.etkin-tab-button:hover {
    background: #f8f9fa;
}

.etkin-tab-panel {
    display: none;
}

.etkin-tab-panel.active {
    display: block;
}

.etkin-table-container {
    overflow-x: auto;
}

.etkin-custom-reports {
    max-width: 800px;
}

.etkin-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.etkin-form-group {
    flex: 1;
}

.etkin-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.etkin-form-group input,
.etkin-form-group select,
.etkin-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.etkin-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .etkin-filter-row {
        flex-direction: column;
    }
    
    .etkin-bulk-buttons {
        flex-direction: column;
    }
    
    .etkin-bulk-buttons .button {
        justify-content: center;
    }
    
    .etkin-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .etkin-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .etkin-tabs {
        flex-wrap: wrap;
    }
    
    .etkin-form-row {
        flex-direction: column;
    }
}

/* Animation Classes */
.etkin-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.etkin-slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.etkin-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading States */
.etkin-loading {
    position: relative;
    pointer-events: none;
}

.etkin-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.etkin-mt-2 { margin-top: 20px; }