/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
}

/* Nav Icons styles */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icons a {
    color: #2c3e50;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-icons a:hover {
    color: #3498db;
}

.nav-icons i {
    font-size: 1.2rem;
}

/* Search icon specific styles */
.search-icon {
    margin-right: 0.5rem;
}

/* Cart icon specific styles */
.cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon {
    padding: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    min-width: 18px;
    text-align: center;
}

/* User icon specific styles */
.user-icon {
    margin-left: 0.5rem;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
        url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-bar {
    margin-top: 2rem;
}

.search-bar input {
    padding: 1rem;
    width: 60%;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-bar button {
    padding: 1rem 2rem;
    background-color: #3498db;
    border: none;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

/* Featured Books section */
.featured-books {
    padding: 4rem 5%;
}

.featured-books h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.book-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.price {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 1rem;
}

.add-to-cart {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #2980b9;
}

/* Categories section */
.categories {
    background-color: #f9f9f9;
    padding: 4rem 5%;
}

.categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Footer styles */
footer {
    background-color: #1f1f2e;
    color: #f0f0f0;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.newsletter-form input {
    padding: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .search-bar input {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 1rem;
    }

    .search-bar button {
        width: 100%;
        border-radius: 4px;
    }
}

/* Enhanced Categories Page Styles */
.categories-page {
    padding-top: 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.category-header {
    background-color: #f7faff;
    padding: 5rem 2rem;
    text-align: center;
    color: #222831;
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.category-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #444;
}

/* Highlights under the header */
.category-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-box {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    gap: 15px;
    align-items: center;
}

.highlight-box:hover {
    transform: translateY(-5px);
}

.highlight-box i {
    font-size: 1rem;
    color: #00adb5;
}

.highlight-box h3 {

    color: #393e46;
    font-size: 1rem;
}

.category-list {
    padding: 0 5% 3rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.2s ease;
}

.category-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 1rem;
}

.category-section h2 i {
    color: #3498db;
    font-size: 1.75rem;
}

.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.subcategory-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.subcategory-card:hover {
    transform: translateY(-2px);
}

.subcategory-card h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subcategory-card h3 i {
    color: #3498db;
    font-size: 1rem;
}

.subcategory-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subcategory-card ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subcategory-card ul li a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.subcategory-card ul li a:hover {
    color: #3498db;
}

.subcategory-card .book-count {
    font-size: 0.875rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: auto;
}

/* Enhanced New Releases Page Styles */

.new-releases-page {
    padding-top: 80px;
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.new-releases-header {
    background: linear-gradient(to right, #e8f0ff, #fff);
    text-align: center;
    padding: 5rem 2rem;
    margin-bottom: 2rem;
}

.new-releases-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.new-releases-header p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.release-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    color: #00adb5;
    font-weight: bold;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: #666;
}

.release-filters {
    margin-bottom: 2rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    min-width: 150px;
    cursor: pointer;
}

.filter-select:hover {
    border-color: #666;
}

.new-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.book-card.new-release {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.release-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff4757;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.release-badge.pre-order {
    background: #2ed573;
}

.book-card.new-release img {
    width: 180px;
    height: 270px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-card.new-release h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #2c3e50;
    line-height: 1.4;
    white-space: nowrap;               
    overflow: hidden;                  
    text-overflow: ellipsis;           
    width: 100%;                      
    display: block
}

.book-card.new-release .author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.book-card.new-release .release-date {
    color: #888;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-card.new-release .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.book-card.new-release .add-to-cart,
.book-card.new-release .pre-order {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.book-card.new-release .add-to-cart {
    background-color: #3498db;
    color: white;
}

.book-card.new-release .pre-order {
    background-color: #2ed573;
    color: white;
}

.book-card.new-release .add-to-cart:hover {
    background-color: #2980b9;
}

.book-card.new-release .pre-order:hover {
    background-color: #28c066;
}

/* Responsive Design */
@media (max-width: 768px) {
    .new-releases-page {
        padding: 1rem;
    }

    .category-header {
        padding: 1rem 0;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .new-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .book-card.new-release img {
        width: 150px;
        height: 225px;
    }
}

/* Enhanced Contact Page Styles */
.contact-page {
    padding-top: 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.contact-header {
    background: linear-gradient(to right, #e8f0ff, #fff);
    text-align: center;
    padding: 5rem 2rem;
    margin-bottom: 2rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-content {
    padding: 0 5% 3rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-card i {
    font-size: 2.5rem;
    color: #00adb5;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.contact-card:hover i {
    transform: scale(1.1);
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #6c757d;
    margin: 0;
}

.contact-card a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: #2980b9;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Responsive Design Updates */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {

    .category-header h1,
    .contact-header h1,
    .bestseller-header h1 {
        font-size: 2rem;
    }

    .filter-options {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .new-books-grid,
    .bestseller-grid,
    .category-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 1rem 2rem;
    }

    .contact-content {
        padding: 0 1rem 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {

    .category-header,
    .contact-header,
    .bestseller-header {
        padding: 3rem 1rem;
    }

    .category-section,
    .contact-card {
        padding: 1.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.modal-content h2{
    text-align: center;
}
.modal-content {
    position: relative;
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

.auth-form {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.auth-form .form-group {
    display: grid;
    gap: 0.5rem;
}

.auth-form label {
    color: #2c3e50;
    font-weight: bold;
}

.auth-form input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.auth-form input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.auth-form .submit-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.auth-form .submit-button:hover {
    background-color: #2980b9;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.form-footer a {
    color: #3498db;
    text-decoration: none;
}

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

/* Show modal animation */
.modal.show {
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive design for modals */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

/* Shopping Cart Modal Styles */
.cart-content {
    max-width: 600px;
    margin: 10% auto;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin: 1.5rem 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    display: grid;
    gap: 0.5rem;
}

.cart-item-title {
    font-weight: bold;
    color: #2c3e50;
}

.cart-item-author {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #666;
}

.quantity-btn:hover {
    background-color: #f8f9fa;
}

.cart-item-remove {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-summary {
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.empty-cart-message {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* Cart Dropdown Styles */
.cart-wrapper {
    position: relative;
}

.cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 1000;
    margin-top: 0.5rem;
}

.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background-color: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.cart-dropdown h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    display: grid;
    gap: 0.3rem;
}

.cart-item-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9rem;
}

.cart-item-author {
    color: #666;
    font-size: 0.8rem;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.quantity-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    color: #666;
}

.quantity-btn:hover {
    background-color: #f8f9fa;
}

.cart-item-remove {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    font-size: 0.9rem;
}

.cart-summary {
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.empty-cart-message {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.empty-cart-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ddd;
}

.empty-cart-message p {
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Update existing cart icon styles */
.cart-icon {
    position: relative;
    padding: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    min-width: 18px;
    text-align: center;
}

/* Checkout Page Styles */
.checkout-page {
    padding: 120px 5% 4rem;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Progress Bar */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.progress-step i {
    font-size: 1.5rem;
}

.progress-step.active {
    color: #3498db;
}

/* Checkout Form */
.checkout-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #2c3e50;
    font-weight: bold;
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

/* Order Summary */
.order-summary {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.order-items {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.order-item img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.order-item-details {
    display: grid;
    gap: 0.3rem;
}

.order-item-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9rem;
}

.order-item-price {
    color: #e74c3c;
    font-weight: bold;
}

.order-totals {
    display: grid;
    gap: 1rem;
}

.order-totals>div {
    display: flex;
    justify-content: space-between;
    color: #666;
}

.order-totals .total {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

/* Responsive Design */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-progress {
        padding: 0.8rem;
    }

    .progress-step span {
        font-size: 0.8rem;
    }
}

/* Book Detail Page Styles */
.book-detail-page {
    padding-top: 70px;
    background-color: #f8f9fa;
}

.book-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.book-detail-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.book-main-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .book-main-info {
        grid-template-columns: 1fr;
    }
}

.book-image {
    width: 100%;
    max-width: 300px;
}

.book-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.book-info h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.book-author {
    color: #666;
    margin-bottom: 1rem;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #f1c40f;
}

.rating-count {
    color: #666;
}

.book-price {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    margin-right: 1rem;
}

.original-price {
    color: #666;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.discount {
    background-color: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.book-availability {
    color: #27ae60;
    margin-bottom: 1.5rem;
}

.book-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.quantity-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0 0.5rem;
}

.quantity-btn:hover {
    color: #3498db;
}

.add-to-cart-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background-color: #2980b9;
}

.wishlist-btn {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.wishlist-btn:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

/* Tabs Styles */
.book-details-tabs {
    margin-top: 2rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
    position: relative;
}

.tab-btn.active {
    color: #3498db;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.book-details-table {
    width: 100%;
    border-collapse: collapse;
}

.book-details-table th,
.book-details-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.book-details-table th {
    width: 200px;
    color: #666;
}

/* Reviews Section */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.overall-rating {
    text-align: center;
}

.overall-rating h3 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.rating-bars {
    display: grid;
    gap: 0.5rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background-color: #f1c40f;
}

/* Related Books */
.related-books {
    margin-top: 2rem;
}

.related-books h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.related-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* New Admin Dashboard Styles */
.admin-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: none;
}

.menu-toggle:hover {
    background: #f1f3f5;
}

.admin-navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-navbar .logo h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.admin-profile:hover {
    background: #f8f9fa;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#adminEmail {
    color: #2c3e50;
    font-weight: 500;
}

.logout-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn i {
    font-size: 1.1rem;
}

.logout-btn:hover {
    color: #e74c3c;
    background: #fee2e2;
}

.dashboard-wrapper {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    transition: all 0.3s ease;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 900;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    background: #f5f6fa;
    min-height: calc(100vh - 60px);
    overflow-x: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.date-filter select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%232c3e50' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.date-filter select:focus {
    outline: none;
    border-color: #2196F3;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    color: #4CAF50;
}

.stat-change span {
    color: #666;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.chart-card canvas {
    width: 100% !important;
    height: 300px !important;
}

.recent-activity {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background: #f1f3f5;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 1.25rem;
    color: white;
}

.activity-icon.order {
    background: #2196F3;
}

.activity-icon.user {
    background: #4CAF50;
}

.activity-icon.inventory {
    background: #FF9800;
}

.activity-details {
    flex: 1;
}

.activity-details p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

.activity-details span {
    font-size: 0.875rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-card canvas {
        height: 250px !important;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .admin-navbar {
        padding: 0 1rem;
    }

    .admin-navbar .logo h1 {
        font-size: 1.25rem;
    }

    #adminEmail {
        display: none;
    }

    .admin-profile {
        gap: 0.75rem;
    }

    .admin-avatar {
        width: 36px;
        height: 36px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon i {
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .chart-card {
        padding: 1rem;
    }

    .chart-card canvas {
        height: 200px !important;
    }

    .recent-activity {
        padding: 1rem;
    }

    .activity-item {
        padding: 0.75rem;
    }

    .activity-icon {
        width: 32px;
        height: 32px;
    }

    .activity-icon i {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .date-filter select {
        width: 100%;
    }
}

/* Sidebar Navigation Styles */
.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    transition: all 0.3s ease;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 900;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.sidebar-item span {
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
    color: white;
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
}

.sidebar-item.active i {
    color: #3498db;
}

.sidebar-item .badge {
    position: absolute;
    right: 1.5rem;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }
}

/* Management Sections Styles */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
    overflow: hidden;
}

.admin-table thead {
    background: #f8f9fa;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 2px solid #e9ecef;
}

.admin-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
    font-size: 0.9375rem;
}

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

.admin-table .status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

.status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.action-btn:hover {
    background: #e9ecef;
}

.action-btn.view-btn:hover {
    color: #3498db;
}

.action-btn.edit-btn:hover {
    color: #2ecc71;
}

.action-btn.delete-btn:hover {
    color: #e74c3c;
}

.action-btn.restock-btn:hover {
    color: #f39c12;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9375rem;
}

.search-bar button {
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-bar button:hover {
    background: #2980b9;
}

/* Finance Section Styles */
.finance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.finance-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.finance-card h3 {
    color: #6c757d;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.finance-card .amount {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.finance-card .period {
    color: #6c757d;
    font-size: 0.875rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

/* Inventory Status Indicators */
.stock-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.stock-status.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-status.low-stock {
    background: #fff3cd;
    color: #856404;
}

.stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 768px) {
    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .finance-cards {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar button {
        width: 100%;
    }
}

/* Enhanced Finance Section Styles */
.finance-header-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.finance-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.finance-card:hover {
    transform: translateY(-2px);
}

.finance-card h3 {
    color: #6c757d;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.finance-card h3 i {
    color: #3498db;
}

.finance-card .amount {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.finance-card .amount .trend {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
}

.finance-card .amount .trend.up {
    background: #d4edda;
    color: #155724;
}

.finance-card .amount .trend.down {
    background: #f8d7da;
    color: #721c24;
}

.finance-card .period {
    color: #6c757d;
    font-size: 0.875rem;
}

.finance-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.revenue-chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.revenue-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.revenue-chart-header h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.top-products {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-products h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-list {
    display: grid;
    gap: 1rem;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.product-item:hover {
    background: #f8f9fa;
}

.product-rank {
    width: 24px;
    height: 24px;
    background: #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #2c3e50;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.product-sales {
    font-size: 0.875rem;
    color: #6c757d;
}

.product-revenue {
    font-weight: 500;
    color: #2c3e50;
}

.transactions-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.transactions-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transactions-header h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.transaction-filters {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #2c3e50;
    background: white;
    cursor: pointer;
}

.transaction-type {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.transaction-type.sale {
    background: #d4edda;
    color: #155724;
}

.transaction-type.refund {
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 1024px) {
    .finance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .finance-header-cards {
        grid-template-columns: 1fr;
    }

    .transaction-filters {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }
}

/* Contact Quick Links */
.contact-quick-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #393e46;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link i {
    color: #00adb5;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Contact Cards Enhancements */
.contact-card a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: #2980b9;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.status-badge.online {
    background: #d4edda;
    color: #155724;
}

.response-time {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.map-link:hover {
    background: #e9ecef;
}

/* Enhanced Form Styles */
.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header p {
    color: #666;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-label span {
    color: #666;
    font-size: 0.9375rem;
}

.char-count {
    font-size: 0.875rem;
    color: #666;
    text-align: right;
    margin-top: 0.5rem;
}

.char-count.error {
    color: #dc3545;
}

/* Enhanced FAQ Styles */
.faq-section {
    padding: 4rem 5%;
    background: white;
    margin-top: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 1rem auto 0;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.faq-question i {
    color: #666;
    transition: transform 0.2s ease;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    margin: 0 0 1rem;
}

.faq-answer ul {
    margin: 0;
    padding-left: 1.5rem;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
}

.faq-item.active .faq-question {
    background: #f1f7fe;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.faq-footer {
    text-align: center;
    margin-top: 3rem;
}

.faq-footer p {
    color: #666;
    margin-bottom: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-quick-links {
        flex-direction: column;
        gap: 1rem;
    }

    .quick-link {
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-answer {
        padding: 1rem;
    }
}