/* WP News Notifier Styles */

/* Notification Button */
#wp-news-notifier-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #0073aa;
    color: white;
}

#wp-news-notifier-btn:hover {
    background-color: #005a87;
}

#wp-news-notifier-btn.subscribed {
    background-color: #28a745;
}

#wp-news-notifier-btn.subscribed:hover {
    background-color: #218838;
}

#wp-news-notifier-btn.unsubscribed {
    background-color: #dc3545;
}

#wp-news-notifier-btn.unsubscribed:hover {
    background-color: #c82333;
}

/* Notification Toast */
.wp-news-notifier-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 15px;
    max-width: 300px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.wp-news-notifier-notification-content {
    margin: 0;
}

.wp-news-notifier-notification-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.wp-news-notifier-notification-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin Dashboard Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

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

.stat-number {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
}

.dashboard-actions {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.dashboard-actions h2 {
    margin-top: 0;
}

.dashboard-actions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-actions li {
    margin-bottom: 10px;
}

.dashboard-actions a {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 10px;
    text-decoration: none;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-error {
    background-color: #dc3545;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

/* Form Styles */
.form-table {
    width: 100%;
    margin: 20px 0;
}

.form-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.form-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.form-table textarea,
.form-table input[type="text"],
.form-table select {
    width: 100%;
    max-width: 500px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-table textarea {
    resize: vertical;
}

.description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .wp-news-notifier-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .form-table textarea,
    .form-table input[type="text"],
    .form-table select {
        max-width: 100%;
    }
}
