/* AI RSS Rewriter - Dashboard Styles */

/* Feed Management Styles */
.feed-management {
    margin-bottom: 2rem;
}

.feed-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.feed-menu {
    position: relative;
    display: inline-block;
}

.feed-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 150px;
}

.feed-menu-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.feed-menu-dropdown a:hover {
    background: #f5f5f5;
}

.feed-menu-dropdown a:last-child {
    border-bottom: none;
}

.edit-form {
    display: none;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.edit-form .form-group {
    margin-bottom: 1rem;
}

.edit-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.edit-form input,
.edit-form select,
.edit-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.modal-close:hover {
    color: #000;
}

/* Statistics Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: .75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.summary-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}


/* Log Container */
.log-container {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: .75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.log-container textarea {
    width: 100%;
    height: 400px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    resize: vertical;
}

.log-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feed-actions {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
}
