/* Import 'Satoshi' font from Fontshare */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: 'Satoshi', sans-serif;
}

.disable-page-interaction {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 999;
    opacity: 0.6;
    pointer-events: all;
    cursor: not-allowed;
}

.top-bar-container {
    min-width: 100%;
    display: flex;
}

.top-bar {
    width: 100vw;
    background-color: transparent;
    color: #3C6EEC;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.top-bar .title {
    margin-left: 20px;
    font-size: 20px;
    font-weight: bold;
}

.top-bar .action-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 30px;
    width: 100%;
    padding: 0 30px;
}

.action-btns .home-btn,
.action-btns .setting-btn,
.action-btns .helper-btn,
.action-btns .dashboard-btn,
.action-btns .pricing-btn,
.action-btns .plan-details-btn,
.action-btns .manage-creatives-btn,
.action-btns .change-password-btn,
.action-btns .email-preferences-btn {
    height: 30px;
    text-align: center;
    color: black;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: transparent;
}

/* Remove gap from the last button in each row */
.action-btns .home-btn:last-child,
.action-btns .setting-btn:last-child,
.action-btns .helper-btn:last-child,
.action-btns .dashboard-btn:last-child,
.action-btns .pricing-btn:last-child,
.action-btns .plan-details-btn:last-child,
.action-btns .manage-creatives-btn:last-child,
.action-btns .change-password-btn:last-child,
.action-btns .email-preferences-btn:last-child {
    margin-right: 0;
}

.action-btns .home-btn:hover,
.action-btns .setting-btn:hover,
.action-btns .helper-btn:hover,
.action-btns .dashboard-btn:hover,
.action-btns .pricing-btn:hover,
.action-btns .plan-details-btn:hover,
.action-btns .manage-creatives-btn,
.action-btns .change-password-btn:hover,
.action-btns .email-preferences-btn:hover {
    cursor: pointer;
}

.action-btns .login-btn,
.action-btns .admin-login-btn,
.action-btns .logout-btn {
    width: 120px;
    height: 30px;
    background-color: #3C6EEC;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-btns .login-btn:hover,
.action-btns .admin-login-btn:hover,
.action-btns .logout-btn:hover {
    background-color: #517deb;
    cursor: pointer;
}

.menu-btn {
    display: none;
    width: 30px;
    position: absolute;
    top: 3.5px;
    left: 5px;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin: 0;
}

.rotate-180 {
    transform: rotate(180deg);
    margin-top: 20px;
}

.spinner {
    display: none;
}

/* Dropdown styling */
.more-btn {
    width: 80px !important;
    height: 30px;
    background-color: #3C6EEC;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.more-btn:hover {
    background-color: #517deb;
    cursor: pointer;
}


.dropdown-menu {
    min-width: auto;
}

.dropdown-item {
    cursor: pointer;
    padding: 8px 16px;
    color: black;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}


@media screen and (max-width: 725px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .top-bar .title {
        margin-left: 0;
        font-size: 16px;
        text-align: center;
    }
    
    .top-bar .action-btns {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    .action-btns .home-btn,
    .action-btns .setting-btn,
    .action-btns .helper-btn,
    .action-btns .dashboard-btn,
    .action-btns .pricing-btn,
    .action-btns .plan-details-btn,
    .action-btns .manage-creatives-btn,
    .action-btns .change-password-btn,
    .action-btns .email-preferences-btn,
    .action-btns .login-btn,
    .action-btns .admin-login-btn,
    .action-btns .logout-btn {
        width: 100%;
        margin: 0 auto;
    }

    .action-btns .login-btn,
    .action-btns .admin-login-btn,
    .action-btns .logout-btn {
        width: 150px;
    }

    .action-btns .admin-login-btn {
        margin-top: 5px;
    }

    .menu-btn {
        display: block;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-btns button,
    .more-btn {
        margin: 5px;
    }
    
    .dropdown-menu {
        position: absolute;
        right: 0;
    }
}

@media screen and (max-width: 300px) {
    .action-btns .login-btn,
    .action-btns .admin-login-btn,
    .action-btns .logout-btn {
        width: 100%;
    }
}
