/* -----------------------------
   Inter Font (Local)
----------------------------- */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.logo-box p {
    margin-bottom: 20px;
}
.company-details p {
    margin: 0px 0px 10px;
}
.company-details h2 {
    font-size: 32px;
    border-bottom: 1px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.invoice-wrapper{
    max-width:1200px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:18px;
    box-shadow:0 10px 35px rgba(0,0,0,0.08);
    font-family:Arial,sans-serif;
}

.invoice-top{
    display:flex;
    justify-content:space-between;
    gap:30px;
    margin-bottom:40px;
}

.company-box{
    display:flex;
    gap:20px;
    align-items:flex-start;
    width: 60%;
}

.logo-box img{
    width: 180px;
    margin-bottom: 10px;
}

.invoice-meta{
    width: 30%;
    border: 1px solid #ebebeb;
    padding: 20px;
    border-radius: 10px;
    background: #fafafaa3;
}

.field-group{
    margin-bottom:15px;
}

.field-group label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
}

.field-group input{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
}

.customer-section{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-bottom:30px;
}

.invoice-table{
    width:100%;
    border-collapse:collapse;
    margin-bottom:20px;
}

.invoice-table th{
    background:#111827;
    color:#fff;
    padding:14px;
}

.invoice-table td{
    border:1px solid #e5e7eb;
    padding:10px;
}

.invoice-table input{
    width:100%;
    border:none;
    outline:none;
}

#addRow{
    background:#111827;
    color:#fff;
    border:none;
    padding:12px 20px;
    border-radius:10px;
    cursor:pointer;
    margin-bottom:30px;
}

.remove-row{
    background:red;
    color:#fff;
    border:none;
    padding:8px 10px;
    border-radius:8px;
    cursor:pointer;
}

.totals-box{
    max-width: 30%;
    margin-left:auto;
    border: 1px solid #ebebeb;
    padding: 20px;
    border-radius: 10px;
    background: #fafafaa3;
}

.total-item{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-bottom:15px;
}

.total-item input{
    width:160px;
    padding:10px;
    border:1px solid #ddd;
    border-radius:10px;
}

.invoice-actions{
    margin-top:30px;
}

.invoice-actions button{
    background:#16a34a;
    color:#fff;
    border:none;
    padding:14px 30px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
}

.invoice-success{
    background:#dcfce7;
    color:#166534;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;
}

.invoice-popup{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.invoice-popup-content{
    background:#fff;
    padding:40px 30px;
    border-radius:16px;
    text-align:center;
    max-width:400px;
    width:90%;
    box-shadow:0 10px 40px rgba(0,0,0,0.2);
    animation: popupShow 0.3s ease;
}

.popup-icon{
    width:70px;
    height:70px;
    background:#16a34a;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    margin:0 auto 20px;
}

.invoice-popup-content h3{
    font-size:28px;
    margin-bottom:10px;
}

.invoice-popup-content p{
    font-size:16px;
    color:#666;
    margin-bottom:25px;
}

.invoice-popup-content button{
    background:#000;
    color:#fff;
    border:none;
    padding:12px 28px;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
}

@keyframes popupShow{
    from{
        transform:scale(0.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}





@media(max-width:768px){

    .customer-section{
        grid-template-columns:1fr;
    }

    .invoice-table{
        display:block;
        overflow-x:auto;
    }
	.company-details h2 {
    font-size: 22px;
}


.company-details p {
    font-size: 14px;
}


.invoice-meta {
    width: 38%;
}
	.totals-box {
    max-width: 50%;
}

}
@media(max-width:576px){
	.invoice-top {
    
    flex-direction: column;
}

.invoice-wrapper {
    max-width: 100%;
    margin: 40px 10px;
    padding: 20px;
}

    .company-details h2 {
        font-size: 16px;
        font-weight: 600;
    }
.company-box {
    width: 100%;
}
    .invoice-meta {
        width: 100%;
    }
.totals-box {
        max-width: 100%;
    }

}

