:root {
    --primary-color: #6A5ACD;
    --hover-blue: #5b88b2;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #ccc;
    --dark-gray: #666;
    --border-radius: 12px;
    --input-bg: #f0f0f0;
    --lilita-one-font: 'Lilita One', cursive;
    --sansation-font: 'Sansation', sans-serif;
    --safe-area-bottom: 0px;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--sansation-font);
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    width: 100vw;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 450px;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 20px;
    overflow: hidden; 
    position: relative; 
    padding-bottom: 80px;
}

.top-bar-image {
    width: 100%;
    height: 36px;
    flex-shrink: 0;
    z-index: 10;
    position: sticky;
}

.android-bar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}


.content-area {
    flex-grow: 1;
    position: relative;
    padding: 0;
    width: 100%;
    overflow-y: auto;

   
    &::-webkit-scrollbar {
        display: none;
    }
   
    scrollbar-width: none;
}

.screen {
    width: 100%;
    position: absolute;
    top: 0;
    transform: translateX(100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.screen.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
    visibility: visible;
    pointer-events: none;
}

.screen-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    width: 100%;
}


.login-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Images/login_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.8;
}

.logo-container {
    margin-top: 50px;
    margin-bottom: 5px;
    text-align: center;
}

.app-logo {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.welcome-text {
    font-family: var(--lilita-one-font);
    font-size: 1.8em;
    font-weight: normal;
    margin-bottom: 5px;
    text-align: center;
}

.subtitle {
    font-family: var(--sansation-font);
    font-size: 1em;
    color: var(--dark-gray);
    margin-bottom: 40px;
    text-align: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: auto;
}

.input-group input,
.profile-details-group input,
.profile-details-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1em;
    background-color: var(--input-bg);
    font-family: var(--sansation-font);
}

.input-group input::placeholder,
.profile-details-group input::placeholder,
.profile-details-group textarea::placeholder {
    color: var(--dark-gray);
    opacity: 0.7;
    font-family: var(--sansation-font);
}


.decorative-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.crown-decoration {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 80px;
    height: auto;
    opacity: 0.7;
}

.pencil-decoration {
    position: absolute;
    bottom: 50px;
    right: 0px;
    width: 100px;
    height: auto;
    opacity: 0.7;
}

.scribble-decoration {
    position: absolute;
    bottom: -10px;
    left: 0px;
    width: 100px;
    height: auto;
    opacity: 0.7;
}


.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding-top: 20px;
    margin-top: auto;
}

.btn {
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: var(--sansation-font);
}


.btn-outlined {
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
}


.btn-filled {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
}


.btn:hover {
    background-color: var(--hover-blue);
    border-color: var(--hover-blue);
    color: #fff;
}


.large-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.large-icon-btn i {
    font-size: 1.3em;
}


.crown-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    margin-top: 90px;
    width: 120px;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
}

.crown-illustration-large {
    position: absolute;
    top: -75px;
    width: 80px;
    height: auto;
    z-index: 2;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    background-color: var(--light-gray);
    position: relative;
    z-index: 1;
}


.interactive-avatar {
    cursor: pointer;
}

.interactive-avatar:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}


.avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 0;
    margin-bottom: auto;
}

.avatar-option {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.avatar-option:hover {
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: var(--primary-color);
}

.avatar-title {
    font-family: var(--lilita-one-font);
    font-size: 1.5em;
    font-weight: normal;
    text-align: center;
    margin-bottom: 5px;
}

.avatar-subtitle {
    font-size: 0.9em;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 20px;
}


.profile-details-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    margin-bottom: auto;
    width: 100%;
}

.profile-details-group label {
    font-size: 0.9em;
    color: var(--dark-gray);
    margin-bottom: -10px;
    margin-top: -10px;
}

.profile-details-group textarea {
    min-height: 80px;
    resize: vertical;
}

.profile-name {
    font-family: var(--lilita-one-font);
    font-size: 1.5em;
    font-weight: normal;
    text-align: center;
    margin-bottom: 0px;
}

.profile-username {
    font-size: 0.9em;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 20px;
}

.row-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.row-inputs .input-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.screen-header-with-back {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.screen-header-with-back .back-arrow {
    font-size: 1.8em;
    color: var(--dark-gray);
    cursor: pointer;
}


.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 70px;
    background-color: #fff;
    border-top: 1px solid var(--medium-gray);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    border-radius: 20px 20px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 0.75em;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    padding-top: 10px;
}

.nav-item i {
    font-size: 1.4em;
    margin-bottom: 0;
}

.nav-item.active {
    color: #000;
    font-weight: 700;
}


.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #000;
}

.nav-item:hover:not(.active) {
    color: var(--hover-blue);
}

.nav-item.compose-btn {
    background-color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    top: -30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    border: 4px solid #122c4f;
    transition: background-color 0.3s ease;
}

.nav-item.compose-btn .compose-icon {
    width: 70%;
    height: auto;
    transform: translateY(-2px);
}


.nav-item span {
    display: none;
}