@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    padding-top: 20px;
}

.container {
    width: 100%;
    max-width: 794px;
    margin: 0 auto;
    padding: 15px;
}

header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.1));
    border-radius: 50% 50% 0 0;
    z-index: 0;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    margin-right: 15px;
    z-index: 1;
}

h1 {
    color: white;
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 600;
    z-index: 1;
}

.invoice-container {
    background: rgb(231 231 231);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    padding: clamp(15px, 3vw, 30px);
    margin-bottom: 20px;
    overflow: hidden;
}

.company-details {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    margin-bottom: 30px;
    color: white;
    align-items: center;
}
.logo a
{
    font-size: 0;
}
.logo {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.company-info h2 {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 10px;
    color: #000;
}

.company-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    color: #000;
    font-size: clamp(14px, 3.5vw, 16px);
}

.invoice-info {
    text-align: right;
}

.invoice-info h3 {
    font-size: clamp(18px, 4.5vw, 24px);
    margin-bottom: 10px;
    color: #000;
}

.invoice-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    color: #000;
    font-size: clamp(14px, 3.5vw, 16px);
}
.invoice-info input
{
    background: transparent;
    border: 0;
    border-bottom: 1px solid #ccc;
    color: #fff;
}
.invoice-info input:focus
{
    outline: 0;
}
.charging-table {
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px!important;
}
.charging-table::-webkit-scrollbar
{
    height: 10px;
    background: #fff;
    border-radius: 12px;
}
.charging-table::-webkit-scrollbar-thumb
{
    background: linear-gradient(80deg, rgba(178,0,242,1) 0%, rgba(106,0,255,1) 100%);
    border-radius: 12px;
}
.charging-table td
{
    background: #fff;
    color: #000;
}
.charging-table thead tr
{
    background: rgb(178,0,242);
    background: linear-gradient(80deg, rgba(178,0,242,1) 0%, rgba(106,0,255,1) 100%);
}
.charging-table thead tr th:first-child
{
    border-radius: 10px 0 0 0;
}
.charging-table thead tr th:last-child
{
    border-radius: 0 10px 0 0;
}
.charging-table tr td
{
    border-bottom: 1px solid #ccc;
}
.charging-table tr:last-child td{
    border-bottom: 0;
}
.charging-table tr:last-child td:first-child
{
    border-radius: 0 0 0 10px;
}
.charging-table tr:last-child td:last-child
{
    border-radius: 0 0 10px 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: clamp(8px, 2vw, 12px);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: clamp(12px, 3vw, 14px);
}

th {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.invoice-summary {
    border-top: 2px solid rgb(70 66 66 / 67%);
    padding-top: 10px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    color: white;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: clamp(14px, 3.5vw, 16px);
    color: #000;
}

.summary-item span:first-child {
    color: #000;
}

.summary-item.total {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    border-top: 2px solid rgb(70 66 66 / 67%);
    padding-top: 10px;
    margin-top: 10px;
    color: #000;
}

footer {
    display: flex;
    justify-content: center;
    padding: clamp(15px, 3vw, 20px) 0;
}

.footer-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: clamp(10px, 2.5vw, 12px) clamp(30px, 8vw, 50px);
    border-radius: 25px;
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    width: auto;
    min-width: 150px;
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.footer-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
/*@media (max-width: 768px) {
    .company-details {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        margin: 0 auto;
    }
    
    .invoice-info {
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
    }
    
    .invoice-summary {
        margin: 0 auto;
    }
    
    .charging-table {
        margin: 20px -15px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    .invoice-container {
        border-radius: 10px;
    }
    
    .charging-table {
        margin: 15px -10px;
        padding: 0 10px;
    }
    
    .invoice-summary {
        padding-top: 15px;
    }
    
    .footer-btn {
        width: 100%;
        max-width: 300px;
    }
} */