@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.pixelartFont {
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Stop highlights on buttons, input fields etc. */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus,
[tabindex]:focus {
    box-shadow: none !important;
    outline: none !important;
}

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

@media (max-width: 2500px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1920px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 1440px) {
    html {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 12px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

header {
    height: 80px;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #222222;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto;
}

.site-header {
    background-color: #303030;
    position: fixed;
    padding: 10px 0;
    border-bottom: 1px solid #454545;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 998;
}

@media (max-width: 2500px) {
    .site-header {
        height: 70px;
        padding: 10px 0;
    }
}

@media (max-width: 1920px) {
    .site-header {
        height: 60px;
        padding: 8px 0;
    }
}

@media (max-width: 1440px) {
    .site-header {
        height: 60px;
        padding: 8px 0;
    }
}

@media (max-width: 1024px) {
    .site-header {
        height: 55px;
        padding: 6px 0;
    }
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-left: 20px;
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

a:hover .logo {
    transform: scale(1.1);
}

@media (max-width: 2500px) {
    .logo {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 1920px) {
    .logo {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 1440px) {
    .logo {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 1024px) {
    .logo {
        width: 28px;
        height: 28px;
    }
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex: 1
}

/* User Avatar and Dropdown Styles */
.user-menu-container {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #444;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(205, 120, 255, 0.5);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #568CF4, #A95BD6);
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.user-dropdown {
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: 50px;
    right: 0;
    width: 240px;
    background-color: #303030;
    border: 1px solid #454545;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #454545;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    color: white;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    color: #C2C2C2;
    font-size: 13px;
    margin-top: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: white !important;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.dropdown-icon {
    color: #C2C2C2;
    margin-right: 10px;
}

.logout-item {
    color: #ff6b6b !important;
}

.logout-item .dropdown-icon {
    color: #ff6b6b;
}

/* Updated Sign Up Button */
.sign-up-button {
    background: linear-gradient(90deg, #568CF4, #A95BD6);
    color: white;
    padding: 10px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(161, 86, 207, 0.3);
}

.sign-up-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(161, 86, 207, 0.5);
    color: white;
    text-decoration: none;
}

.sign-up-button:active {
    transform: translateY(0);
}

@media (max-width: 2500px) {
    .user-avatar {
        width: 38px;
        height: 38px;
    }
    
    .sign-up-button {
        padding: 8px 25px;
        font-size: 14px;
    }
}

@media (max-width: 1920px) {
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .sign-up-button {
        padding: 7px 20px;
        font-size: 13px;
    }
}

@media (max-width: 1440px) {
    .user-avatar {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 1024px) {
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .user-dropdown {
        width: 220px;
    }
}

/* Main wrapper styles */
.main-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding-top: 80px;
    align-items: center;
}

@media (max-width: 2500px) {
    .main-wrapper {
        padding-top: 70px;
    }
}

@media (max-width: 1920px) {
    .main-wrapper {
        padding-top: 60px;
    }
}

@media (max-width: 1440px) {
    .main-wrapper {
        padding-top: 60px;
    }
}

@media (max-width: 1024px) {
    .main-wrapper {
        padding-top: 55px;
    }
}

/* Tool Tabs Navigation */
.tool-tabs {
    background-color: transparent;
    padding: 50px 0 0 0;
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.tabs-container {
    display: flex;
    justify-content: center;
    max-width: 1400px;
    padding: 0 25px;
}

.tool-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: #222222;
    color: #9a9a9a;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid #333;
    border-radius: 0;
}

.tool-tab:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.tool-tab:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.tool-tab:not(:last-child) {
    border-right: none;
}

.tool-tab:hover {
    background-color: #2a2a2a;
    color: #fff;
    text-decoration: none;
}

.tool-tab.active {
    background-color: #303030;
    color: #fff;
    z-index: 2;
}

.tool-tab-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    opacity: 0.8;
}

.tool-tab.active .tool-tab-icon {
    opacity: 1;
}

.content-container {
    width: 100%;
    padding: 30px 25px;
    max-width: 1400px;
    margin: 20px auto 0;
    background-color: #303030;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .tabs-container {
        padding: 0 15px;
        width: 100%;
    }
    
    .tool-tab {
        flex: 1;
        font-size: 13px;
        padding: 10px;
    }
    
    .content-container {
        border-radius: 6px;
        padding: 20px 15px;
        margin-top: 15px;
    }
}

/* Simple Footer Styles */
.simple-footer {
    margin-top: auto;
    width: 100%;
    padding: 20px 0;
    background-color: #272727;
    color: #888;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #454545;
}

.simple-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.simple-footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.simple-footer-links a:hover {
    color: #CD78FF;
}

.simple-footer-copyright {
    font-size: 12px;
}

/* Update main-container styles for tools pages */
.main-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }
}

/* Credits Display Styles */
.user-menu-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Credits Display Styles */
.user-credits-display {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #303030, #3a3a3a);
    border: 1px solid #454545;
    border-radius: 10px;
    padding: 5px 20px;
    margin-right: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.user-credits-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 120, 255, 0.2);
    border-color: #CD78FF;
}

.user-credits-display svg {
    height: 20px;
    width: 20px;
    color: #CD78FF;
    margin-right: 8px;
}

.user-credits-display i {
    color: #CD78FF;
    font-size: 18px;
    margin-right: 8px;
}

@media (max-width: 1024px) {
    .user-credits-display {
        padding: 6px 10px;
    }
    
    .user-credits-display svg,
    .user-credits-display i {
        height: 18px;
        width: 18px;
        font-size: 16px;
    }
}