* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

.bill-container {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bill-header {
    text-align: center;
    margin-bottom: 20px;
}

.bill-header h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.bill-header p {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.bill-divider {
    height: 1px;
    background: #ddd;
    margin: 15px 0;
    border-top: 1px dashed #ccc;
}

.bill-info {
    margin: 15px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 0.95em;
}

.info-row span:first-child {
    color: #666;
    font-weight: 500;
}

.info-row span:last-child {
    color: #333;
    font-weight: 600;
}

.bill-items {
    margin: 20px 0;
}

.bill-items table {
    width: 100%;
    border-collapse: collapse;
}

.bill-items th {
    background: #f5f5f5;
    padding: 10px;
    text-align: left;
    font-size: 0.9em;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.bill-items td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.bill-items tbody tr:hover {
    background: #f9f9f9;
}

.bill-items td:last-child,
.bill-items th:last-child {
    text-align: right;
}

.bill-totals {
    margin: 20px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 1em;
    padding: 5px 0;
}

.total-row span:first-child {
    color: #666;
    font-weight: 500;
}

.total-row span:last-child {
    color: #333;
    font-weight: 600;
}

.total-final {
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
    padding-top: 10px;
    border-top: 2px solid #ddd;
    margin-top: 15px;
}

.total-final span:last-child {
    color: #667eea;
    font-size: 1.2em;
}

.bill-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
}

.bill-footer p {
    margin: 5px 0;
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

.print-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.print-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.print-button:active {
    transform: translateY(0);
}

.print-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

.browser-warning {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
}

.browser-warning h3 {
    margin-top: 0;
    color: #856404;
}

.browser-warning ul {
    margin: 10px 0;
    padding-left: 20px;
}

.browser-warning li {
    margin: 5px 0;
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        padding: 0;
    }
    
    .button-container,
    .status-message,
    h1 {
        display: none;
    }
    
    .bill-container {
        border: none;
        box-shadow: none;
        padding: 20px;
    }
}


