/* Reset și setări de bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Titlu principal */
h1 {
    text-align: center;
    margin: 30px 0;
    color: #2c3e50;
    font-size: 2.5rem;
}

/* Secțiunea cu cărțile */
.books-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.books-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.book-cover {
    flex-shrink: 0;
}

.book-cover img {
    width: 80px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.book-details {
    flex-grow: 1;
}

.book-details h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.isbn {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.quantity-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.quantity-price label {
    font-weight: bold;
}

.quantity-price input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.price {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
}

.more-info {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.more-info:hover {
    text-decoration: underline;
}

/* Secțiunea total */
.total-section {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.shipping-info {
    margin-bottom: 15px;
}

.total-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
}

.total-input {
    width: 100px;
    padding: 8px;
    border: 2px solid #e74c3c;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    background-color: white;
}

/* Formularul de date personale */
.customer-details {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.customer-details h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.business-section {
    border-top: 2px solid #ecf0f1;
    padding-top: 30px;
    margin-top: 30px;
}

.business-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

/* Butoane */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #bdc3c7);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #7f8c8d, #95a5a6);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
        margin: 20px 0;
    }
    
    .books-section, .customer-details {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .book-item {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .book-cover img {
        width: 120px;
    }
    
    .quantity-price {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .total-amount {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 200px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .books-section, .customer-details {
        padding: 15px 10px;
    }
    
    .book-cover img {
        width: 100px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .books-section h2, .customer-details h2 {
        font-size: 1.5rem;
    }
}