/* Comics Collection Styles */

.comics-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.comics-header h2 {
    margin: 0;
    color: #333;
}

.btn-add {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn-add:hover {
    opacity: 0.9;
}

.comics-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.comics-table table {
    width: 100%;
    border-collapse: collapse;
}

.comics-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    color: #333;
}

.comics-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.comics-table tr:hover {
    background: #f9f9f9;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85em;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 5px;
    display: inline-block;
}

.btn-edit {
    background: #667eea;
    color: #ffffff;
}

.btn-edit:hover {
    background: #5568d3;
}

.btn-delete {
    background: #e74c3c;
    color: #ffffff;
}

.btn-delete:hover {
    background: #c0392b;
}

.comic-stats {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    color: #666;
}

.comic-stats p {
    margin: 0;
}

.no-comics {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-comics a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.no-comics a:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-container h2 {
    color: #333;
    margin-top: 0;
}

.comic-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-cancel {
    background: #999;
    color: #ffffff;
    text-decoration: none;
}

.btn-cancel:hover {
    background: #777;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
