/* ----------------------- GENERAL ----------------------- */
:root {
    --white: #FFFFFF;
    --light-purple: #CACDFF;
    --lighter-purple: #ACAED8;
    --light-gray: #D9D9D9;
    --lighter-gray: #E0E0E0;
    --yellow: #D6BB0E;

    --primary-background: #4A4B5D;
    --secondary-background: #31323F;
    --tertiary-background: #1E1F28;    

    --icons-black: #1E1F28;
    --icons-white: #FFFFFF;
    --icons-purple: #CACDFF;
    
    --hover-light-gray: #4A4B5D;
    --hover-lighter-gray: #5E5F6D;
    --input-text: #1E1F28;

    --dark-button: #1E1F28;
    --hover-dark-button: #13141A;

    --primary-button: #ACAED8;
    --hover-primary-button: #8487BC;

    --secondary-button: #FFFFFF;
    --hover-secondary-button: #E2E2E2;

    --delete-button: #91231B;
    --hover-delete-button: #7B1E17;  

    --download-button: #1B912D;
    --hover-download-button: #197928;
}

* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    color: var(--white);
}

body {
    background-color: var(--primary-background);
    padding: 0;
    margin: 0;
    height: 100vh;
    width: 100%;
}

/* ------------------ SCROLL BAR ------------------*/

::-webkit-scrollbar {
  width: 50px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--white);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lighter-gray);
}

::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

/* Firefox support */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--white) transparent;
}

/* ----------------------- ------- ----------------------- */


/* ----------------------- DESKTOP ----------------------- */

/* --------- BODY --------- */
.desktop_body{
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* --------- USER NOTIFICATIONS | LEFT BAR --------- */
.user_notifications{
    padding: 2em;
    background-color: var(--secondary-background);
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: calc(100vh - 4em);
    flex-direction: column;
    max-height: 100%;
    display: none;
}

#side_notification_header{
    display: flex;
    align-items: center;
    justify-content: center;
}

#side_notification_header h1{
    font-size: 30px;
}

/* NOTIFICATION LIST */
#notification_list {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}

#notification_list ul {
    list-style: none;
    padding: 0;
}

#notification_list ul:first-child {
    border-top: solid 1.5px var(--lighter-purple);
}

#notification_list ul:last-child {
    border-bottom: solid 1.5px var(--lighter-purple);
}

.notification{
    border-top: solid 1px var(--lighter-purple);
    border-bottom: solid 1px var(--lighter-purple);
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.notification:hover {
    background-color: var(--hover-light-gray);
    transition: ease 0.2s;
}

.notification img {
    margin-right: 0.25em;
}

.notification i {
    margin-right: 0.25em;
}

#notification_iteminfo{
    display: flex;
    flex-direction: column;
    width: 12em;
}

#notification_item_header{
    display: flex;
    flex-direction: row;
    align-items: center;
}

#notification_item_header h5 {
    margin: 0.5em 0;
    padding-right: 1em;
}

#notification_iteminfo p {
    margin: 0 0 0.5em 0;
}

/* --------- USER INFO | LEFT BAR --------- */
.tooltip_right {
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: end;
}

.tooltip_right i {
    color:var(--icons-black); 
    font-size: 60px; 
    font-weight:bolder;
    cursor: pointer;
}

.tooltip_right i:hover {
    color:var(--icons-white); 
    transition: ease 0.2s;
}

/* USERS INFO */
.user_info{
    padding: 2em;
    background-color: var(--secondary-background);
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    height: calc(100vh - 4em);
    flex-direction: column;
    display: none;
}

#username_and_image {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

/* OPTIONS PANEL */
#options_panel{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 2em 0;
}

#options_panel i {
    color: var(--icons-white);
    font-size: 30px;
    cursor: pointer;
}

#options_panel i:hover {
    color: var(--icons-black);
    transition: ease 0.2s;
}

/* REPOSITORY LIST */
#repository_list {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}

#repository_list h2{
    justify-self: center;
}

#repository_list ul{
    list-style: none;
    padding: 0;    
}

.repository_item {
    border-bottom: solid 2px var(--lighter-purple);
    width: 12em;
    padding: 0.5em 0.5em;
    margin-bottom: 1em;
    cursor: pointer;
}

.repository_item a {
    text-decoration: none;
}

.repository_item:hover {
    background-color: var(--hover-light-gray);
    transition: ease 0.2s;
}


/* --------- POST FEED | MAIN SECTION --------- */
.main_section{
    flex-grow: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* SEARCH BAR */
#search_tool{
    background-color: var(--tertiary-background);
    padding: 2em 5em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#search_bar_section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 30em;
}

#search_bar_section input {
    border: none;
    border-radius: 20px;
    width: 80%;
    font-size: 20px;
    height: 1.75em;
    color: var(--input-text);
    padding: 0 1em;
    margin-right: 2em;
}

#search_bar_section input:focus {
    outline: none;
}

#search_bar_section i {
    color: var(--icons-purple);
    font-weight: 900;
    font-size: 40px;
    cursor: pointer;
}

#search_bar_section i:hover {
    color:var(--icons-white);
    transition: ease 0.2s;
}

#user_info_menu {
    display: flex;
    flex-direction: row;
    align-items: center;    
}

#menu_opener {
    color: var(--icons-white);
    font-size: 50px;
    font-weight: 900;
    cursor: pointer;
    margin-right: 0.5em;
}

#notification_opener {
    color: var(--icons-white);
    font-size: 40px;
    font-weight: 900;
    cursor: pointer;
}

#user_inbox_menu i {
    color: var(--icons-white);
    font-size: 40px;
    font-weight: 900;
    cursor: pointer;
}

#user_chat_menu i {
    color: var(--icons-white);
    font-size: 40px;
    font-weight: 900;
    cursor: pointer;
}

/* POST FEED | BELOW THE SEARCH BAR */
#main_post_feed{
    flex: 1;
    overflow: auto;
    padding: 2em 3em;
}

/* INDIVIDUAL POSTS */
.post{
    background-color: var(--secondary-background);
    margin-bottom: 2em;
}

.post_header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 2em;
}

.post_header_userinfo{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.post_header_userinfo img {
    margin-right: 0.5em;
}

.post_header_userinfo i {
    margin-right: 0.5em;
}

.post_header_postinfo{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.post_header_postinfo h5 {
    margin-right: 1em;
}

.post_description {
    padding: 0 3em;
}

.post_description h3 {
    margin: 0;
}

.post_description p {
    text-align: justify;
}

.post_seemore {
    margin-top: 2em;
    width: 100%;
}

.post_seemore button{
    width: 100%;
    background-color: var(--dark-button);
    outline: none;
    border: none;
    padding: 0.5em 0;
    cursor: pointer;
}

.post_seemore button:hover{
    background-color: var(--hover-dark-button);
    transition: ease 0.2s;
}


/* --------- SIDE INBOX | RIGHT BAR --------- */
.tooltip_left {
    display: flex;
    align-items: start;
}

.tooltip_left i {
    color:var(--icons-black); 
    font-size: 60px; 
    font-weight:bolder;
    cursor: pointer;
}

.tooltip_left i:hover {
    color: var(--icons-white); 
    transition: ease 0.2s;
}

.side_inbox{
    padding: 2em;
    background-color: var(--secondary-background);
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    height: calc(100vh - 4em);
    flex-direction: column;
    display: none;
}

#side_inbox_header{
    display: flex;
    align-items: center;
    justify-content: center;
}

#side_inbox_header h1{
    font-size: 30px;
}

/* INBOX LIST */
#inbox_list {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}

#inbox_list ul {
    list-style: none;
    padding: 0;
}

#inbox_list ul li:first-child {
    border-top: solid 2px var(--lighter-purple);
}

#inbox_list ul li:last-child {
    border-bottom: solid 2px var(--lighter-purple);
}   

.inbox_notification{
    border-top: solid 1px var(--lighter-purple);
    border-bottom: solid 1px var(--lighter-purple);
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.inbox_notification:hover {
    background-color: var(--hover-light-gray);
    transition: ease 0.2s;
}

.inbox_notification img {
    margin-right: 0.25em;
}

.inbox_notification i {
    margin-right: 0.25em;
}

#inbox_iteminfo{
    display: flex;
    flex-direction: column;
    width: 12em;
}

#inbox_item_header{
    display: flex;
    flex-direction: row;
    align-items: center;
}

#inbox_item_header h5 {
    margin: 0.5em 0;
    padding-right: 1em;
}

.circle_notification {
    width: 0.5em;
    height: 0.5em;
    background-color: var(--lighter-purple);
    border-radius: 100%;
}

#inbox_iteminfo p {
    margin: 0 0 0.5em 0;
}

/* ----------------------- ------- ----------------------- */


/* --------------------- REPOSITORIES ---------------------- */
.repository_info_body {
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

#repository_image {
    background-color: var(--white);
    background-image: url("../imgs/repo_placeholder.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;    
    height: 20%;
    padding: 1em 2em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#repository_image i {
    color: var(--icons-white);
    font-size: 80px;
    cursor: pointer;
}

#repository_image i:hover {
    color: var(--icons-black);
    transition: ease 0.2s;
}

#repository_image h1 {
    font-size: 60px;
    margin: 0;
}

#repository_image h1 i {
    color: var(--icons-white);
    font-size: 60px;
    cursor: pointer;
}

#repository_image h1 input {
    font-size: 60px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    width: fit-content;
}

#repository_image h1 input:focus{
    border: none;
    outline: none;
    border-bottom: 2px solid var(--white);
}

#repository_main {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

#repository_details {
    background-color: var(--tertiary-background);
    display: flex;
    flex-direction: row;
    justify-items: center;
    justify-content: space-between;
    padding: 0.5em 2em;
}

.stars_count {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 8em;
}

.stars_count i {
    font-size: 30px;
    cursor: pointer;
}

#main_info {
    flex: 1;
    display: flex;
    flex-direction: row;
    min-height: 0;
}

#repository_info_left {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 2em 3em;
    flex-grow: 4;
}

#repository_info_description {
    display: flex;
    flex-direction: column;
}

#repository_info_description label {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 1.5em;
}

#repository_info_description textarea {
    background-color: var(--tertiary-background);
    resize: none;
    height: 8em;
    padding: 1em;
    border: none;
    border-radius: 10px;
}

#repository_action_btns {
    margin: 2em 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.delete_btn {
    font-weight: bold;
    padding: 0.5em 1.5em;
    border: none;
    border-radius: 4px;
    background-color: var(--delete-button);
    cursor: pointer;
}

.delete_btn:hover {
    transition: ease 0.2s;
    background-color: var(--hover-delete-button);
}

.play_btn {
    font-weight: bold;
    padding: 0.5em 1.5em;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-button);
    cursor: pointer;
}

.play_btn:hover {
    transition: ease 0.2s;
    background-color: var(--hover-primary-button);
}

.download_btn {
    font-weight: bold;
    padding: 0.5em 1.5em;
    border: none;
    border-radius: 4px;
    background-color: var(--download-button);
    margin-left: 1em;
    cursor: pointer;
}

.download_btn:hover {
    transition: ease 0.2s;
    background-color: var(--hover-download-button);
}

#repository_files {
    width: 100%;
}

#repository_file_list{
    list-style: none;
    padding: 0;
}

.repository_file_item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: solid 2px var(--lighter-purple);
    padding: 0.25em 0;   
}

.repository_file_item:hover {
    transition: ease 0.2s;
    background-color: var(--hover-lighter-gray);
}

.file_item_details {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.file_item_details i {
    margin-left: 1em;    
    cursor: pointer;
    font-size: 30px;
    font-weight: 100;
}

.file_item_details i:hover {
    transition: ease 0.2s;
    color: var(--icons-black); 
}

#repository_discussion_right {
    width: 18%;
    background-color: var(--tertiary-background);
    padding: 1em 2em;
}

#discussion_space {
    height: 90%;
    overflow-y: auto;
    scrollbar-width: none;
}

.discussion_thread {
    border-bottom: 2px solid var(--light-purple);
}

#discussion_item {
    margin-top: 1em;
    padding-bottom: 1em;
}

.level_one_discussion {
    padding-left: 0;
}

.level_two_discussion {
    padding-left: 2em;
}

#discussion_item_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#reply_arrow {
    font-size: 30px;
    cursor: pointer;
}

#reply_arrow:hover {
    color: var(--icons-black);
    transition: ease 0.2s;
}

#discussion_item_header_user {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#discussion_item_header_user i {
    font-size: 40px;
    margin-right: 0.25em;
}

#discussion_item_header_user img {
    margin-right: 0.25em;
}

#discussion_item_content {
    padding: 0 3em;
    text-align: justify;
}

#discussion_item_reply_count {
    padding: 0 3em;
    text-decoration: underline;
    cursor: pointer;
}

#discussion_item_reply_count {
    padding: 0 3em;
}

#message_space {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 10%;
}

#message_space input {
    width: 20em;
    background-color: var(--light-gray);
    border: none;
    border-radius: 4px;
    font-size: 20px;
    color: var(--input-text);
    padding: 0.25em 0.5em;
}

#message_space i {
    font-size: 30px;
    color: var(--light-gray);
    cursor: pointer;
} 

#message_space i:hover {
    color: var(--icons-purple);
    transition: ease 0.2s;
}

/* ---- SPECIFIC CHANGES FOR REPOSITORY CREATION ---- */
.new_repository_body {
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

#repository_submition_right {
    width: 18%;
    background-color: var(--tertiary-background);
    padding: 1em 2em;
}

#submition_message_space {
    height: 90%;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    align-items: center;
    justify-items: center;
    flex: row;
}

#submition_btn_space {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10%;
}

#submit_repo_btn {
    background-color: var(--primary-button);
    width: 90%;
    border: none;
    border-radius: 10px;
    color: var(--input-text);
    font-weight: bold;
    padding: 0.25em;    
    cursor: pointer;
}

#submit_repo_btn:hover {
    background-color: var(--hover-primary-button);
    transition: 0.2s ease;
}

/* ---- SPECIFIC CHANGES FOR CHATS ---- */
.main_chat {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    align-items: center;
    overflow-y: auto;
}

.user_chats {
    display: flex;
    flex-direction: column;
    padding: 1em;
    width: 80%;
    height: 80%;
    overflow-y: auto;
}

.message {
    border-radius: 10px;
    padding: 1em;
    width: 40%;
}

.message:nth-child(odd) {
    background-color: var(--lighter-purple);
    align-self: flex-start;
}

.message:nth-child(even) {
    background-color: var(--light-purple);
    align-self: flex-end;
}

.message p {
    font-weight: 600;
    color: var(--input-text);
}

.user_message_box {    
    width: 80%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user_message_box input {
    border: none;
    padding: 0.25em 0.5em;
    margin-right: 1em;
    width: 60%;
    font-size: 20px;
    background-color: var(--light-gray);
    color: var(--input-text);
}

.user_message_box input:focus {
    outline: none;
    background-color: var(--lighter-gray);
    transition: 0.2s ease;
}

.user_message_box i {
    font-size: 40px;
    color: var(--light-gray);
    cursor: pointer;
}

.user_message_box i:hover {
    color: var(--input-text);
    transition: 0.2s ease;
}

/* --------------------- ---------- ---------------------- */

/* ----------------------- PROFILE ----------------------- */
.profiles_body{
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

#profile_main {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

#user_background {
    background: #000000;
    background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    height: 20%;
    padding: 1em 2em;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#user_background img, #user_background i, #user_background input, #user_background h1 {
    margin-right: 1em;
    font-size: 60px;
}

#user_background input {
    font-weight: bold;
    background-color: transparent;
    border: none;
}

#user_background input:focus {
    outline: none;
    border-bottom: 2px solid var(--white);
}

#user_back_arrow {
    cursor: pointer;
}

#user_back_arrow:hover {
    color: var(--icons-black);
    transition: 0.2s ease;
}

#edit_user_name {
    cursor: pointer;
}

#edit_user_name:hover {
    color: var(--icons-black);
    transition: 0.2s ease;
}

.main_profile {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    min-height: 0;
}

.user_repositories, .user_personal_info, .user_personal_summary, .user_followers  {
    background-color: var(--secondary-background);
    font-size: 20px;
    display: flex;
    flex-direction: column;
    padding: 2em 3em;
    width: 15%;
}

.user_personal_info, .user_personal_summary{
    width: 30%;
}

#user_information{
    display: flex;
    flex-direction: column;
    height: 70%;
    overflow-y: auto;
    overflow-x: none;
    width: 100%;
}

#user_information label{
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0.5em;
}

#user_information input{
    background-color: var(--secondary-background);
    border: none;
    font-size: 16px;
    border-bottom: 2px solid var(--light-purple);
    padding: 0.5em;
    margin-bottom: 2em;
}

#user_information input:focus {
    background-color: var(--hover-lighter-gray);
    transition: 0.2s ease;
    outline: none;
}

#user_info_btns {
    padding: 2em 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#user_info_btns button {
    background-color: var(--primary-button);
    border: none;
    border-radius: 3px;
    padding: 0.25em 0.5em;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
}

#user_info_btns button i {
    margin-right: 0.5em;
}

#user_info_btns button:hover {
    background-color: var(--hover-primary-button);
    transition: 0.2s ease;
}

#user_repository_list {
    overflow-y: auto;    
    overflow-x: none;
}

#user_followers_list {
    overflow-y: auto;    
    overflow-x: none;
}

.user_repositories h1, .user_followers h1 {
    font-size: 30px;
}

.user_repositories ul, .user_followers ul {
    padding: 0;
    list-style: none;
}

.user_repositories ul li, .user_followers ul li {
    border-bottom: solid 2px var(--lighter-purple);
    margin-bottom: 1em;
    padding: 0.5em 0.5em 0.5em 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.user_repositories ul li:hover, .user_followers ul li:hover {
    background-color: var(--hover-light-gray);
    transition: 0.2s ease;
}

.user_followers ul li i {
    margin-right: 0.5em;
}

.user_followers ul li img {
    margin-right: 0.5em;
}

/* ---- SPECIFIC CHANGES FOR USERS PROFILE ---- */
#user_summary ul {
    padding: 0;
    list-style: none;
}

#user_summary ul li {
    border-bottom: 2px solid var(--light-purple);
    padding-bottom: 1em;
    margin-bottom: 2em;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#user_summary ul li h1 {
    margin-right: 0.5em;
}

#follow_user_btn {
    font-size: 30px;
    padding: 0.10em 2em;
    border: none;
    border-radius: 3px;
    background-color: var(--secondary-button);
    color: var(--input-text);
    font-weight: bold;
    cursor: pointer;
}

#follow_user_btn:hover {
    background-color: var(--hover-secondary-button);
    transition: 0.2s ease;
}

/* ----------------------- ------- ----------------------- */

/* -------------------- REGISTER FORM -------------------- */
.container {
    width: 100%;
    max-width: 800px;
    margin: 100px auto;
}

.register-card {
    background-color: var(--secondary-background);
    border-radius: 8px;
    padding: 2.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    text-align: center;
    margin-bottom: 2em;
    border-bottom: 1px solid var(--lighter-purple);
    padding-bottom: 1.5em;
}

.card-header h1 {
    font-size: 32px;
    margin: 0 0 0.5em 0;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.card-header h1 i {
    font-size: 32px;
    color: var(--light-purple);
}

.card-header p {
    color: var(--light-purple);
    margin: 0;
    font-size: 18px;
}

.register-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-bottom: 1.5em;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5em;
}

.form-group label {
    margin-bottom: 0.5em;
    font-weight: 500;
    color: var(--light-purple);
}

.form-group input {
    background-color: var(--light-gray);
    border: none;
    border-radius: 4px;
    padding: 0.75em 1em;
    color: var(--input-text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: 2px solid var(--light-purple);
    background-color: var(--white);
}

.file-label {
    margin-bottom: 0.5em;
    font-weight: 500;
    color: var(--light-purple);
}

.file-upload-area {
    border: 2px dashed var(--lighter-purple);
    border-radius: 4px;
    padding: 1.5em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    background-color: var(--hover-light-gray);
    border-color: var(--light-purple);
}

.file-upload-area.highlight {
    background-color: var(--hover-light-gray);
    border-color: var(--light-purple);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.file-upload-area i {
    font-size: 40px;
    color: var(--lighter-purple);
    margin-bottom: 0.5em;
}

.file-upload-area p {
    margin: 0.25em 0;
    color: var(--light-purple);
}

.file-types {
    font-size: 14px;
    color: var(--lighter-purple) !important;
}

.file-upload-area input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-area.has-file {
    border-color: var(--light-purple);
    background-color: rgba(202, 205, 255, 0.1);
}

.file-preview {
    margin-top: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.file-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid var(--light-purple);
}

.file-preview.active {
    display: flex;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5em;
    flex-wrap: wrap;
    gap: 1em;
}

.btn {
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--dark-button);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--hover-dark-button);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-purple);
    text-decoration: underline;
}

.btn-secondary:hover {
    color: var(--white);
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 0.25em;
    min-height: 20px;
}

.form-group.error input {
    outline: 2px solid #ff6b6b;
}

.form-group.error .file-upload-area {
    border-color: #ff6b6b;
}

.success-message {
    background-color: var(--download-button);
    color: var(--white);
    padding: 1em;
    border-radius: 4px;
    margin-top: 1em;
    text-align: center;
    display: none;
}

.success-message.active {
    display: block;
}

/* ----------------------- RESPONSIVE ----------------------- */
@media (max-width: 768px) {
    .container {
        padding: 1em;
    }
    
    .register-card {
        padding: 1.5em;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1em;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-header h1 {
        font-size: 28px;
    }
}

/* -------------------- ------------- -------------------- */

/* ---------------------- LOGIN PAGE ---------------------- */
.login-body {
    background: linear-gradient(135deg, var(--primary-background) 0%, var(--tertiary-background) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background-color: var(--secondary-background);
    border-radius: 12px;
    padding: 2.5em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
    gap: 1em;
}

.forgot-password, .create-account {
    color: var(--light-purple);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.forgot-password:hover, .create-account:hover {
    color: var(--white);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5em;
}

.btn {
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background-color: var(--dark-button);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--hover-dark-button);
    transform: translateY(-2px);
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 0.25em;
    min-height: 20px;
    display: none;
}

.success-message {
    background-color: var(--download-button);
    color: var(--white);
    padding: 1em;
    border-radius: 4px;
    margin-top: 1em;
    text-align: center;
    display: none;
}

.success-message.active {
    display: block;
}

/* ----------------------- RESPONSIVE LOGIN ----------------------- */
@media (max-width: 768px) {
    .login-card {
        padding: 1.5em;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }
    
    .forgot-password, .create-account {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .login-body {
        padding: 0.5em;
    }
    
    .login-card {
        padding: 1em;
    }
    
    .card-header h1 {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
    }
    
    .forgot-password, .create-account {
        align-self: center;
    }
}

/* -------------------- MESSAGES STYLE -------------------- */
.message_container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Gray with 70% opacity */
  z-index: 1; /* Ensures the overlay is above the message content */
}

.message_box {
  position: absolute; /* Ensures message content is above the overlay if z-index is higher */
  z-index: 2; /* Adjust as needed, ensure it's higher than the overlay if content needs to be clickable */
  left: 30%;
  top: 20%;
  background-color: var(--primary-background);
  padding: 2em 3em;
  width: 40%;
  height: 50%;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}

.close_message_box {
    display: flex;
    justify-content: end;
    height: 5%;
}

#close_message_btn {
    border-radius: 100%;
    width: 35px;
    height: 35px;
    border: none;
    background-color: var(--dark-button);
    cursor: pointer;
}

#close_message_btn:hover {
    background-color: var(--hover-dark-button);
    transition: 0.2s ease;
}

.title_message_box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15%;
    padding-bottom: 1em;
}

.title_message_box h1 {
    font-size: 50px;
    padding: 0;
    margin: 0;
}

.content_message_box {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* FOR PARAGRAPHS */
.content_message_box p {
    margin-bottom: 1em;
} 

/* FOR LISTS */
.content_message_box ul {
    padding: 0;
    list-style: none;
}

.content_message_box ul li {
    border-top: solid 1px var(--lighter-purple);
    border-bottom: solid 1px var(--lighter-purple);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
}

.content_message_box ul li div{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.content_message_box ul li div i {
    margin-right: 0.5em;
}

.content_message_box ul li div img {
    margin-right: 0.5em;
}

.content_message_box ul li:first-child {
    border-top: solid 2px var(--lighter-purple);
}

.content_message_box ul li:last-child {
    border-bottom: solid 2px var(--lighter-purple);
}

.content_message_box ul li:hover {
    background-color: var(--hover-lighter-gray);
    transition: ease 0.2s;
}

/* FOR INPUTS */
.content_message_box label {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.content_message_box input {
    background-color: var(--primary-background);
    border: none;
    border-bottom: 2px solid var(--light-purple);
    padding: 0.5em;
    margin-bottom: 2em;
}

.content_message_box input:focus {
    background-color: var(--hover-lighter-gray);
    transition: 0.2s ease;
    outline: none;
}

.btns_message_box {
    padding-top: 2em;
    height: 10%;
    display: flex;
    justify-content: space-evenly;
}

.btns_message_box #btn_message_primary, #btn_message_delete, #btn_message_success {
    width: 10em;
    height: 2.2em;
    border-radius: 3px;
    border: none;
    cursor: pointer;
}

.btns_message_box #btn_message_primary {
    background-color: var(--primary-button);
    color: var(--input-text);
    font-weight: bold;
}

.btns_message_box #btn_message_primary:hover {
    background-color: var(--hover-primary-button);
    transition: 0.2s ease;
}

.btns_message_box #btn_message_delete {
    background-color: var(--delete-button);
    font-weight: bold;
}

.btns_message_box #btn_message_delete:hover {
    background-color: var(--hover-delete-button);
    transition: 0.2s ease;
}

.btns_message_box #btn_message_success {
    background-color: var(--download-button);
    font-weight: bold;
}

.btns_message_box #btn_message_success:hover {
    background-color: var(--hover-download-button);
    transition: 0.2s ease;
}

/* -------------------- -------------- -------------------- */