body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav {
    background-color: #2a3b4c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.site-name {
    font-size: 20px;
    font-weight: 600;
}

ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

ul li {
    margin: 0 10px;
}

ul li a, #auth-button {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

#auth-button {
    background-color: #ff9800;
    border: none;
    cursor: pointer;
}

ul li a:hover, #auth-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}









/* Main Content Section */
main {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#info-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.info-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
    height: 75vh; /* Reduced height */
}

.info-text {
    width: 66%; /* 2/3 of row */
    padding: 20px;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-text h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2a3b4c; /* Dark blue */
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 15px;
    width: 100%;
}

.info-card {
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.info-card:hover {
    transform: scale(1.05);
}

/* Color Themes for Cards */
.card-blue { background-color: #007bff; }      /* Blue */
.card-green { background-color: #28a745; }     /* Green */
.card-orange { background-color: #fd7e14; }    /* Orange */
.card-red { background-color: #dc3545; }       /* Red */
.card-purple { background-color: #6f42c1; }    /* Purple */
.card-teal { background-color: #20c997; }      /* Teal */

@media (max-width: 992px) {
    .info-container {
        flex-direction: column;
        height: auto;
    }
    .info-text {
        width: 100%;
    }
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}

.info-image {
    width: 33%; /* 1/3 of row */
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    position: relative;
    max-height: 55vh; /* Reduced height */
    z-index: 1000;
}

.carousel img {
    max-width: 40vw;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 10px;
    display: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 1001;
}

.carousel img.active {
    display: block;
    opacity: 1;
}

/* Image Switching Every 8 Seconds */
@keyframes fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.carousel img {
    animation: fade 1s ease-in-out;
}





/* Footer Section Styles */
footer {
    background-color: #2a3b4c;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.footer-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.footer-name {
    font-size: 24px;
    font-weight: bold;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    padding: 20px;
    text-align: center;
    min-width: 200px;
}

.footer-section.legal ul {
    list-style: none;
    padding: 0;
}

.footer-section.legal ul li {
    margin: 5px 0;
}

.footer-section.legal ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section.legal ul li a:hover {
    color: #f1c40f;
}

.footer-divider {
    border: 0;
    height: 1px;
    background-color: white;
    width: 100%;
    margin: 20px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
}




/*Clients Styling*/
.clients-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 70vh;
}

.clients-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #2a3b4c;
    margin-bottom: 15px;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.clients-table thead {
    background-color: #2a3b4c;
    color: white;
}

.clients-table th, .clients-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.clients-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.clients-table tbody tr:hover {
    background-color: #e2e8f0;
}

.error-message, .no-data-message {
    text-align: center;
    font-size: 18px;
    color: red;
    margin-top: 20px;
}




/* Products Styling Section */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    justify-content: center;
}

.product-card {
    background-color: #2a3b4c;
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ensure no extra space */
    height: 320px; /* Reduced height */
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 190px; /* Increased by 10px */
    object-fit: cover;
}

.product-details {
    padding: 10px; /* Less padding to reduce empty space */
    flex-grow: 1;
}

.product-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-price {
    font-size: 0.9rem;
    color: #f0a500;
    margin: 2px 0;
}

.product-stock {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Ensure the container has a scrollable height of around 70vh */
.products-container {
    min-height: 70vh;
    overflow-y: auto;
    padding-bottom: 20px;
}



/* Tasks Styling Section */

/* General styling for the task section */
.tasks-heading {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Container for task cards */
.tasks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive 3-column layout */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Task card styling */
.task-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.task-card:hover {
    transform: scale(1.02);
}

/* Task title */
.task-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

/* Task description */
.task-card p {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #555;
}

/* Status label */
.task-status {
    font-weight: bold;
}

/* Different status styles */
.status-unassigned {
    border-left: 5px solid #ff4d4d; /* Red */
    background: #ffe6e6;
}

.status-assigned {
    border-left: 5px solid #ffa500; /* Orange */
    background: #fff3e0;
}

.status-incomplete {
    border-left: 5px solid #007bff; /* Blue */
    background: #e6f2ff;
}

.status-complete {
    border-left: 5px solid #28a745; /* Green */
    background: #e6ffe6;
}

/* Ensure the container has a defined height with scrolling */
.tasks-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Sales Styling Section */

.sales-table-container {
    width: 100%;
    overflow-x: auto;
    max-height: 70vh;
    padding: 10px;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.sales-table thead {
    background-color: #2a3b4c;
    color: white;
    font-weight: bold;
}

.sales-table th, .sales-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.sales-table tbody tr:hover {
    background-color: rgba(42, 59, 76, 0.1);
}

.sales-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.sales-table th {
    position: sticky;
    top: 0;
}

@media (max-width: 768px) {
    .sales-table th, .sales-table td {
        padding: 8px;
        font-size: 14px;
    }
}


/* Admin Account Styling Section */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
    text-align: left;
    background-color: #f9f9f9;
}

.user-table th, .user-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.user-table th {
    background-color: #2a3b4c;
    color: white;
}

.active-true {
    background-color: green;
    color: white;
    text-align: center;
    font-weight: bold;
}

.active-false {
    background-color: red;
    color: white;
    text-align: center;
    font-weight: bold;
}

.user-table button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.user-table button:hover {
    background-color: #c9302c;
}


/* terms styling section */
.dynamic-content {
    font-family: Arial, sans-serif;
    color: #2a3b4c;
    padding: 20px;
    line-height: 1.6;
}

.company-logo {
    display: block;
    max-width: 150px;
    margin: 20px auto;
}
