/* Ümumi stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Kartlar */
.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Formlar */
.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Düymələr */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2, #357ae8);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357ae8, #2a65c4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(53, 122, 232, 0.3);
}

.btn-search {
    background: linear-gradient(135deg, #34c759, #2db34a);
    color: white;
}

.btn-search:hover {
    background: linear-gradient(135deg, #2db34a, #269c3f);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 179, 74, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-edit {
    background: #ffc107;
    color: #212529;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-edit:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.actions {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Cədvəl */
.book-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.book-table thead {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.book-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.book-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.book-table tbody tr {
    transition: background 0.3s;
}

.book-table tbody tr:hover {
    background: #f8f9fa;
}

.actions-cell {
    display: flex;
    gap: 10px;
}

/* PDF linki */
.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.pdf-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Bildirişlər */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #6c757d;
    border-top: 1px solid #eee;
}

/* Responsivlik */
@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .book-table {
        display: block;
        overflow-x: auto;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .actions-cell {
        flex-direction: column;
    }
}