body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #007bff;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
}

section {
    margin: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 0.75rem;
    text-align: left;
}

table th {
    background-color: #007bff;
    color: white;
}

.image-container {
    text-align: center;
}

.image-container img {
    width: 200px;
    height: auto;
    border: 1px solid #ccc;
    padding: 0.5rem;
    background-color: #fff;
}

.summary-table td {
    padding: 0.5rem;
}

.items-table .savings-row {
    color: red;
    font-weight: bold;
}

.items-table .net-row {
    font-weight: bold;
    background-color: #e9ecef;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #007bff;
    color: white;
}

.home-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
  }
  .home-btn:hover {
    background-color: #218838;
  }

  .action-btn {
    background-color: #133ea4;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
  }
  .action-btn:hover {
    background-color: #133ea4;
  }

  .navbar-custom {
    background-color: #5d9ad7;
    
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white;
}
.navbar-custom .nav-link:hover {
    color: #3498db;
}
.footer {
    background-color: #5d9ad7;
    color: white;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}
.main-content {
    margin-bottom: 80px; /* To prevent content from being hidden by footer */
    padding: 20px;
}
.active {
    background-color: #34495e;
    border-radius: 5px;
}

/* listall.html */
.table_fmt1 {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
  }
  .table_fmt1, .table_fmt1 th, .table_fmt1 td {
    border: 1px solid #ddd;
  }
  .table_fmt1 th, .table_fmt1 td {
    padding: 8px;
    text-align: left;
  }
  .table_fmt1 th {
    background-color: #007bff;
    color: white;
  }
  .table_fmt1 tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  .table_fmt1 tr:hover {
    background-color: #ddd;
    cursor: pointer;
  }
  .delete-btn {
    background-color: red;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
  }
  .delete-btn:hover {
    background-color: darkred;
  }
  .home-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
  }
  .home-btn:hover {
    background-color: #218838;
  }

  /* upload.html */
        /* Add these to your existing styles */
        .action-btn i {
            margin-right: 8px;
        }

        header i {
            margin-bottom: 15px;
        }

        .home-btn i {
            margin-right: 5px;
        }

        /* Add a nice hover effect for images */
        .image-container img {
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .image-container img:hover {
            border-color: #4CAF50;
            transform: scale(1.05);
        }

        /* Add some spacing between icons and text in headers */
        h2 i {
            margin-right: 10px;
            color: #008CBA;
        }

        /* Add a subtle animation to buttons */
        .action-btn {
            transition: all 0.3s ease;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        /* index.html */
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            margin: 0;
            padding: 40px 20px;
            min-height: 100vh;
        }
        .container {
          max-width: 100%;
          padding: 2px;
      }
        h1 {
            font-size: 36px;
            color: #2c3e50;
            text-align: center;
            margin-bottom: 30px;
            font-weight: 600;
        }
        .features {
           width: auto;
          height: auto;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            margin-bottom: 40px;
        }
        .feature-card {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
            color: inherit;
            display: block;
            cursor: pointer;
        }
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            background: #f0f2f5;
        }
        .feature-card h3 {
            color: #2c3e50;
            margin: 10px 0;
        }
        .feature-card p {
            color: #666;
            margin: 0;
        }
        .feature-icon {
            width: 120px;
            height: 120px;
            margin-bottom: 15px;
        }
        .button-container {
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        .btn {
            padding: 15px 30px;
            font-size: 18px;
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        .btn-upload {
            background-color: #4CAF50;
        }
        .btn-list {
            background-color: #2196F3;
        }
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        .description {
            text-align: center;
            color: #666;
            margin-bottom: 30px;
        }
    /* listall.html */
    .sticky-header {
        position: sticky;
        top: 0;
        background-color: white; /* Adjust the background color as needed */
        z-index: 1;
      }
      .chart-container {
        display: flex; /* Enable side-by-side layout */
        justify-content: space-around; /* Space out the charts evenly */
        align-items: flex-start; /* Align charts to the top */
        flex-wrap: wrap; /* Wrap if necessary for smaller screens */
        gap: 20px; /* Add space between charts */
    }
    .chart {
        flex: 1; /* Each chart takes equal width */
        max-width: 48%; /* Prevent overflow, allowing some margin */
        text-align: center; /* Center the images */
    }
    img {
        max-width: 100%; /* Ensure images are responsive */
        height: auto; /* Keep image aspect ratio */
    }

    /* add on 30Jan */
    @media (max-width: 768px) {
        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
    }
    
    table {
        width: 100%;
        table-layout: auto; /* This ensures the table resizes based on content */
    }
    
    th, td {
        padding: 8px; /* Adjust the padding as needed */
    }
    
   
