@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');
/* dashboard */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
    line-height: 1;
    /* Smooth transitions for all interactive elements */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body{
    background:#f5f6fc;
}

body:has(.sidebar.active){
    overflow: hidden !important;
}

.wrapper{
    display:flex;
    align-items: stretch;
    min-height: 100vh;
}

.wrapper .sidebar {
    width: 270px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wrapper .sidebar.active {
    transform: translateX(0);
}

.wrapper .main{
    width: 100%;
    padding: clamp(0.9375rem, 0.7212rem + 0.9615vw, 1.875rem);
    margin-left: 0;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}

@media screen and (min-width: 1280px) {
    .wrapper .sidebar {
        transform: translateX(0);
    }
    .wrapper .main {
        margin-left: 270px;
        width: calc(100% - 270px);
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media screen and (min-width: 1280px) {
    .sidebar-overlay {
        display: none;
    }
}

.topbar{
    background:#fff;
    padding:20px 30px;
    border-radius:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.topbar:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.topbar h2{
    font-size:28px;
    font-weight:700;
}


/* customer*/
.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    flex-wrap: wrap;
    gap: 20px;
    transition: all 0.3s ease;
}
.page-title h2{
    font-size:34px;
    font-weight:700;
    color:#17003d;
    transition: color 0.3s ease;
}

.page-title p{
    color:#777;
    margin-top:6px;
    transition: color 0.3s ease;
}
.customer-profile{
    display:flex;
    align-items:center;
    gap:14px;
}

.customer-avatar{
    width:50px;
    height:50px;
    border-radius:50%;
    background:
    linear-gradient(90deg,#5f00ff,#d100ff);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
    font-weight:700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(95, 0, 255, 0.3);
}

.customer-info h5{
    margin:0;
    font-size:15px;
    font-weight:600;
}

.customer-info p{
    margin:0;
    font-size:13px;
    color:#777;
}

/* invoivce */
.page-title{
    margin-bottom:25px;
}

.section-title{
    font-size:20px;
    font-weight:600;
    margin-bottom:20px;
    color:#5f00ff;
}

.form-control,
.form-select{
    height:55px;
    border-radius:14px;
    border:1px solid #ddd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

textarea.form-control{
    height:auto;
}

.summary-item{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
    font-size:16px;
    transition: color 0.3s ease;
}

.summary-item.total{
    font-size:24px;
    font-weight:700;
    color:#5f00ff;
}
.status-paid{
    background:#d4ffe5;
    color:#009944;
    padding:8px 16px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.status-paid:hover {
    background: #c0ffd6;
    transform: scale(1.05);
}

.status-pending{
    background:#fff0d9;
    color:#ff9800;
    padding:8px 16px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.status-pending:hover {
    background: #ffe4c4;
    transform: scale(1.05);
}
.form-label{
    font-weight:600;
    color:#333;
    transition: color 0.3s ease;
}

.form-control,.form-select,
textarea{
    border-radius:16px !important;
    border:1px solid #ddd !important;
    height:58px;
    padding:15px 18px;
    font-size:15px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

textarea{
    height:auto !important;
}
.form-control:focus,
.form-select:focus,
textarea:focus{
    border-color:#5f00ff !important;
    box-shadow:0 0 0 4px rgba(95,0,255,0.08) !important;
    background-color: #fafaff;
}
.service-info h5{
    margin:0;
    font-size:15px;
    font-weight:600;
    color:#17003d;
    transition: color 0.3s ease;
}

.service-info p{
    margin:0;
    margin-top:5px;
    color:#777;
    font-size:13px;
}
/* settings */
.form-check{
    background:#fafaff;
    padding:18px;
    border-radius:16px;
    margin-top:10px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.form-check:hover {
    background: #f5f5ff;
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(95, 0, 255, 0.1);
}

.form-check-input{

    width:22px;
    height:22px;

    margin-top:0.15rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-check-input:checked {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(95, 0, 255, 0.2);
}

.form-check-label{

    margin-left:10px;

    font-weight:500;
    transition: color 0.3s ease;
}

/*header*/
.top-navbar{

    width:100%;
    background:#ffffff;
    padding: 18px clamp(0.9375rem, 0.75rem + 0.9375vw, 1.875rem);
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
    margin-bottom:30px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.top-navbar:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.navbar-left{

    display:flex;
    align-items:center;
    gap:15px;
}

.navbar-logo{

    width:50px;
    height:50px;

    border-radius:15px;

    background:
    linear-gradient(135deg,#5f00ff,#d100ff);

    display:flex;
    justify-content:center;
    align-items:center;

    color:#fff;

    font-size:22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(95, 0, 255, 0.4);
}

.navbar-title h3{

    margin-bottom: 5px;

    font-size:24px;
    font-weight:700;

    color:#16003b;
    transition: color 0.3s ease;
}

.navbar-title p{

    margin:0;

    color:#777;

    font-size:13px;
    transition: color 0.3s ease;
}

.navbar-right{

    display:flex;
    align-items:center;
    gap:20px;
}
.admin-profile{

    display:flex;
    align-items:center;
    gap:12px;
    transition: transform 0.3s ease;
}

.admin-profile:hover {
    transform: translateX(5px);
}

.admin-avatar{

    width:50px;
    height:50px;

    border-radius:50%;

    background:
    linear-gradient(135deg,#5f00ff,#d100ff);

    display:flex;
    justify-content:center;
    align-items:center;

    color:#fff;

    font-size:18px;
    font-weight:700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(95, 0, 255, 0.4);
}

.admin-info h5{

    margin:0;

    font-size:16px;
    font-weight:600;

    color:#16003b;
}

.admin-info span{

    font-size:13px;

    color:#777;
}

/* Login */
body > .login{

    min-height:100vh;

    background:
    linear-gradient(135deg,#120046,#5c00ff,#c500ff);

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;
    position:relative;
}

body > .login::before{

    content:'';

    position:absolute;

    width:500px;
    height:500px;

    background:rgba(255,255,255,0.08);

    border-radius:50%;

    top:-120px;
    left:-120px;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

body > .login:hover::before {
    transform: scale(1.1) translate(20px, 20px);
}

body > .login::after{

    content:'';

    position:absolute;

    width:400px;
    height:400px;

    background:rgba(255,255,255,0.06);

    border-radius:50%;

    bottom:-100px;
    right:-100px;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

body > .login:hover::after {
    transform: scale(1.1) translate(-20px, -20px);
}
.login-wrapper{

    width:100%;
    max-width:1100px;

    display:flex;

    background:rgba(255,255,255,0.08);

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,0.15);

    border-radius:35px;

    overflow:hidden;

    box-shadow:0 20px 60px rgba(0,0,0,0.25);

    position:relative;
    z-index:2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.login-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.left-side,
.right-side{
    flex:1;
}
.logo-row {
    width: 100%;
}

.logo-content {
    margin-left: 110px;
    margin-top: 5px;
}

.logo-title {
    font-size: 52px;
    font-weight: bold;
    color: #111;
    line-height: 1;
}

.logo-title span {
    color: #7d00ff;
}

.logo-tagline {
    margin-top: 10px;
    font-size: 18px;
    color: #666;
    letter-spacing: 2px;
}
.left-side{

    padding:70px;

    color:#fff;

    position:relative;
}

.left-side h1{

    font-size:58px;
    font-weight:700;

    margin-bottom:20px;
}

.left-side h1 span{

    color:#ff59ff;
}

.left-side p{

    font-size:18px;
    line-height:1.8;

    opacity:0.9;
}

.features{

    margin-top:50px;
}

.feature{

    display:flex;
    align-items:center;

    margin-bottom:25px;
}

.feature i{

    width:55px;
    height:55px;

    background:rgba(255,255,255,0.15);

    border-radius:15px;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:22px;

    margin-right:18px;
}

.feature h4{

    margin:0;
    font-size:18px;
    font-weight:600;
}

.feature p{

    margin:0;
    font-size:14px;
    opacity:0.8;
}

.right-side{

    background:#fff;

    padding:70px;

    display:flex;
    justify-content:center;
    align-items:center;
}
.input-group-custom{

    margin-bottom:22px;
}

.input-group-custom label{

    font-size:14px;
    font-weight:500;

    margin-bottom:8px;

    display:block;

    color:#333;
}
.footer-text{

    margin-top:25px;

    text-align:center;

    font-size:14px;

    color:#777;
}

.footer-text a{

    color:#7a00ff;
    text-decoration:none;
    font-weight:600;
}


/* customer add style */
.customer-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.customer-add-row .customer-col {
    display: inline-flex;
    flex-direction: column;
    width: 49.3%;
}

.customer-add-row .customer-col.full {
    width: 100%;
}

/* Invoice add style */
.invoice-add-row-one,
.invoice-add-row-two {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.invoice-add-row-one .invoice-add-col {
    display: inline-flex;
    gap: 10px;
    flex-direction: column;
    width: 32.4%;
}

.invoice-add-row-two .invoice-add-col {
    display: inline-flex;
    gap: 10px;
    flex-direction: column;
    width: 49.3%;
}

.invoice-note {
    width: 100%;
    display: inline-flex;
    gap: 10px;
    flex-direction: column;
}

/* Settings style */

.settings-style .settings-col {
    display: inline-flex;
    gap: 10px;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}


/* responsive style ----------------------------------------------------------------------------------------- */

/* Large screens */
@media screen and (max-width:1280px) {
    .wrapper .main {
        width: 100%;
    }
}

/* Tablets */
@media screen and (max-width: 1024px) {
    .navbar-right .admin-profile, 
    .navbar-right .logout-btn, 
    .navbar-right .notification-btn {
        display: none;
    }

    .wrapper .top-navbar > div { 
        width: 50%; 
    }

    .wrapper .top-navbar {
        flex-direction: row;
    }

    .top-navbar .navbar-right { 
        justify-content: end; 
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .invoice-add-row-one .invoice-add-col,
    .invoice-add-row-two .invoice-add-col {
        width: 48%;
    }
}

/* Mobile landscape */
@media screen and (max-width: 767px) {
    .login-wrapper{
        flex-direction: column;
    }
    .left-side{
        display: none;
    }
    .left-side, .right-side{
        width:100%;
    }
    
    .page-title h2 {
        font-size: 28px;
    }
    
    .topbar {
        padding: 15px 20px;
    }
    
    .topbar h2 {
        font-size: 22px;
    }
    
    .invoice-add-row-one,
    .invoice-add-row-two {
        flex-direction: column;
    }
    
    .invoice-add-row-one .invoice-add-col,
    .invoice-add-row-two .invoice-add-col {
        width: 100%;
    }
    
    .customer-add-row .customer-col {
        width: 100%;
    }
}

/* Mobile portrait */
@media screen and (max-width: 480px) {
    .wrapper .main {
        padding: 15px;
    }
    
    .page-header {
        padding: 10px 0;
    }
    
    .page-title h2 {
        font-size: 24px;
    }
    
    .page-title p {
        font-size: 13px;
    }
    
    .top-navbar {
        padding: 12px 15px;
    }
    
    .navbar-logo {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .navbar-title h3 {
        font-size: 18px;
    }
    
    .form-control, .form-select {
        height: 50px;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .card-box {
        padding: 15px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Smooth scrollbar for main content */
.main::-webkit-scrollbar {
    width: 8px;
}

.main::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.main::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.main::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Print styles */
@media print {
    .sidebar,
    .top-navbar,
    .no-print {
        display: none !important;
    }
    
    .wrapper .main {
        margin: 0;
        padding: 0;
    }
}