﻿/* GLOBAL */
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #ffeb3b0f;
     overflow-x: hidden;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }

    .topbar,
    .middle-nav,
    .middle-nav ul,
    .middle-nav ul li {
        max-width: 100%;
        overflow-x: hidden;
    }
}



/* 🟡 NEW PREMIUM GOLD TOPBAR (LUXURY GLASS-GOLD STYLE) */
.topbar {
    width: 100%;
    padding: 12px 25px;
    background: #000;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 25px rgba(255, 239, 69, 0.3);
    position: relative;
}

.topbar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
   
}

/* LOGO SECTION */
.top-left img {
    height: 52px;
    filter: drop-shadow(0 0 6px rgba(255,239,69,0.5));
}

/* RIGHT SIDE USER BOX */
.user-box {
    background: rgba(255, 239, 69, 0.1);
    padding: 8px 18px;
    border: 1px solid #ffef45;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 12px rgba(255,239,69,0.25);
        margin-right: 54px;

}

/* TEXT */
.user-box .details {
    color: #ffef45;
    font-weight: 700;
    font-size: 15px;
    line-height: 18px;
}

/* ICON */
.user-box i {
    font-size: 38px;
    color: #ffef45;
   
}

/* NEW NAV BAR */
.middle-nav {
    background: #ffe229;
    padding: 18px 0;
    border-bottom: 2px solid #000;
    display: flex;
    justify-content: center;
   
}

.middle-nav ul {
    display: flex;
    list-style: none;
    gap: 60px;
    margin: 0;
    padding: 0;
}

.middle-nav ul li a {
    color: #000;
    font-size: 18px;
    letter-spacing: .5px;
    text-decoration: none;
    font-weight: 700;
    padding-bottom: 5px;
    transition: .3s;
    position: relative;
}

/* GOLD UNDERLINE ANIMATION */
.middle-nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background: #000;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.middle-nav ul li:hover a::after {
    width: 100%;
}






/* 🔥 DOUBLE LAYER BORDER (GOLD + DARK EDGE) */
.topbar::after {
    content: "";
    position: absolute;
    left: 0px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, #ffef45, #fff, #ffef45);
    opacity: 0.9;
}



/* 🔥 USER BOX 3D EFFECT */
.user-box {
    box-shadow:
        0 6px 15px rgba(0,0,0,0.6),           /* outer shadow */
        inset 0 2px 6px rgba(255,255,255,0.2), /* highlight */
        inset 0 -4px 10px rgba(0,0,0,0.7);     /* depth */
}



/* 🔥 NAV ITEMS FLOAT EFFECT */
.middle-nav ul li a {
    text-shadow:
        0 2px 4px rgba(0,0,0,0.4),
        0 0 6px rgba(255,239,69,0.5);
}

.middle-nav ul li:hover a {
    transform: translateY(-3px) scale(1.05);
}










/* ============================
   PREMIUM GOLD DROPDOWN MENU
   ============================ */

/* Parent li must be relative */
.middle-nav ul li {
    position: relative;
}

/* HIDE DROPDOWN BY DEFAULT */
.middle-nav .dropdown-menu {
    display: none ;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 30px;
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 2px solid #ffef45;
    border-radius: 6px;
    padding: 5px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
    z-index: 99999;
}

/* SHOW ON HOVER (DESKTOP) */
.middle-nav .dropdown:hover > .dropdown-menu {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

/* DROPDOWN LINKS */
.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #ffef45;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.25s ease-in-out;
}

/* HOVER EFFECT */
.dropdown-menu li a:hover {
    background: #ffef45;
    color: #000;
    transform: translateX(5px);
}





/* PUSH HAMBURGER TO RIGHT */
.mobile-nav-toggle {
    display: none;
    font-size: 26px;
    color: #ffef45;
    cursor: pointer;
margin-right: 25px;
    
}




/* ============================
   MOBILE VIEW (MAX 768px)
   ============================ */
@media (max-width: 768px) {
.top-left img {
    height: 39px;
}

.user-box .details {
    
    font-size: 11px;
}

    /* Show hamburger button */
    .mobile-nav-toggle {
        display: block;
        z-index: 10000;
    }

    /* Stack items vertically */
    .middle-nav {
        width: 100%;
        padding: 0;
    }

    .middle-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none; /* will show on toggle */
        background: #ffe229;
        border-top: 2px solid #000;
    }

    .middle-nav ul li {
        width: 40%;
        text-align: left;
        padding: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    

    /* MOBILE DROPDOWN MENU FIX */
    .middle-nav .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border: none;
        box-shadow: none;
        display: none; /* will be opened by JS */
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu li a {
        color: #000 !important;
        padding-left: 25px;
    }
}


@media (max-width: 768px) {

    .topbar {
        display: flex;
        align-items: center;
    }

    .top-left {
        flex: 1;
    }

    .mobile-nav-toggle {
        display: block;
        order: 3;              /* 🔥 move to last */
        margin-left: auto;
    }

    .user-box {
        order: 2;
        margin-right: 55px;
    }
}








/* ============================================================
   MAIN CONTAINER – HARD EDGE LAYOUT
   ============================================================ */
.main-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 10px;
}






/*.invoice-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 inputs per row 
    gap: 15px 40px;
}*/




.invoice-form select {
    width: 100%;
    padding: 10px;
    border: 2px solid #000000b5;
    background: #fff;
    box-shadow: 2px 2px 0 #f8d12f;
    outline: none;
    font-weight: 600;
}


/* ============================================================
   FORM CARD – HARD BORDER + DOUBLE LAYER + 3D EFFECT
   ============================================================ */
.form-section {
    background: #fff;
    border: 2px solid #00000000;
    padding: 15px 30px;
    position: relative;
    box-shadow: 4px 4px 0 #f8d12f8c, 0 0 0 2px #000 inset;
    transform: perspective(900px) rotateX(1deg);
}


/* ============================================================
   TITLE – STRONG HEADER STYLE + 3D
   ============================================================ */
.form-title {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    border-left: 3px solid #f8d12f;
    padding-left: 10px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0 #f8d12f;
}


/* ============================================================
   GRID – CLEAN SPACING
   ============================================================ */
.invoice-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 40px;
}

.invoice-form .form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.invoice-form label {
    width: 130px;
    font-weight: 700;
    color: #000;
}


/* ============================================================
   INPUT – SHARP DOUBLE BORDER + 3D DEPTH
   ============================================================ */
.invoice-form input {
    width: 100%;
    padding: 10px;
    border: 2px solid #000000b5;
    outline: none;
    background: #fff;
    box-shadow: 2px 2px 0 #f8d12f;
    transform: perspective(600px) rotateX(2deg);
}
.invoice-form input:focus {
    box-shadow:
        3px 3px 0 #000,
        0 0 0 2px #f8d12f;

    /* 🔥 3D CLICK-IN */
    transform: perspective(600px) rotateX(0deg);
}


/* ============================================================
   BUTTON – HARD UI STYLE + 3D
   ============================================================ */
input.button {
    background: #000000d4;
    color: #f8d12f;
    border: 2px solid #00000000;
    padding: 12px 25px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 2px 2px 0 #f8d12f;
    transform: translateY(0);
    transition: 0.1s ease;
}

input.button:hover {
    background: #f8d12f;
    color: #000;
    box-shadow: 4px 4px 0 #000;

    /* 🔥 3D hover pop */
    transform: translateY(-2px);
}

input.button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.form-buttons {
    grid-column: span 3;
    text-align: center;
    margin-top: 10px;
}
=======================
   FLOATING PLUS – 3D POP
   ============================================================ */
.floating-plus {
    position: absolute;
    top: 90px;
    right: 40px;

    background: #000;
    color: #f8d12f;
    padding: 6px 12px;

    border: 2px solid #000;

    /* ORIGINAL */
    box-shadow: 3px 3px 0 #f8d12f;

    /* 🔥 3D FLOATING EFFECT */
    transform: translateY(-2px);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .invoice-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .invoice-form {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    label {
        width: 100%;
    }

    button {
        width: 100%;
    }

    .form-buttons {
        grid-column: span 1;
    }
}



/* ============================================================
   TABLE SECTION – 3D
   ============================================================ */
.table-section {
    margin-top: 100px;
}

.table-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
    border-left: 3px solid #f8d12f;
    padding-left: 10px;
    text-shadow: 1px 1px 0 #f8d12f;
}

.table-wrapper {
    overflow-x: auto;
    border: 2px solid #000000a8;
    box-shadow: 4px 4px 0 #f8d12fc4;
    transform: perspective(1000px) rotateX(1deg);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}


/* HEADER */
.custom-table th {
    background: #000000d4;
    color: #f8d12f;

    /* 🔥 Slight 3D shading */
    text-shadow: 1px 1px 0 #333;
}

.custom-table th {
    padding: 12px;
    text-align: left;
    font-weight: 800;
    font-size: 14px;
    border-bottom: 2px solid #f8d12f;
    text-decoration:none;
}
.custom-table th a  {
    background: #000000d4;
    color: #f8d12f;
    text-decoration:none;
}

/* BODY */
.custom-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.custom-table tbody tr:hover {
    background: #fff9d6;

    /* 🔥 Hover 3D lift */
    transform: scale(1.01);
}


/* EDIT BUTTON */
.edit-btn {
    background: #000000d4;
    color: #f8d12f;
    border: 2px solid #000;
    padding: 6px 10px;
    cursor: pointer;
    box-shadow: 2px 2px 0 #f8d12f;
    transition: 0.1s ease;
}

.edit-btn:hover {
    background: #f8d12f;
    color: #000;
    box-shadow: 3px 3px 0 #000;
    transform: translateY(-2px);
}


/* STATUS BADGES */
.badge {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

/* ACTIVE */
.badge.active {
    background: #000000e3;
    color: #f8d12f;
    border: 1px solid #000;
    text-shadow: 1px 1px 0 #444;
}

/* INACTIVE */
.badge.inactive {
    background: #ccc;
    color: #000;

    /* 🔥 3D inset */
    box-shadow: inset 2px 2px 0 #aaa;
}