body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.settings-panel {
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
}

#items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#items-table th {
    background: #666;
    color: white;
    padding: 15px;
    font-weight: 500;
}

#items-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

#items-table tr:last-child td {
    border-bottom: none;
}

.item-row input {
    width: 50%;
    padding: 4px;
    border: 1px solid #ddd;
}

.totals {
    width: 300px;
    margin-left: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    font-size: 13px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
}

.total-row:last-child {
    font-size: 14px;
    font-weight: bold;
    background-color: #f8f9fa;
    border-bottom: none;
    padding: 12px 15px;
}

.total-row span {
    padding: 2px 0;
}

.received-balance {
    width: 300px;
    margin-left: auto;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.received-balance .total-row {
    padding: 8px 15px;
}

.amount-words {
    width: 300px;
    margin-left: auto;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    padding: 10px 0;
}

.generate-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
}

.add-item-btn {
    background-color: #2196F3;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.remove-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #d32f2f;
    transform: rotate(90deg);
}

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-logo {
    width: 250px;
    margin-bottom: 20px;
}

.company-address {
    margin-top: 10px;
}

.invoice-details {
    text-align: right;
}

.invoice-info {
    margin-top: 20px;
}

.info-row {
    margin-bottom: 10px;
}

.info-row label {
    margin-right: 10px;
}

.address-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.billing-address, .shipping-address {
    flex: 1;
}

.same-address-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.round-checkbox {
    position: relative;
    width: 28px;
    height: 28px;
}

.round-checkbox input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.round-checkbox label {
    background-color: #fff;
    border: 2px solid #27ae60;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.round-checkbox label:after {
    border: 2px solid #fff;
    border-top: none;
    border-right: none;
    content: "";
    height: 6px;
    left: 7px;
    opacity: 0;
    position: absolute;
    top: 8px;
    transform: rotate(-45deg);
    width: 12px;
    transition: all 0.3s ease;
}

.round-checkbox input[type="checkbox"]:checked + label {
    background-color: #27ae60;
}

.round-checkbox input[type="checkbox"]:checked + label:after {
    opacity: 1;
}

.same-address-text {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.items-table th:nth-child(4) {
    width: 100px;
}

.unit-select {
    width: 100%;
    padding: 4px;
    border: 1px solid #ddd;
}

/* Form group styling */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

/* Animated buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(45deg, #2196F3, #3f51b5);
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, #4CAF50, #009688);
    color: white;
}

.btn-danger {
    background: linear-gradient(45deg, #f44336, #e91e63);
    color: white;
}

/* Input fields styling */
input, select {
    width: 50%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    outline: none;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Address form styling */
.address-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    margin-bottom: 5px;
}

.form-group input::placeholder {
    color: #95a5a6;
}

/* Required field indicator */
label[for*="bill"], label[for*="ship"] {
    position: relative;
}

label[for*="bill"]:after, label[for*="ship"]:after {
    content: " *";
    color: #e74c3c;
}

/* Bank details section styling */
.bank-details-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bank-details-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.bank-details-section .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.bank-details-section .form-col {
    flex: 1;
}

.bank-details-section label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

.bank-details-section input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bank-details-section input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
    outline: none;
}

/* Bank details section styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edit-bank-btn {
    padding: 8px 15px;
    font-size: 14px;
}

.bank-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

#bankDetailsDisplay {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
} 