body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
}

h1 {
    color: #4dabf7;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="url"] {
    padding: 12px 16px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #2a2a2a;
    color: #e0e0e0;
}

input[type="url"]:focus {
    outline: none;
    border-color: #4dabf7;
}

button {
    background: #4dabf7;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3793dd;
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

/* Estilos para la biblioteca */
.library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.manhwa-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.manhwa-card:hover {
    transform: translateY(-5px);
}

.manhwa-title {
    color: #4dabf7;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.chapter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-item {
    margin-bottom: 8px;
    padding: 8px;
    background: #333;
    border-radius: 4px;
}

.chapter-link {
    display: block;
    padding: 12px 15px;
    background: #2a2a2a;
    border-radius: 6px;
    margin-bottom: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.chapter-link:hover {
    background-color: #333;
}

.chapter-item.read .chapter-link {
    background-color: #1a3a4a;
    border-left: 3px solid #4dabf7;
}

.chapter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #aaa;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.delete-btn:hover {
    background: #c0392b;
}

.mark-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-right: 5px;
}

.mark-btn:hover {
    background: #2980b9;
}

.flash-message {
    background-color: #2a2a2a;
    border-left: 4px solid #4dabf7;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #e0e0e0;
}

.error-message {
    background-color: #e03131;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}