
body {
    font-family: 'Georgia', serif; 
    margin: 0;
    padding: 0;
    background-color: #fdf8f4; 
    color: #332b21; 
    overflow-x: hidden; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.main-header {
    background: url('../img/Banner.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden; 
    padding-top: 45px;
}

.top-nav-bar {
    position: fixed; 
    top: 0;          
    width: 100%;    
    box-sizing: border-box; 
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    background-color: #4a3b30; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    min-height: 45px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: transparent; 
    padding: 0; 
    flex-grow: 0.5; 
    max-width: 450px;
    margin: 5px 0;
}

.search-box input {
    background-color: #4a3b30; 
    color: white; 
    border: 2px solid #ccc; 
    border-radius: 50px;
    outline: none;
    padding: 10px 20px; 
    width: 300px; 
    font-size: 1rem;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.2);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7); 
}

.search-box .fa-search {
    color: white; 
    position: relative;
    right: 40px;
    z-index: 10;
    cursor: pointer;
    font-size: 1.2rem;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    margin-left: 15px;
    opacity: 0.8;
}

.user-actions a:hover {
    opacity: 1;
}

.hero-banner {
    padding: 60px 0; 
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2); 
}

.hero-banner h1 {
    font-family: ''Garamond', serif'; 
    font-size: 9rem; 
    margin-bottom: 0;
    text-shadow: 2px 2px 4px #000;
}

.hero-banner p {
    font-size: 2.3rem;
    margin-top: 5px;
    letter-spacing: 8px; 
    text-shadow: 1px 1px 2px #000;
}

.section-intro-banner {
    background-color: #4a3b30; 
    height: 200px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    padding-bottom: 30px; 
    width: 100%; 
    text-align: center;
}

.section-title {
    color: #fdf8f4; 
    font-size: 2.2rem; 
    margin-bottom: 0; 
    padding-top: 0; 
    line-height: 1.2; 
}

.section-subtitle {
    color: #e0d9d4; 
    font-size: 1.1rem;
    margin-top: 5px; 
    margin-bottom: 0; 
}

.content-container {
    max-width: none; 
    width: 100%; 
    margin: 0; 
    padding: 0; 
}

.main-layout {
    display: flex;
    gap: 0; 
    border-top: none; 
    max-width: 95%; 
    margin: 0 auto; 
}

.sidebar-filters {
    width: 250px;
    min-width: 250px; 
    background-color: #f8f5f1; 
    padding: 20px;
    border-right: 1px solid #e0d9d4;
    box-shadow: 3px 0 8px rgba(0,0,0,0.05); 
}

.filter-block {
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ede8e3; 
}

.filter-block h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: bold;
    color: #4a3b30; 
}

.filter-block label {
    display: block; 
    margin-bottom: 7px;
    font-size: 0.95rem;
    color: #332b21;
    cursor: pointer;
}

.filter-block label:hover {
    color: #a1885f; 
}

.filter-block input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #a1885f; 
}

.more-link {
    display: block;
    text-align: left; 
    color: #a1885f; 
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

.more-link:hover {
    text-decoration: underline;
}

.price-range {
    border-bottom: none;
}

.price-inputs {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 15px;
    gap: 10px; 
}

.price-inputs input {
    width: 40%; 
    padding: 8px; 
    border: 1px solid #a1885f; 
    background-color: #fdf8f4;
    text-align: center;
    font-size: 0.9rem;
    color: #332b21;
}

.price-inputs span {
    font-size: 0.9rem;
    color: #4a3b30;
    margin: 0 5px; 
}

.search-button {
    width: 100%;
    padding: 10px;
    background-color: #4a3b30; 
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #332b21; 
}

.product-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; 
    padding: 25px;
}

.book-card {
    background-color: white;
    text-align: center;
    padding: 20px 15px; 
    border: 1px solid #f0e9e1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.book-card img {
    max-width: 100%;
    height: 220px; 
    width: auto;
    object-fit: contain; 
    margin-bottom: 12px;
}

.book-card h4 {
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    text-transform: uppercase;
    font-weight: 900; 
    color: #332b21;
}

.book-author {
    font-size: 0.8rem;
    color: #6e5328; 
    margin: 3px 0 10px 0;
}

.book-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a3b30; 
    margin-top: auto; 
}

.load-more {
    grid-column: 1 / -1; 
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.load-more a {
    color: #4a3b30;
    font-weight: bold;
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.1rem;
    border: 2px solid #4a3b30;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.load-more a:hover {
    background-color: #4a3b30;
    color: white;
}

.main-footer {
    background-color: #4a3b30; 
    color: #e0d9d4; 
    padding-top: 50px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-content {
    display: flex;
    justify-content: space-between; 
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto 30px; 
    padding: 0; 
    box-sizing: border-box; 
    flex-wrap: wrap; 
}

.footer-section {
    flex-basis: auto; 
    flex-grow: 1; 
    min-width: 200px; 
    margin-bottom: 30px;
    padding-right: 20px; 
    box-sizing: border-box; 
}

.footer-section.about {
    padding-left: 20px; 
}

.footer-section.social {
    text-align: right; 
    padding-right: 20px; 
    
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
}

.footer-section h3 {
    color: #fdf8f4; 
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: 2px solid #a1885f; 
    padding-bottom: 5px;
    display: inline-block;
}

.footer-section.social h3 {
    align-self: flex-end; 
    text-align: right;
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links a {
    color: #e0d9d4;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section.links a:hover {
    color: #a1885f; 
}

.contact-info span {
    display: block;
    margin-bottom: 10px;
}

.contact-info i {
    color: #a1885f; 
    margin-right: 10px;
}

.social-links {
    display: block;
}

.social-links a {
    color: #fdf8f4;
    font-size: 1.5rem;
    margin-left: 15px; 
    margin-right: 0; 
    transition: color 0.3s;
}

.social-links a:hover {
    color: #a1885f; 
}

.footer-bottom {
    background-color: #332b21; 
    color: #c4beb8;
    text-align: center;
    padding: 15px 0;
    font-size: 0.85rem;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.7); 
}

.modal-content {
    background-color: #fdf8f4;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 400px; 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
}

.modal-title {
    color: #4a3b30;
    font-size: 2rem;
    margin-bottom: 20px;
}

.close-btn {
    color: #4a3b30;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: #a1885f;
    text-decoration: none;
}

.login-form input[type="email"],
.login-form input[type="password"],
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.forgot-form input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 1rem;
}

.login-button {
    background-color: #a1885f; 
    color: white;
    padding: 10px 20px;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.login-button:hover {
    opacity: 1;
}

.forgot-password {
    font-size: 0.9rem;
    margin-top: 10px;
}

.forgot-password a, .register-link a, .login-link-toggle a {
    color: #a1885f;
    font-weight: bold;
}

.modal-divider {
    border: 0;
    height: 1px;
    background-color: #e0d9d4;
    margin: 20px 0;
}

.reports-controls {
    align-items: flex-end;
}

.reports-controls .filter-group {
    gap: 15px; 
}

.kpi-grid.detailed-metrics {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 30px;
}

.kpi-grid.detailed-metrics .kpi-card {
    border-left: none;
    text-align: center;
    display: block;
}

.kpi-grid.detailed-metrics .kpi-icon {
    display: none; 
}

.kpi-grid.detailed-metrics .kpi-value {
    font-size: 2.5rem;
    color: #332b21;
}

.kpi-grid.detailed-metrics .kpi-label {
    font-size: 1rem;
    color: #a1885f; 
    font-weight: bold;
}


.chart-container {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
    margin-bottom: 40px;
}

.chart-card {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-card h2 {
    font-size: 1.2rem;
    color: #4a3b30;
    border-bottom: 1px solid #e0d9d4;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 0;
}

.chart-placeholder {
    height: 300px;
    background-color: #f8f5f1; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5d4a3c;
    font-style: italic;
    font-size: 0.9rem;
}

@media (min-width: 1000px) {
    .chart-container {
        grid-template-columns: 1fr 1fr; 
    }
}