/**
 * Taboola Web Push - Admin CSS
 * Styles for WordPress admin interface
 */

/* Header styles */
.taboola-admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.taboola-brand-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.taboola-brand-text h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.taboola-brand-text p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.taboola-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.taboola-stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.taboola-stat-box h3 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taboola-big-number {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1;
}

.taboola-stat-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0 0;
}

.taboola-status-enabled {
    color: #4CAF50;
}

.taboola-status-disabled {
    color: #f44336;
}

/* Content layout */
.taboola-admin-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.taboola-main-settings {
    flex: 1;
    min-width: 600px;
}

.taboola-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.taboola-sidebar-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.taboola-sidebar-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.taboola-sidebar-box p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.taboola-sidebar-box ul {
    margin: 0;
    padding-left: 20px;
}

.taboola-sidebar-box li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.taboola-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.taboola-promo h3 {
    color: white;
}

.taboola-promo p {
    color: rgba(255, 255, 255, 0.9);
}

.taboola-promo .button-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.taboola-promo .button-primary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Form styles */
.taboola-form-table {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.taboola-form-table .form-table {
    margin: 0;
}

.taboola-form-table .form-table th {
    font-weight: 600;
    color: #333;
    padding: 15px 20px 15px 0;
    vertical-align: top;
    width: 200px;
}

.taboola-form-table .form-table td {
    padding: 15px 0;
    vertical-align: top;
}

.taboola-form-table .form-table input[type="text"],
.taboola-form-table .form-table input[type="url"],
.taboola-form-table .form-table textarea {
    width: 100%;
    max-width: 400px;
}

.taboola-form-table .form-table textarea {
    min-height: 80px;
    resize: vertical;
}

.taboola-form-table .form-table .description {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

/* Button styles */
.taboola-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
}

.taboola-btn-primary {
    background: #667eea;
    color: white;
    border: 1px solid #667eea;
}

.taboola-btn-primary:hover {
    background: #5a6fd8;
    color: white;
}

.taboola-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.taboola-btn-secondary:hover {
    background: #e9ecef;
}

/* Notification styles */
.taboola-admin-notices {
    margin-bottom: 20px;
}

.taboola-admin-notice {
    position: relative;
    padding: 12px;
    margin: 0 0 15px 0;
    border-left: 4px solid #00a0d2;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.taboola-admin-notice.notice-success {
    border-left-color: #4CAF50;
}

.taboola-admin-notice.notice-error {
    border-left-color: #f44336;
}

.taboola-admin-notice.notice-warning {
    border-left-color: #ff9800;
}

.taboola-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taboola-status-badge.taboola-status-active {
    background: #e8f5e8;
    color: #4CAF50;
}

.taboola-status-badge.taboola-status-inactive {
    background: #ffebee;
    color: #f44336;
}

/* Empty state */
.taboola-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.taboola-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.taboola-empty-state h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.taboola-empty-state p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #666;
}

.taboola-empty-state ol {
    text-align: left;
    display: inline-block;
    margin: 0;
    padding-left: 20px;
}

.taboola-empty-state li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

/* Send form */
.taboola-send-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.taboola-send-form h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
}

.taboola-form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.taboola-form-actions .button {
    margin-right: 10px;
}

.button-hero {
    font-size: 16px;
    padding: 12px 24px;
    height: auto;
}

/* Templates */
.taboola-templates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.taboola-template-btn {
    width: 100%;
    text-align: left;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.taboola-template-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Modal styles */
.taboola-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.taboola-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.taboola-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.taboola-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.taboola-modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.taboola-modal-body {
    padding: 20px;
}

/* Notification preview */
.taboola-notification-preview {
    text-align: center;
}

.taboola-notification-mock {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.taboola-notification-icon img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
}

.taboola-notification-content {
    flex: 1;
    text-align: left;
}

.taboola-notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.taboola-notification-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 5px 0;
}

.taboola-notification-url {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.taboola-preview-note {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Character counter */
.character-counter {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.character-counter.warning {
    color: #ff9800;
}

/* Bulk actions */
.taboola-bulk-actions {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.taboola-bulk-actions h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.taboola-bulk-actions .button {
    margin-right: 10px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .taboola-admin-content {
        flex-direction: column;
    }
    
    .taboola-sidebar {
        width: 100%;
    }
    
    .taboola-main-settings {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .taboola-admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .taboola-brand-section {
        flex-direction: column;
    }
    
    .taboola-stats {
        justify-content: center;
    }
    
    .taboola-form-table .form-table th {
        width: auto;
        display: block;
        padding-bottom: 5px;
    }
    
    .taboola-form-table .form-table td {
        display: block;
        padding-top: 5px;
    }
    
    .taboola-notification-mock {
        flex-direction: column;
        text-align: center;
    }
} 