* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: #333;
}

header {
    background-color: #5a41dc;
    padding: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.admin {
    color: white;
    font-size: 1rem;
}

.hero {
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 2rem;
    color: #333;
    font-weight: bold;
}

.hero p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.feature {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 2rem;
    color: #5a41dc;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
    font-size: 0.9rem;
}


.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;  /* Increased padding */
    background: linear-gradient(to bottom, #5a41dc0d, transparent);
}

.features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex-wrap: wrap;  /* Added for responsiveness */
}

.feature {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(90, 65, 220, 0.1);  /* Improved shadow */
    width: 250px;  /* Slightly wider */
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(90, 65, 220, 0.15);
}

/* Add media queries for responsiveness */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .features {
        gap: 2rem;
    }
    
    .feature {
        width: 100%;
        max-width: 300px;
    }
}
.cta-button {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background-color: #5a41dc;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #4832b8;
}

footer {
    background-color: #5a41dc;
    color: white;
    padding: 1.5rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
} 


.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(90, 65, 220, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(90, 65, 220, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.3rem;
    color: #5a41dc;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-button {
    padding: 0.6rem 1.2rem;
    background-color: #5a41dc;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.product-button:hover {
    background-color: #4832b8;
}

@media (max-width: 768px) {
    .products {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }
}


.contact {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(90, 65, 220, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5a41dc;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: #5a41dc;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: #4832b8;
}

.contact-info {
    margin-top: 2rem;
    text-align: center;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.contact-item i {
    color: #5a41dc;
}

@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Product List Styles */
.product-list {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.product-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-controls input[type="search"] {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
}

.add-product {
    background-color: #5a41dc;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 4px 15px rgba(90, 65, 220, 0.1);
}

.product-table th,
.product-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.product-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Billing Page Styles */
.billing-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.billing-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.billing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(90, 65, 220, 0.1);
}

.summary-card h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.summary-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5a41dc;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 4px 15px rgba(90, 65, 220, 0.1);
}

/* Contact Page Styles */
.contact-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(90, 65, 220, 0.1);
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-details p {
    margin-bottom: 1rem;
}

.business-hours {
    margin-top: 1.5rem;
}

/* Button Styles */
.edit-btn, .delete-btn, .view-btn, .print-btn, .new-invoice, .submit-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.edit-btn, .view-btn {
    background-color: #5a41dc;
    color: white;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.print-btn {
    background-color: #28a745;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .billing-summary {
        grid-template-columns: 1fr;
    }
    
    .product-controls, .billing-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-controls input[type="search"] {
        width: 100%;
    }
}