* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
}

/* Header */
header {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

nav a {
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

nav a.active {
    background: #007bff;
    color: white;
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.payment-options {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Price Box */
.price-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.price-box p {
    margin: 5px 0;
    font-size: 16px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 5px 0;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-block {
    display: block;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8f9fa;
    padding: 10px;
    font-size: 14px;
    text-align: left;
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge.cash {
    background: #28a745;
    color: white;
}

.badge.upi {
    background: #17a2b8;
    color: white;
}

/* Footer Summary */
footer {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    position: sticky;
    bottom: 10px;
}

.summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.summary-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.summary-item span {
    display: block;
    font-size: 12px;
    color: #666;
}

.summary-item strong {
    font-size: 16px;
    color: #333;
}

.profit {
    color: #28a745;
}

/* Payment Page */
.payment-card {
    text-align: center;
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.qr-code {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.payment-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.payment-instructions {
    text-align: left;
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.payment-instructions ol {
    margin-left: 20px;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background: #007bff;
    color: white;
}

/* Summary Small */
.summary-small {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    nav {
        justify-content: center;
    }
    
    .summary {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-small {
        flex-direction: column;
        gap: 5px;
    }
}