﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #ffffff;
}

/* Sticky footer layout */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;  /* takes remaining height */
}




/* ------------------ TOPBAR ------------------ */
.topbar {
    width: 100%;
    height: 70px;
    background-color: #ffffff; /* keep white background */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1), inset 0 -1px 0 rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

/* ------------------ LEFT SECTION ------------------ */
.left-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo {
    height: 69px;
}

/* ------------------ SEARCH GROUP ------------------ */
.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    height: 42px;
    width: 100%;
    max-width: 550px;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.location-box {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background-color: #fff6f6;
    border-right: 1px solid #c0c0c0;
    height: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    
}

.city-select {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #000; /* dark for contrast */
    outline: none;
    cursor: pointer;
}

.search-input-group {
    display: flex;
    flex: 1;
    height: 100%;
}

.search-input-group input {
    width: 100%;
    border: none;
    padding: 0 15px;
    outline: none;
    font-size: 14px;
    color: #111;
}

.search-btn {
   background: linear-gradient(145deg, #3F51B5, #03A9F4);
    border: none;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

/* ------------------ RIGHT SECTION ------------------ */
.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 3px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
   background: linear-gradient(45deg, #3F51B5, #03A9F4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.nav-links a i {
    background: linear-gradient(135deg, #3F51B5, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a:hover i {
    transform: translateY(-2px) scale(1.1);
    background: linear-gradient(135deg, #ffeb3b, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ------------------ ICON BUTTON ------------------ */
.icon-btn i {
    font-size: 20px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
}

.icon-btn i:hover {
    transform: scale(1.2) rotate(-10deg);
    background: linear-gradient(135deg, #00c6ff, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ------------------ LOGIN BUTTON ------------------ */
.login-btn {
    background: linear-gradient(145deg, #00c6ff, #007bff);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0,0,0,0.35);
}

/* ------------------ DROPDOWN ------------------ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #111;
    padding: 8px 12px;
    transition: color 0.3s;
    cursor: pointer;
    font-weight: 600;
}

.dropbtn:hover {
    color: #007bff;
}

.dropbtn::after {
    content: "\f0d7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.25);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: #e0f7ff;
    color: #ff5722;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ------------------ MOBILE (max-width: 768px) ------------------ */
@media (max-width: 768px) {

    .topbar {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 10px 15px;
        gap: 10px;
    }

    .left-section {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
    }

    .logo {
        height: 60px;
        flex: 0 0 auto;
    }

    .location-box {
        flex: 0 0 90px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .search-container {
        flex: 1 1 auto;
        min-width: 0;
    }

    .right-section {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 10px;
        width: 100%;
    }

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 0px;
        flex: 1 1 auto;
    }

    .icon-btn {
        flex: 0 0 auto;
    }

    .login-btn {
        flex: 0 0 auto;
    }
}















.hero-banner {
    width: 100%;
    max-width: 1500px;
    height: 330px;
    margin: 20px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* TEXT INSIDE SLIDE */
.hero-text {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 16px;
    margin-top: 8px;
}

.hero-btn {
    margin-top: 15px;
    padding: 12px 28px;
    background: linear-gradient(to right, #4e73df, #1cc7d0);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

/* Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.hero-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-dots .dot.active {
    background: #1cc7d0; /* Active dot color */
}

/* Optional: hover effect */
.hero-dots .dot:hover {
    background: #4e73df;
}

/* Large Screens */
@media (max-width: 1600px) {
    .hero-banner {
        height: 310px;
    }
}

/* Laptops */
@media (max-width: 1300px) {
    .hero-banner {
        height: 290px;
    }

    .hero-text h1 {
        font-size: 36px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-banner {
        height: 260px;
        max-width: 95%;
    }

    .hero-text h1 {
        font-size: 30px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .hero-banner {
        height: 240px;   /* increased to avoid text cutting */
        max-width: 95%;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile (Portrait) */
@media (max-width: 576px) {
    .hero-banner {
        height: 270px;   /* increased for proper visibility */
        max-width: 94%;
    }

    .hero-slide {
        background-position: top center;
    }

    .hero-text {
        bottom: 20px;   /* more space on small screens */
    }

    .hero-text h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 14px;
    }

    .hero-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}









/* Grid Layout */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: auto;
    font-family: 'Poppins', sans-serif;
}

/* Items */
.cat-item {
    background: #fff;
    border-radius: 14px;
    padding: 22px 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

/* Hover Animation */
.cat-item:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* Icon Animation */
.cat-item i {
    font-size: 40px;
    margin-bottom: 8px;
    transition: 0.3s ease;
}

.cat-item:hover i {
    transform: rotate(8deg) scale(1.15);
}

/* Individual Icon Colors */
.cat-item:nth-child(1) i { color: #ff6b6b; }      /* Paint Work */
.cat-item:nth-child(2) i { color: #4dabf7; }      /* Mobile & Electronics */
.cat-item:nth-child(3) i { color: #82c91e; }      /* Grocery Kit */
.cat-item:nth-child(4) i { color: #228be6; }      /* Travel */
.cat-item:nth-child(5) i { color: #e64980; }      /* Wedding */
.cat-item:nth-child(6) i { color: #ffa94d; }      /* Catering */
.cat-item:nth-child(7) i { color: #7950f2; }      /* Photo Shoot */
.cat-item:nth-child(8) i { color: #f08c00; }      /* Chiti */
.cat-item:nth-child(9) i { color: #40c057; }      /* Recharge */
.cat-item:nth-child(10) i { color: #d6336c; }     /* Medical */
.cat-item:nth-child(11) i { color: #5f3dc4; }     /* Tractor */
.cat-item:nth-child(12) i { color: #15aabf; }     /* Learning Center */
.cat-item:nth-child(13) i { color: #2f9e44; }     /* Farm */
.cat-item:nth-child(14) i { color: #e03131; }     /* Matrimony */
.cat-item:nth-child(15) i { color: #fab005; }     /* Lighting & DJ */
.cat-item:nth-child(16) i { color: #845ef7; }     /* Orchestra */
.cat-item:nth-child(17) i { color: #c2255c; }     /* Thamte */

/* Text */
.cat-item p {
    font-size: 14px;
    margin-top: 8px;
    color: #000;
    font-weight: 500;
}





/* Icon Animation - Continuous Movement */
.cat-item i {
    font-size: 40px;
    margin-bottom: 8px;
    transition: 0.3s ease;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.cat-item:hover i {
    transform: rotate(8deg) scale(1.15);
    animation-play-state: paused; /* Stop floating when hovering */
}

/* Floating Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    25% { transform: translateY(-5px) rotate(2deg); }
    50% { transform: translateY(0px) rotate(-2deg); }
    75% { transform: translateY(5px) rotate(1deg); }
    100% { transform: translateY(0px); }
}









/* ------------------ FOOTER ------------------ */
.footer {
    width: 100%;
    background-color: #2196f3; /* black background */
    color: #fff; /* white text */
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}








.form-container {
        width: 100%;
        max-width: 900px;
        background: #fff;
        padding: 25px;
        margin: 60px auto 30px;
        border-radius: 14px;
       box-shadow: 0 4px 25px rgb(0 0 0 / 93%);
        font-family: 'Poppins', sans-serif;
        position: relative;
        overflow: hidden;
    }

    /* HAT / CAP DESIGN – TOP RIGHT */
    /* HAT / CAP DESIGN – TOP RIGHT */
.form-container::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 170px;
    height: 130px;
    background: #1e3a8a;
    border-radius: 0 0 120px 120px;
    transform: rotate(25deg);
    box-shadow: 0 6px 20px rgba(30,58,138,0.4);

    /* NEW: slight movement */
    animation: capMove 4s ease-in-out infinite;
}

/* Smooth slight movement */
@keyframes capMove {
    0%   { transform: rotate(25deg) translateY(0); }
    50%  { transform: rotate(25deg) translateY(-8px); }
    100% { transform: rotate(25deg) translateY(0); }
}


    .form-title {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 20px;
        text-align: center;
        color: #1e3a8a;
        position: relative;
        z-index: 2;
    }

    /* TWO FIELDS IN ONE ROW */
    .form-row {
        display: flex;
        gap: 15px;
        position: relative;
        z-index: 2;
    }

    .form-group {
        flex: 1;
        margin-bottom: 15px;
        position: relative;
        z-index: 2;
    }

    .form-group label {
        font-weight: 500;
        margin-bottom: 6px;
        display: block;
        font-size: 14px;
        color: #333;
    }

    .form-group label i {
        margin-right: 5px;
        color: #1e3a8a;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        outline: none;
        transition: 0.2s;
    }

    .form-group textarea {
        height: 80px;
        resize: vertical;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #1e3a8a;
        box-shadow: 0 0 4px rgba(30, 58, 138, 0.3);
    }
    /* DROPDOWN STYLE SAME AS TEXTBOX */
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background-color: #fff;
    cursor: pointer;

    /* Remove default browser style */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%231e3a8a' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

/* Focus Effect Same as Input */
.form-group select:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 4px rgba(30, 58, 138, 0.3);
}
    .save-btn {
        width: 100%;
        padding: 14px;
        background: #1e3a8a;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: 0.3s;
        position: relative;
        z-index: 2;
        text-decoration:none;
    }

    .save-btn:hover {
        background: #172c66;
    }

    .save-btn i {
        margin-right: 8px;
    }

    /* MOBILE FIX — STACK 1 COLUMN */
    @media (max-width: 600px) {
        .form-row {
            flex-direction: column;
        }
    }
    
    
    
    
    
    
    
    
    
    
    
    
     .custom-table {
    width: 1200px;
    border-collapse: collapse;
    font-family: 'Poppins', sans-serif;
    margin: 100px auto; /* ⬅ CENTER THE TABLE */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

.custom-table th {
    background: #1e3a8a;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-size: 14px;
     word-wrap: break-word;
    white-space: normal;
}
.custom-table th  a{
    background: #1e3a8a;
    color: #fff;
    
    text-align: left;
    font-size: 14px;
    text-decoration:none;
    word-wrap: break-word;
    white-space: normal;
}
.custom-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
    word-wrap: break-word;
    white-space: normal;
}

.custom-table tr:hover {
    background: #f7f9fc;
}

.photo-box {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.edit-btn {
    background: #1e3a8a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.edit-btn i {
    margin-right: 5px;
}

.active-switch {
    width: 20px;
    height: 20px;
    accent-color: #1e3a8a;
    cursor: pointer;
}
/* WRAPPER FOR SCROLLING ON MOBILE */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* horizontal scroll only */
    -webkit-overflow-scrolling: touch; /* smooth scroll for iOS */
}

/* Optional: add padding to the scroll area */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(30,58,138,0.5);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

/* Mobile media query */
@media (max-width: 768px) {
    .custom-table {
        width: 1200px; /* keep original table width */
    }
}
/* ================= NAVBAR ================= */

.main-navbar {
    width: 100%;
    background: linear-gradient(145deg, #3F51B5, #03A9F4);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    position: relative;
    z-index: 9;
}

.nav-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.nav-menu li a:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* Dropdown */

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: none;
    overflow: hidden;
}

.nav-dropdown .dropdown-menu li a {
    color: #3F51B5;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
}

.nav-dropdown .dropdown-menu li a:hover {
    background: #e3f2fd;
    color: #03A9F4;
}

/* Show dropdown on hover */
.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* Hamburger */

.nav-toggle {
    display: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .nav-container {
        padding: 12px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(145deg, #3F51B5, #03A9F4);
        display: none;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: left;
        padding: 8px 20px;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
    }

    .nav-dropdown .dropdown-menu li a {
        color: #fff;
        padding-left: 20px;
    }
}