body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.invoice-container {
    width: 70%;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #000;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    background-color: #f8f8f8;
    padding: 20px;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header h1 {
    font-size: 28px;
    color: #4CAF50;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
}

header p {
    font-size: 16px;
    color: #555;
    margin: 5px 0;
    font-family: 'Verdana', sans-serif;
}

header p:first-of-type {
    font-weight: bold;
    font-size: 18px;
}

header p:last-of-type {
    font-weight: bold;
    color: #333;
}

h1 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    display: inline-block;
    padding-bottom: 5px;
}

.party-details {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
}

.party-details .left,
.party-details .right {
    width: 48%;
}

.party-details p {
    margin: 10px 0;
}

.party-details label {
    font-weight: bold;
    margin-right: 10px;
    color: #555;
}

.party-details input[type="text"],
.party-details input[type="date"] {
    width: calc(100% - 110px); /* Adjust input width to fit nicely with label */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.party-details input[type="text"]:focus,
.party-details input[type="date"]:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}

.invoice-details {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.invoice-details .left {
    display: flex;
    align-items: center;
}

.invoice-details p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

.invoice-details input[type="text"] {
    width: 200px; /* Adjust the width as needed */
    padding: 8px;
    margin-left: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.invoice-details input[type="text"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    outline: none;
}

.button-container {
    text-align: right;
    margin: 20px 0;
}

.add-item-button,
#addItemButton {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-item-button {
    background-color: #007bff;
}

.add-item-button:hover {
    background-color: #0056b3;
}

#addItemButton {
    background-color: #4CAF50;
    float: right;
}

#addItemButton:hover {
    background-color: #45a049;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.items-table th,
.items-table td {
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.items-table input[type="text"] {
    width: 80%;
    height: 30px;
    padding: 5px;
    box-sizing: border-box;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.items-table tfoot {
    border-top: 2px solid #000;
}

.items-table tfoot td {
    padding: 10px;
    text-align: right;
}

.items-table tfoot input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 5px;
}

.items-table tbody tr:last-child {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.summary-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.left-summary,
.right-summary {
    width: 45%;
}

.vertical-line {
    width: 2px;
    background-color: #ddd;
    margin: 0 20px;
}

.summary-section p {
    margin: 10px 0;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    outline: none;
}

#calculateButton {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#calculateButton:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#calculateButton:focus {
    outline: none;
}

#PrintButton {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color:green;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#PrintButton:hover {
    background-color:green;
    transform: scale(1.05);
}

#PrintButton:focus {
    outline: none;
}


#addItemButton {
    margin-bottom: 20px; /* Adjust the value as needed */
    padding: 8px 16px; /* Optional: add some padding for better button appearance */
    background-color: green; /* Optional: add a background color */
    color: white; /* Optional: change text color */
    border: none; /* Optional: remove the default border */
    border-radius: 4px; /* Optional: add rounded corners */
    cursor: pointer; /* Optional: change the cursor to a pointer */
}

/* Existing styles above */

/* Styling for the specified fields */
input[name="itemValue"],
input[name="taxableValue"],
input[name="totalRs"],
input[name="cgst"],
input[name="sgst"],
input[name="igst"],
input[name="grandTotal"],
input[name="payableAmount"],
input[name="dueAmount"],
input[name="payableAmountInWords"] {
    background-color: #f0f0f0; /* Set the background color to #f0f0f0 */
    padding: 8px; /* Add padding for consistency */
    border: 1px solid #ccc; /* Optional: add a border */
    border-radius: 4px; /* Optional: add rounded corners */
    font-size: 14px; /* Adjust the font size if needed */
    color: #333; /* Optional: set the text color */
    box-sizing: border-box; /* Ensure proper box sizing */
}


.vertical-line {
    border-right: 2px solid black;
    padding-right: 10px; /* Adjust padding as needed */
  }


/* Existing styles above */

/* Styling for the Delete button */
.delete-button {
    background-color: #ff4d4d; /* Red background color */
    color: #fff; /* White text color */
    border: none; /* Remove default border */
    padding: 8px 16px; /* Add padding for better appearance */
    font-size: 14px; /* Adjust the font size */
    border-radius: 4px; /* Add rounded corners */
    cursor: pointer; /* Change cursor to pointer */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Add smooth transitions */
}

.delete-button:hover {
    background-color: #cc0000; /* Darker red on hover */
    transform: scale(1.05); /* Slightly enlarge the button on hover */
}

.delete-button:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.5); /* Add a red shadow for focus state */
}


