* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    min-height: 100vh;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-form h2 {
    color: #3498db;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group input:read-only {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.form-group.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#calculateBtn {
    background-color: #e67e22;
    color: white;
}

#calculateBtn:hover {
    background-color: #d35400;
}

button[type="submit"] {
    background-color: #2ecc71;
    color: white;
}

button[type="submit"]:hover {
    background-color: #27ae60;
}

.receipt {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.receipt-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.receipt-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #3498db;
}

.receipt-header h2 {
    color: #3498db;
    font-size: 2rem;
}

.receipt-details {
    margin-bottom: 30px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.receipt-row .label {
    font-weight: 600;
    color: #333;
}

.receipt-row .value {
    color: #666;
}

.total-row {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 2px solid #3498db;
    margin-top: 10px;
    padding-top: 15px;
}

.receipt-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.receipt-footer p {
    margin-bottom: 20px;
    color: #27ae60;
    font-weight: 600;
    font-size: 1.2rem;
}

#printBtn, #newPaymentBtn {
    margin: 0 10px;
}

#printBtn {
    background-color: #3498db;
    color: white;
}

#printBtn:hover {
    background-color: #2980b9;
}

#newPaymentBtn {
    background-color: #95a5a6;
    color: white;
}

#newPaymentBtn:hover {
    background-color: #7f8c8d;
}

/* Print-specific styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .receipt-print {
        box-shadow: none;
        border: 1px solid #ddd;
        padding: 20px;
    }
    
    button {
        display: none;
    }
    
    .receipt-header h1 {
        color: #333;
    }
    
    main {
        background: white;
        box-shadow: none;
        padding: 0;
    }
    
    .payment-form {
        display: none;
    }
    
    .receipt {
        background: white;
        box-shadow: none;
        padding: 0;
    }
    
    .receipt-content {
        box-shadow: none;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    main {
        padding: 20px;
    }
    
    .form-group.buttons {
        flex-direction: column;
    }
    
    .form-group.buttons button {
        margin: 10px 0;
        width: 100%;
    }
    
    .receipt-row {
        flex-direction: column;
    }
    
    .receipt-row .value {
        text-align: left;
        margin-top: 5px;
    }
}

/* Logo styles */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 150px;
    height: auto;
}

/* Search button section styles */
.search-button-section {
    text-align: center;
    margin-bottom: 30px;
}

.search-button-section a {
    display: inline-block;
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin: 0 10px;
}

.search-button-section a:hover {
    background-color: #2980b9;
}

.search-button-section a:nth-child(2) {
    background-color: #2ecc71;
}

.search-button-section a:nth-child(2):hover {
    background-color: #27ae60;
}

/* Payment data table styles */
.payment-data-section {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-data-section h2 {
    color: #3498db;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

#paymentDataTable {
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.payments-table th,
.payments-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.payments-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.payments-table tr:hover {
    background-color: #f5f5f5;
}