/*-----------------------------
  Google Font
-----------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/*-----------------------------
  Navigation Bar
-----------------------------*/
navigation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #e60073;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

navigation .navbar {
    height: 100%;
    max-width: 1250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    padding: 0 50px;
}

.navbar .logo a {
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.navbar .links {
    display: flex;
}

.navbar .links li {
    position: relative;
    list-style: none;
    padding: 0 14px;
    display: flex;
    align-items: center;
}

.navbar .links li a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.navbar .search-box {
    position: relative;
    height: 40px;
    width: 40px;
    cursor: pointer;
}

.navbar .search-box i {
    font-size: 22px;
    color: #fff;
    line-height: 40px;
    text-align: center;
    font-weight: 600;
    transition: 0.3s;
}

.navbar .search-box .input-box {
    position: absolute;
    top: 80px;
    right: calc(100% - 40px);
    width: 300px;
    height: 60px;
    background: #0b5ed7;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.navbar.showInput .search-box .input-box {
    top: 65px;
    opacity: 1;
    pointer-events: auto;
}

.search-box .input-box::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #0b5ed7;
    right: 10px;
    top: -6px;
    transform: rotate(45deg);
}

.search-box .input-box input {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 35px;
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 16px;
    outline: none;
}

/* Sidebar */
.navbar .bx-menu {
    display: none;
}
.navbar .nav-links {
    line-height: 70px;
    height: 100%;
}
.navbar .nav-links .sidebar-logo {
    display: none;
}

/* Responsive Navbar */
@media (max-width: 920px) {
    navigation .navbar {
        padding: 0 25px;
    }
    .navbar .logo a {
        font-size: 27px;
    }
    .navbar .links li {
        padding: 0 10px;
    }
}

@media (max-width: 800px) {
    .navbar .bx-menu {
        display: block;
        font-size: 25px;
        color: #fff;
    }
    navigation .navbar .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 270px;
        background: #0b5ed7;
        line-height: 40px;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        transition: 0.5s;
        z-index: 1000;
        display: block;
    }
    .navbar .nav-links .sidebar-logo {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .sidebar-logo .logo-name {
        font-size: 25px;
        color: #fff;
    }
    .navbar .links {
        display: block;
        margin-top: 20px;
    }
    .navbar .links li {
        display: block;
    }
}

@media (max-width: 370px) {
    navigation .navbar .nav-links {
        max-width: 100%;
    }
}

/*-----------------------------
  Buttons
-----------------------------*/
.btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    display: inline-block;
}

.btn-google {
    color: #fff;
    background-color: #111;
    border: 1px solid #000;
    padding-left: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: relative;
}

.btn-google::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: url('https://4.bp.blogspot.com/-52U3eP2JDM4/WSkIT1vbUxI/AAAAAAAArQA/iF1BeARv2To-2FGQU7V6UbNPivuv_lccACLcB/s30/nexus2cee_ic_launcher_play_store_new-1.png') no-repeat center/cover;
}

.btn-google::after {
    content: "GET IT ON";
    position: absolute;
    top: 5px;
    left: 40px;
    font-size: 10px;
    font-weight: 400;
}

/* =============================
   CANVAS
============================= */
.canvas-wrapper {
    width: 100%;
    max-width: 600px;
    margin: auto;
    box-shadow: rgba(0,0,0,0.35) 0px 5px 15px;
}

/* =============================
   ACTION BUTTONS
============================= */
.action-btn-wrapper {
    gap: 12px; /* controls spacing cleanly */
}

/* Button */
.action-btn {
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon */
.action-btn img {
    width: 28px;
    height: 28px;
}

/* Hide file input */
.action-btn input[type="file"] {
    display: none;
}

/* =============================
   MOBILE ONLY
============================= */
@media (max-width: 767px) {

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .action-btn-wrapper {
        gap: 8px; /* compact vertical buttons */
    }

    .canvas-wrapper {
        max-width: 100%;
    }
}



/*-----------------------------
  Frames
-----------------------------*/
.frames {
    margin-bottom: 10px;
}

.frame-thumb {
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 6px;
    transition: 0.2s;
}

.frame-thumb:hover {
    border-color: #1e73be;
}

/*-----------------------------
  Tab Scroll
-----------------------------*/
.tab-container {
    position: sticky;
    top: 0;
    overflow: hidden;
    width: 100%;
    background: #ffa31a;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 10px 0;
    z-index: 999;
}

.arrow {
    width: 40px;
    height: 100%;
    text-align: center;
    font-size: 20px;
    color: #fff;
    background: #000;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}
.arrow:hover {
    color: #000;
    background: #fff;
}

.tab-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
}
.tab-scroll::-webkit-scrollbar {
    display: none;
}

.tab-item {
    min-width: 170px;
    text-align: center;
    padding: 0 5px;
    white-space: nowrap;
    cursor: pointer;
}

.tab-item img {
    display: none;
    margin-bottom: 6px;
}

.tab-text {
    display: block;
    background: #fff;
    color: #e60073;
    padding: 6px 0;
    border-radius: 25px;
}

.tab-text.active {
    background: #000;
    color: #fff;
}
a
{
    text-decoration: none;
}
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 9999;
}
#backToTop:hover {
    background: #e60073;
}


/* =============================
   ACTION BUTTONS (IMAGE TOOLS)
============================= */

.action-btn-wrapper {
    gap: 12px;
}

/* common button base */
.action-btn,
.action-btn-txt {
    width: 45px;
    height: 45px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;

    font-size: 16px;
    font-weight: 600;
}

/* icons inside buttons */
.action-btn img {
    width: 28px;
    height: 28px;
}

/* hide file input */
.action-btn input[type="file"] {
    display: none;
}

/* =============================
   TEXT TOOLS BAR
============================= */

.text-tools-bar {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================
   MOBILE BEHAVIOR
============================= */

@media (max-width: 767px) {

    /* IMAGE TOOL BUTTONS */
    .action-btn {
        width: 40px;
        height: 40px;
    }

    .action-btn-wrapper {
        gap: 8px;
    }

    /* TEXT TOOL BUTTONS – SAME SIZE AS IMAGE TOOLS */
    .action-btn-txt {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* TEXT TOOL BAR FIXED POSITION */
    .text-tools-bar {
        position: relative;
        left: 7%;
        transform: translateX(-50%);

        padding: 8px 0px;
        border-radius: 12px;
        z-index: 9999;
    }

    .canvas-wrapper {
        position: relative;
    }
}
