* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
}

.info-box {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.error-box {
    background: #fdeaea;
    border-left: 4px solid #dc3545;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.error-box h3 {
    color: #dc3545;
    margin-bottom: 10px;
}

.error-box ul {
    margin-left: 20px;
    color: #721c24;
}

.error-box li {
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 0.9em;
}

.feeds-list {
    margin-bottom: 40px;
}

.feeds-list h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

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

.feed-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feed-card.error {
    border-color: #dc3545;
    background: #fdf7f7;
}

.feed-icon {
    font-size: 2em;
    margin-bottom: 15px;
}

.feed-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3em;
    word-break: break-word;
}

.feed-card p {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.update-time {
    font-size: 0.9em;
    color: #666;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 4px;
    font-family: monospace;
}

.error-text {
    color: #dc3545 !important;
    font-size: 0.85em;
    background: #fdeaea;
    padding: 5px;
    border-radius: 4px;
    margin-top: 5px !important;
}

.feed-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.rss-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease;
}

.rss-link:hover {
    background: #2980b9;
}

.copy-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

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

.update-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background 0.3s ease;
    display: inline-block;
}

.update-btn:hover {
    background: #218838;
}

.update-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#update-status {
    margin-left: 10px;
    font-size: 0.9em;
}

#update-status.success {
    color: #28a745;
}

#update-status.error {
    color: #dc3545;
}

.instructions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.instructions h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.instructions ol {
    margin-left: 20px;
    color: #555;
}

.instructions li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.system-info {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    border-left: 4px solid #6c757d;
}

.system-info h2 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.system-info p {
    margin-bottom: 10px;
    color: #495057;
}

.system-info a {
    color: #3498db;
    text-decoration: none;
}

.system-info a:hover {
    text-decoration: underline;
}

#health-status {
    color: #28a745;
    font-weight: bold;
}

#health-status.error {
    color: #dc3545;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

@media (max-width: 768px) {
    .feeds-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .container {
        padding: 10px;
    }
}