/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 600;
}

.hero {
    background-color: #4CAF50;
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.hero h2 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 600;
}

.hero p {
    font-size: 1.2em;
    margin: 10px 0 0;
}

/* Navigation */
.main-nav {
    background-color: #34495e;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav ul li {
    margin: 0 10px;
    position: relative;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav ul li a:hover {
    background-color: #1abc9c;
    border-radius: 5px;
}

.main-nav ul li a i {
    margin-right: 8px;
}

/* Dropdown Menu */
.main-nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
}

.main-nav ul li:hover .dropdown {
    display: block;
}

.main-nav ul li .dropdown li a {
    padding: 10px 20px;
    color: #fff;
    white-space: nowrap;
}

.main-nav ul li .dropdown li a:hover {
    background-color: #1abc9c;
    border-radius: 5px;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li .dropdown {
        position: static;
        display: none;
        background-color: #2c3e50;
        border-radius: 0;
        box-shadow: none;
    }

    .main-nav ul li .dropdown.show {
        display: block;
    }
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #2c3e50;
}

.form-container label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #555;
}

.form-container input, .form-container select, .form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-container input:focus, .form-container select:focus, .form-container textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background-color: #45a049;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
}

table tr:hover {
    background-color: #f5f5f5;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    text-decoration: none;
}

.button:hover {
    background-color: #45a049;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}
/* Invoice Container */
.invoice-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.invoice-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.company-info h1 {
    margin: 0;
    font-size: 2em;
    color: #2c3e50;
}

.company-info p {
    margin: 5px 0;
    color: #555;
}

.invoice-info h2 {
    margin: 0;
    font-size: 1.8em;
    color: #2c3e50;
}

.invoice-info p {
    margin: 5px 0;
    color: #555;
}

/* Billing Information */
.billing-info {
    margin-bottom: 20px;
}

.bill-to h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #2c3e50;
}

.bill-to p {
    margin: 5px 0;
    color: #555;
}

/* Itemized List */
.invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invoice-items th, .invoice-items td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.invoice-items th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
}

.invoice-items tr:hover {
    background-color: #f5f5f5;
}

/* Summary */
.invoice-summary {
    text-align: right;
    margin-bottom: 20px;
}

.invoice-summary p {
    margin: 5px 0;
    font-size: 1.1em;
    color: #555;
}

.invoice-summary strong {
    color: #2c3e50;
}

/* Footer */
.invoice-footer {
    border-top: 2px solid #4CAF50;
    padding-top: 2px;
    text-align: center;
    color: #555;
}

.invoice-footer p {
    margin: 5px 0;
}

/* Actions */
.invoice-actions {
    text-align: center;
    margin-top: 20px;
}

.invoice-actions .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.invoice-actions .button:hover {
    background-color: #45a049;
}

/* Invoice Container */
.invoice-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Watermark */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

/* Header */
.invoice-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.company-info h1 {
    margin: 0;
    font-size: 2em;
    color: #2c3e50;
}

.company-info p {
    margin: 5px 0;
    color: #555;
}

.company-info .logo {
    max-width: 150px;
    margin-bottom: 10px;
}

.invoice-info h2 {
    margin: 0;
    font-size: 1.8em;
    color: #2c3e50;
}

.invoice-info p {
    margin: 5px 0;
    color: #555;
}

/* Billing Information */
.billing-info {
    margin-bottom: 20px;
}

.bill-to h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #2c3e50;
}

.bill-to p {
    margin: 5px 0;
    color: #555;
}

/* Itemized List */
.invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invoice-items th, .invoice-items td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.invoice-items th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
}

.invoice-items tr:hover {
    background-color: #f5f5f5;
}

/* Summary Table */
.invoice-summary {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invoice-summary th, .invoice-summary td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.invoice-summary th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
}

/* Payment Instructions */
.payment-instructions {
    margin-bottom: 20px;
}

.payment-instructions h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #2c3e50;
}

.payment-instructions p {
    margin: 5px 0;
    color: #555;
}

/* Footer */
.invoice-footer {
    border-top: 2px solid #4CAF50;
    padding-top: 2px;
    text-align: center;
    color: #555;
}

.invoice-footer p {
    margin: 2px 0;
}

/* Actions */
.invoice-actions {
    text-align: center;
    margin-top: 20px;
}

.invoice-actions .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.invoice-actions .button:hover {
    background-color: #45a049;
}

/* Invoice Items Table */
.invoice-items {
    width: 100%;
    border-collapse: collapse; /* Removes space between table cells */
    margin-bottom: 20px; /* Adds space below the table */
    background-color: white; /* Sets table background color */
    border-radius: 10px; /* Rounds the table corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}

/* Table Headers */
.invoice-items th {
    background-color: #34495e; /* Dark background for headers */
    color: white; /* White text for headers */
    font-weight: 600; /* Bold text */
    padding: 12px; /* Adds padding inside header cells */
    text-align: left; /* Aligns text to the left */
    border-bottom: 2px solid #2c3e50; /* Adds a border below headers */
}

/* Table Cells */
.invoice-items td {
    padding: 12px; /* Adds padding inside cells */
    text-align: left; /* Aligns text to the left */
    border-bottom: 1px solid #ddd; /* Adds a border below each row */
}

/* Hover Effect for Rows */
.invoice-items tr:hover {
    background-color: #f5f5f5; /* Light gray background on hover */
}

/* Last Row Border Removal */
.invoice-items tr:last-child td {
    border-bottom: none; /* Removes border from the last row */
}