/* Ace My Order - Custom CSS Styles */

/* Header styling */
.navbar-brand a {
    text-decoration: none;
    color: #000;
    font-size: 2rem;
    font-weight: bold;
}

.navbar-brand a:hover {
    color: #0056b3;
}

/* Item table */
.item-row img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
}

.item-row {
    transition: background-color 0.2s ease;
}

.item-row:hover {
    background-color: #f8f9fa;
}

/* Item detail page */
.item-detail {
    padding: 20px;
}

.item-cover {
    max-width: 300px;
    margin-bottom: 20px;
}

/* Search input */
#search-input {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    font-size: 16px;
}

#search-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Cart styling */
.cart-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.cart-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

#cart-badge {
    font-size: 0.75rem;
    min-width: 1.5rem;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

footer a {
    color: #0056b3;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.5);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

/* No cover placeholder */
.no-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background: #000;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 8px;
}

/* Table styling */
.table {
    margin-bottom: 2rem;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Card styling */
.card {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.card-body {
    padding: 1.5rem;
    line-height: 1.6;
}

/* Main container spacing */
main {
    min-height: 60vh;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand a {
        font-size: 1.5rem;
    }
    
    .item-row img {
        max-width: 60px;
        height: 80px;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
    
    main {
        margin-top: 0.5rem !important;
    }
}

/* Price formatting */
.price {
    font-weight: 600;
    color: #28a745;
}

/* Item title links */
.item-row a,
#cart-items a {
    color: #0056b3;
    text-decoration: none;
}

.item-row a:hover,
#cart-items a:hover {
    text-decoration: underline;
}

/* Badge styling */
.badge {
    font-weight: 600;
}

/* Form elements */
input[type="text"],
input[type="search"],
textarea {
    border-radius: 6px;
}

/* Utility classes */
.text-muted a {
    color: #0056b3 !important;
}
