:root {
    --oxford-blue: #032245;
    --dodger-blue: #2F8EFF;
    --jordy-blue: #91BBFF;
    --ghost-white: #F6F9FF;
    --xanthous: #FFB52E;
    --font-title: 'Righteous', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

@keyframes like-pop {
    0% {
    transform: scale(1);
    }
    60% {
    transform: scale(1.25);
    }
    100% {
    transform: scale(1.15);
    }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

a {
    text-decoration: none !important;
}

object {
    pointer-events: none;
}

body {
    background-color: #17191C;
    min-height: 100vh;
    height: fit-content;
    padding-top: calc(12vh + 20px);
    display: flex; 
    flex-direction: column; 
    row-gap: 20px;
}

main {
    display: flex; 
    flex-direction: row; 
    column-gap: 20px; 
    width: 100%;
    padding: 0 2%;
    min-height: 88vh;
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;

    & > object {
        width: 75px;
        height: 75px;
    }

    & .logo-link {
        width: 100%;
        height: 100%;
    }
}

.content_section {
    height: fit-content;
}

header {
    width: 96%;
    background-color: #262D34;
    margin: 0 auto;
    padding: 0% 1%;
    border-radius: 0 0 12px 12px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    height: 12vh;
    z-index: 1000;

    & > div {
        display: flex;
        flex-direction: row;
        gap: 100px;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 100%;

        & > div {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }
    }

    & .main-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: end;
        width: 100%;
        column-gap: 100px;

        & .left-info {
            display: flex;
            flex-direction: column;
            width: calc(100% - 250px - 100px);
        }

        & .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: #2C353D;
            border-radius: 0 0 7px 7px;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
            z-index: 100;
            padding: 10px 0;
            display: none;
            border: 2px solid #2C353D;
            border-top: none;
            flex-direction: column;
            height: fit-content;

            & ul {
                list-style: none;
                padding: 0;

                &.project-results {
                    margin: 0;
                }
            }

            & a {
                display: flex;
                align-items: center;
                gap: 10px;
                padding: 8px 10px;
                cursor: pointer;
                color: var(--ghost-white);
                transition: background 0.2s;

                &:hover {
                    background-color: var(--dodger-blue);
                    color: #17191C;
                }
            
                & img, & i {
                    width: 50px;
                    height: 50px;
                    font-size: 30px;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    line-height: 1;
                }
            }
        }

        & .search-section {

            & h4 {
                margin-bottom: 8px;
                font-size: 0.9rem;
                color: var(--dodger-blue);
                font-weight: bold;
            }
        }

        & .searchbar {
            background-color: #2C353D;
            padding: 10px 15px;
            border-radius: 7px;
            display: flex;
            flex-direction: row;
            align-items: center;
            border: 2px solid #2C353D;
            
            &:has(input:focus) {

                &.active {
                    border-radius: 7px 7px 0 0;
                }

                & small {
                    visibility: hidden;
                }
            }
            
            & small {
                color: #858EAD;
            }

            & > div:nth-of-type(1) {
                display: flex;
                flex-direction: row;
                width: 100%;
                position: relative;

                & > input {
                    position: absolute;
                    border: none;
                    width: 100%;
                    background-color: transparent;
                    color: var(--ghost-white);

                    &:focus {
                        outline: none;
                    }
                }
            }

            & > div.search-icon {
                cursor: pointer;
            }
        }

        & > .right-info {
            display: flex;
            flex-direction: row;
            column-gap: 20px;
            width: 250px;
            align-items: center;

            & button.login-button_header {
                background-color: var(--dodger-blue);
                box-shadow: 0px 0px 0px 2px var(--oxford-blue);
                color: var(--ghost-white);
                font-size: 1.15rem;
                font-weight: bold;
                padding: 10px 20px;
                border-radius: 10px;
                border: 1px solid rgba(255,255,255,0.25);
                cursor: pointer;
                transition: all 0.15s ease-in-out;

                &:hover {
                    background-color: var(--oxford-blue);
                    scale: 1.1;
                }
            }

            /*& button.signup-button_header {
                background-color: var(--oxford-blue);
                box-shadow: 0px 0px 0px 2px var(--oxford-blue);
                color: var(--ghost-white);
                font-size: 1.15rem;
                padding: 10px 20px;
                border-radius: 10px;
                border: 1px solid rgba(255,255,255,0.25);
                cursor: pointer;
                transition: all 0.15s ease-in-out;

                &:hover {
                    background-color: var(--dodger-blue);
                    color: #17191C;
                    scale: 1.1;
                }
            }*/

            & button.social-btn {
                padding: 10px 20px;
                font-size: 1.15rem;

                & i {
                    width: fit-content;
                    height: fit-content;
                    font-size: 1.5rem;
                }
            }

            & > .icon {
                cursor: pointer;
                background-color: #2C353D;
                border-radius: 7px;
                width: 50px;
                height: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease-in-out;

                &,
                & > i,
                & > i::before {
                    vertical-align: middle;
                    line-height: 1;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                }

                &:hover {
                    background-color: var(--dodger-blue);
                    transform: scale(1.1);

                    & > i {
                        color: #17191C;
                    }
                }

                & > i {
                    font-size: 1.5rem;
                    color: var(--ghost-white);
                    transition: all 0.3s ease-in-out;
                }
            }

            & > .header-profile {
                display: flex;
                flex-direction: row;
                align-items: center;


                & > div:nth-of-type(1) {
                    color: var(--ghost-white);
                    cursor: pointer;
                    width: 50px;
                    height: 50px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    border: 2px solid var(--dodger-blue);
                    border-radius: 7px;
                    padding: 3px;

                    & > .inside-box {
                        border-radius: 4px;
                        background-color: var(--jordy-blue);
                        width: 100%;
                        aspect-ratio: 1/1;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        & img {
                            width: 100%;
                            aspect-ratio: 1/1;
                        }
                    }
                }

                & > .profile-name {
                    color: var(--ghost-white);
                    font-size: 1.1rem;
                    margin-left: 10px;
                    display: flex;
                    flex-direction: row;
                    align-items: end;
                    gap: 5px;

                    & > a {
                        text-decoration: none;
                        color: var(--ghost-white);
                        font-size: 1.1rem;
                        transition: all 0.3s ease-in-out;

                        &:hover {
                            color: var(--dodger-blue);
                            scale: 1.1;
                        }
                    }
                }
            }
        }
    }
    
    #dropdownIcon {
        cursor: pointer;
        padding: 0 3px;
        transition: all 0.3s ease-in-out;

        &.rotate {
            transform: rotate(180deg);
        }
    }

    #dropdown {
        position: absolute;
        margin: 20px 0 0 0;
        top: 50%;
        left: 95%;
        width: 150px;
        transform: translateX(-50%);
        background-color: #2C353D;
        border-radius: 12px;
        padding: 10px 0;
        display: none;
        border: 1px solid #17191C;

        &.show {
            display: block;
        }

        & > ul {
            display: flex;
            flex-direction: column;
            row-gap: 10px;
            padding: 10px 0;
            width: 100%;
            list-style-type: none;
            margin-bottom: 0;

            & > li {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                width: 100%;
                padding: 10px 0;
                cursor: pointer;
                transition: all 0.3s ease-in-out;

                &:hover {
                    background-color: var(--dodger-blue);
                    scale: 1.1;

                    & > a {
                        color: #17191C;
                    }
                }

                & > a {
                    text-decoration: none;
                    color: var(--ghost-white);
                    width: 100%;
                    height: 100%;
                    transition: all 0.3s ease-in-out;  
                }
            }
        }
    }
}

.logo-title {
    font-size: 2.5rem;
    color: var(--dodger-blue);
    font-family: var(--font-title);
    text-decoration: none;
    margin-left: 10px;
    margin-bottom: 0;

    & + small {
        display: none;
        color: var(--dodger-blue);
        font-family: var(--font-body);
    }
}

.mobile-header-bar,
.mobile-nav {
    visibility: hidden;
}

.mobile-search {
    visibility: hidden;
}

@media screen and (max-width: 1000px) {
    .mobile-search-dropdown {
      width: 100%;
      padding: 0 10px;
    }

    .mobile-search-dropdown input {
      width: 100%;
      padding: 8px 12px;
      border-radius: 6px;
      border: none;
      font-size: 1rem;
      background-color: #1f252b;
      color: var(--ghost-white);
    }

    .mobile-search-dropdown input::placeholder {
      color: #aaa;
    }

    .mobile-search-dropdown.hidden {
      display: none;
    }
    .main-header {
      display: none !important;
    }

    .mobile-header-bar {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      position: absolute;
      top: 0;
      right: 20px;
      width: fit-content;
      visibility: visible;
    }

    .hamburger-button {
      background: none;
      border: none;
      font-size: 1.8rem;
      color: var(--ghost-white);
      cursor: pointer;
    }

    .mobile-nav {
      display: flex;
      flex-direction: column;
      gap: 10px;
      background-color: #2C353D;
      border-radius: 10px;
      padding: 10px;
      animation: slideDown 0.2s ease-in-out;
      visibility: visible;
      position: relative;
    }

    .mobile-nav a {
      color: var(--ghost-white);
      text-decoration: none;
      padding: 10px;
      border-radius: 5px;
    }

    .mobile-nav.hidden {
      display: none;
    }

    .search-results {
        position: absolute;
        top: 40%;
        left: 0;
        width: 100%;
        background-color: #2C353D;
        border-radius: 0 0 7px 7px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 100;
        padding: 10px 0;
        display: none;
        border: 2px solid #2C353D;
        border-top: none;
        flex-direction: column;
        height: fit-content;

        & ul {
            list-style: none;
            padding: 0;

            &.project-results {
                margin: 0;
            }
        }

        & a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            cursor: pointer;
            color: var(--ghost-white);
            transition: background 0.2s;

            &:hover {
                background-color: var(--dodger-blue);
                color: #17191C;
            }
            
            & img, & i {
                width: 50px;
                height: 50px;
                font-size: 30px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                line-height: 1;
            }
        }
    }
}

@media screen and (max-width: 1200px) {
    
}
/* End of Header Styles */

/* Start of Footer Styles */
.footer {
  background-color: #1c1c1e;
  color: #f0f0f0;
  padding: 2% 20% 2% 20%;
  font-size: 14px;
  unicode-bidi: normal;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: row;
  gap: 30px;
  width: 100%;
}


.footer-section h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #bbbbbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ffffff;
}

.social-icons a {
  margin-right: 10px;
  color: #bbbbbb;
  font-size: 18px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
}
/* End of Footer Styles */

/* Start of Sidebar Styles*/
.sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
    
    div.sidebar_categories, div.sidebar_tags {
        width: 100%;
        background-color: #262D34;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);

        &:has( .mobile) {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;

            & > div {
                row-gap: 0;
            }

            & h1 {
                margin-bottom: 0;
            }
        }

        & > div {
            display: flex;
            flex-direction: column;
            row-gap: 10px;


            & .sidebar_tags_header, & .sidebar_categories_header {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                width: 100%;
                padding: 10px 0;
                color: var(--dodger-blue);
            }

            & h1 {
                color: var(--ghost-white);
                font-size: 1.5rem;
            }

            & > div.categories_list {
                display: flex;
                flex-direction: column;
                row-gap: 10px;
                width: 100%;
                padding: 10px 0;

                &.mobile {
                    flex-direction: row;
                    row-gap: 0;
                    column-gap: 10px;
                    flex-wrap: wrap;
                    & .category_item {
                        width: fit-content;
                    }
                }

                & > .category_item {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    width: 100%;
                    column-gap: 10px;
                    border-radius: 7px;
                    background-color: #2C353D;
                    cursor: pointer;
                    transition: all 0.3s ease-in-out;
                    color: var(--ghost-white);
                    padding: 10px 0;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;

                    &:hover {
                        background-color: var(--jordy-blue);
                        color: #17191C;
                        scale: 1.05;
                        transition: all 0.2s;
                    }

                    &:active {
                        scale: 0.98;
                        transition: all 0.1s;
                    }

                    &.active {
                        background-color: var(--dodger-blue);
                        color: #17191C;
                        font-weight: bold;
                        scale: 1.08;
                        transition: all 0.2s;
                        
                        &:active {
                            scale: 0.98;
                            transition: all 0.1s;
                        }
                    }
                    
                    & > div.category_icon {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 50px;
                        height: 50px;
                        border-radius: 7px;
                        cursor: pointer;
                        transition: inherit;

                        & > i {
                            font-size: 1.2rem;
                        }
                    }


                    & > div.category_name {
                        display: flex;
                        flex-direction: column;
                        align-items: start;
                        justify-content: center;

                        & > h2 {
                            font-size: 1.1rem;
                        }
                    }
                }
            }


        }
    }

#mobile_tags_list {
    display: none;
}

@media (max-width: 1050px) {
  #mobile_tags_list {
    display: flex; /* o block, según tu diseño */
  }

  #tags_list {
    display: none;
  }
}

div.tags_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    column-gap: 10px;
    border-radius: 7px;
    background-color: #2C353D;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    color: var(--ghost-white);
    padding: 10px 15px;
    text-decoration: none;
    color: var(--ghost-white);
    font-size: 1.1rem;

    &:hover {
        background-color: var(--jordy-blue);
        color: #17191C;
        scale: 1.01;
        transition: all 0.2s;
    }

    &:active {
        scale: 0.9;
        transition: all 0.1s;
    }

    &.active {
        background-color: var(--dodger-blue);
        color: #17191C;
        scale: 1;
        transition: all 0.2s;

        &:active {
            scale: 0.9;
            transition: all 0.1s;
        }
    }

    & > span {
        display: flex;
        align-items: center;
        column-gap: 10px;
    }
}

/*Sidebar Styles End*/

/*Login Styles*/
body:has(.login_section), body:has(.signup_section) {
    padding-top: 2%;

    & main {
        padding-bottom: 2%;
    }
}

section.login_section, section.signup_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 2% 5%;
    background-color: #2C353D;
    color: var(--ghost-white);
    margin: 0 auto;

    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    border-radius: 12px;

    & a {
        text-decoration: none;
        color: var(--dodger-blue);
        &:visited {
            color: var(--dodger-blue);
        }
    }

    & > .login_form > form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
        padding: 20px 0;

        & .input-container {
            width: 100%;
            text-align: start;
            display: flex;
            flex-direction: row;
            gap: 10px;

            & > div {
                display: flex;
                flex-direction: column;
                align-items: start;
                justify-content: center;
                width: 100%;

                & > input {
                    width: 100%;
                }
            }
        }
        
        & input {
            border-radius: 7px;
            padding: 10px 15px;
            border: 2px solid #2C353D;

            &:focus {
                outline: none;
                border: 2px solid var(--dodger-blue);
            }
        }

        & button {
            background-color: var(--dodger-blue);
            box-shadow: 0px 0px 0px 2px var(--oxford-blue);
            color: var(--ghost-white);
            font-size: 1.15rem;
            padding: 10px 20px;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.25);
            cursor: pointer;
            transition: all 0.3s ease-in-out;

            &:hover {
                background-color: var(--oxford-blue);
                scale: 1.1;
            }
        }
    }

    & > div.social_login {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;


    }
}

section.signup_section {
    font-size: 1.1rem;
    gap: 10px;
    padding: 0.75% 4%;

    & > .login_form > form {

        & input {
            padding: 10px 10px;
            font-size: 1rem;
        }
    }
}

.social_buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    margin-bottom: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    color: #333333;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease-in-out;

    &:hover {
        background-color: #2C353D;
        scale: 1.05;
        color: var(--ghost-white);
    }
}

.social-btn img, .social-btn i {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    font-size: 2rem;
}

.signup_link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
    margin-bottom: 20px;

    & p {
        margin-bottom: 0;
    }
}

/* Account Section Styles */
.edit_account_section {
  max-width: 600px;
  margin: 60px auto;
  background-color: #262D34;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  color: var(--ghost-white);
  font-family: var(--font-body);
}

.edit_account_section h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--dodger-blue);
  margin-bottom: 25px;
  text-align: center;
}

.edit_account_form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form_group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form_group label {
  font-weight: bold;
  color: var(--jordy-blue);
}

.form_group input,
.form_group textarea {
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid #2C353D;
  background-color: #17191C;
  color: var(--ghost-white);
  font-size: 1rem;
  transition: border 0.3s ease-in-out;
}

.form_group input:focus,
.form_group textarea:focus {
  outline: none;
  border-color: var(--dodger-blue);
}

.form_actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.form_actions button {
  background-color: var(--dodger-blue);
  color: var(--ghost-white);
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-weight: bold;
  box-shadow: 0px 0px 0px 2px var(--oxford-blue);
}

.form_actions button:hover {
  background-color: var(--oxford-blue);
  transform: scale(1.1);
}

/* End of Account Section Styles */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: #262D34;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
}

.modal_content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal_content h2 {
    font-size: 1.5rem;
    color: var(--dodger-blue);
}

.modal_content .input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal_content .input-container label {
    font-size: 1rem;
    color: var(--ghost-white);
}

.modal_content .input-container input,
.modal_content .input-container textarea {
    width: 100%;
    padding: 10px;
    border-radius: 7px;
    border: 2px solid #2C353D;
    background-color: #17191C;
    color: var(--ghost-white);
}

.modal_content .input-container input:focus,
.modal_content .input-container textarea:focus {
    outline: none;
    border: 2px solid var(--dodger-blue);
}

.modal_content button {
    background-color: var(--dodger-blue);
    color: var(--ghost-white);
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
}

.modal_content button:hover {
    background-color: var(--oxford-blue);
    scale: 1.1;
}

.modal_content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--ghost-white);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.modal_content .close:hover {
    color: var(--dodger-blue);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .account_info {
        flex-direction: column;
        align-items: center;
    }

    .account_picture img {
        width: 120px;
        height: 120px;
    }

    .account_details h2 {
        font-size: 1.2rem;
    }

    .account_details p {
        font-size: 0.9rem;
    }
}
/* End of account Section Styles */

/* General Styles for Projects Page */

.projects_list_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    row-gap: 20px;
    color: var(--ghost-white);
    border-radius: 12px;
    width:80%;
}

.projects_section, .project_creation_section, .project_search_section {
    padding: 20px;
    width: 100%;
    background-color: #262D34;
    color: var(--ghost-white);
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.projects_section h1, 
.project_creation_section h1, 
.project_search_section h1 {
    font-size: 2rem;
    color: var(--dodger-blue);
    margin-bottom: 20px;
    text-align: center;
}

.project_creation_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;

    & > div {
        display: flex;
        flex-direction: row;
        column-gap: 10px;

        & > div:first-of-type {
            border: 2px solid var(--dodger-blue);
            border-radius: 50%;
            padding: 5px;
            height: fit-content;
            width: fit-content;

            & .inside-box {
                border-radius: 50%;

                & object {
                    width: 50px;
                }
            }
        }
    }
    & .upload_projects_container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        column-gap: 20px; 
        
        & > span {
            font-size: 1.2rem;
            font-weight: bold;
        }
    }
}

.post_text_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    
    & div:first-of-type {
        width: 15px;
        height: 15px;
        background-color: #2C353D;
        clip-path: polygon(100% 0, 0 50%, 100% 100%);
    }
    
    & .post_text {
        border-radius: 7px;
        padding: 10px 15px;
        background-color: #2C353D;
    }

    & span {
        font-size: 1.1rem;
        font-weight: bold;
    }
}

.post_user {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 20px;

    & > div {
        padding: 2px;
        border-radius: 50%;
        border: 2px solid var(--dodger-blue);

        & .inside-box {
            background-color: var(--jordy-blue);
            border-radius: 50%;

            & > img {
                width: 35px;
                border-radius: 50%;
            }
        }
    }
}

.post {
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 5px;
    padding: 10px 20px;
    transition: all 0.2s ease-in-out;
    z-index: 1;
    border-radius: 12px;

    & .post_description {
        text-align: start;
        height: 3.6em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
    }

    & a {
        transition: all 0.2s ease-in-out;
    }

    &:hover {
        transform: translateY(-10px);
        box-shadow: 0 5px 4px 6px rgba(0,0,0,0.15);
        scale: 1.05;

        & a:hover {
            scale: 1.05;
        }
    }
}

/* Projects List Styles */
.projects_container {
    display: flex;
    flex-direction: column;
    gap: 20px;

    & .sort_container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 20px;

        & > .sort_section {
            display: flex;
            align-items: center;
            justify-content: start;
            column-gap: 10px;
        }

        & .sort_title {
            font-weight: bold;
        }

        & #sort_select {
            padding: 10px;
            background-color: #2C353D;
            border: none;
            border-radius: 7px;
            color: var(--ghost-white);
            font-weight: bold;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: all 0.2s ease-in-out;

            &:hover {
                scale: 1.05;
                box-shadow: 0 0 0 2px var(--dodger-blue);
            }

            & option {
                font-family: var(--font-body);
            }
        }
    }

    & i {
        font-size: 1.2rem;
    }
}

.filter_section {
    visibility: hidden;
    display: none;

    & .filter-dropdown {
        display: block;
        position: absolute;
        background: rgb(34, 34, 34);
        border: 1px solid rgb(68, 68, 68);
        padding: 12px;
        z-index: 1000;
        min-width: 200px;
        width: 85vw;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px;
        border-radius: 8px;
        right: calc(100% - 0.7rem);
        visibility: hidden;

        & > div {
            box-shadow: none;

            &:first-of-type {
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
            }

            &:last-of-type {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                & h1 {
                    margin-bottom: 0;
                }
            }
        }
    }

    & > i {
        font-size: 1.4rem;
    }
}

.post_stats {
    display: flex;
    flex-direction: row;
    column-gap: 10px;

    & > div {
        font-size: 1.4rem;
        display: flex;
        align-items: center;
        justify-content: start;
        text-align: center;
        column-gap: 5px;
    }

    & .like-button {
        cursor: pointer;
        transition: all 0.1s ease-in-out;

        &:hover {
            scale: 1.05;
            color: rgb(255, 100, 100);
        }

        &.clicked {
            color: red;
            animation: like-pop 0.2s;
            scale: 1.15;
        }
    }

    & .comment-button {
        cursor: pointer;
        transition: all 0.1s ease-in-out;

        &:hover {
            color: var(--dodger-blue);
            scale: 1.05;
        }

        &.clicked {
            color: var(--dodger-blue);
            scale: 1.15;
        }
    }

}

.projects_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
    width: 100%;
    border-radius: 12px;
    color: var(--ghost-white);
    margin: 0 auto;
    height: 100%;
}

.create_project_button {
    display: block;
    margin: 0 auto;
    background-color: var(--dodger-blue);
    color: var(--ghost-white);
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.create_project_button:hover {
    background-color: var(--jordy-blue);
    scale: 1.1;
    color: var(--oxford-blue);
}

.project-item {
    display: flex;
    background-color: #2C353D;
    padding: 10px;
    border-radius: 7px;
    margin-bottom: 10px;
    transition: all 0.3s ease-in-out;
    width: 100%;
    height: 100%;
    transition: all 0.2s ease-in-out;

    &:hover {
        transform: translateY(-10px);
        scale: 1.05;
        box-shadow: 0 15px 4px rgba(0,0,0,0.15);
    }

    & > div {
        transition: all 0.3s ease-in-out;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        color: var(--dodger-blue);
        user-select: none;

        & .project-image {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            row-gap: 5px;

            & > div > h3 {
                margin: 0;
            }
        }

        & .project-details {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 0 20px;
            row-gap: 1px;
            color: var(--dodger-blue);

            & > p {
                margin: 0;
            }
        }

        & .project-languages {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            column-gap: 10px;
            row-gap: 5px;
        }

        & .project-actions {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            row-gap: 10px;
        }
    }

}

.categories-select {
    padding: 10px;
    background-color: var(--ghost-white);
    border-radius: 7px;
    border: 2px solid var(--ghost-white);
    font-weight: 500;
}

.upload-btn {
    background-color: var(--dodger-blue);
    color: var(--ghost-white);
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    &:hover {
        background-color: var(--oxford-blue);
        scale: 1.1;
    }
}

.uploaded-btn {
    background-color: var(--dodger-blue);
    color: var(--ghost-white);
    opacity: 0.65;
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .projects_list {
        flex-direction: column;
        align-items: center;
    }

    .project_card {
        width: 90%;
    }

    .project_search_container input {
        width: 90%;
    }
}

@media screen and (max-width: 1050px) {
    main:has(> .projects_list_section) {
        flex-direction: column;
    }

    .filter_section {
        visibility: visible;
    }

    .projects_list_section {
        width: 100%;
    }

    .sidebar {
        display: none;
    }
}
/* End of General Styles for Projects Page */

/* Start of Profile Styles */
.profile_section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.profile_projects {
    flex: 1;
    background-color: #262D34;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-width: 320px;
}

.profile_projects h1 {
    color: var(--dodger-blue);
    font-size: 2rem;
    text-align: center;
}

.profile_projects_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 20px;
    max-height: calc(3 * 205px + 60px);
    border-radius: 12px;
    color: var(--ghost-white);
    margin: 0 auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-arrow-color: var(--dodger-blue);
    scrollbar-color: var(--dodger-blue) transparent;
}

.project_card {
    background-color: #2C353D;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease-in-out;

    &:hover {
        transform: translateY(-10px);
        box-shadow: 0 5px 4px 6px rgba(0,0,0,0.15);
        scale: 1.05;
    }
}

.project_card_content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project_card h3 {
    color: var(--ghost-white);
    font-size: 1.2rem;
    margin: 0;
}

.project_card_menu {
    font-size: 1.2rem;
    top: 0;
    right: 0;
    position: absolute;
    cursor: pointer;
    
    & > button {
        border: none;
        background: none;
        color: var(--ghost-white);
    }

    & .card_dropdown_menu {
        position: absolute;
        right: 50%;
        background-color: #2C353D;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
        min-width: 140px;
        z-index: 10;
        display: none;
        flex-direction: column;
        padding: 8px 0;
        top: 120%;
        transform: translateX(0);
        text-align: center;

        & > button, & > a {
            background: none;
            border: none;
            color: firebrick;
            padding: 10px 20px;
            text-align: left;
            width: 100%;
            cursor: pointer;
            font-size: 1rem;
            font-weight: bold;
            transition: background 0.2s, color 0.2s;

            &:hover {
            background-color: var(--dodger-blue);
            color: #17191C;
            }
        }
    }
}

.project_card_description {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.4;
}

.project_card_actions a {
    text-decoration: none;
    color: var(--ghost-white);
    background-color: var(--dodger-blue);
    padding: 8px 16px;
    border-radius: 7px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
}

.project_card_actions a:hover {
    background-color: var(--oxford-blue);
    transform: scale(1.05);
}

.project_card_stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    column-gap: auto;
    font-size: 1.4rem;
    width: 45%;

    & i {
        margin-right: 5px;
    }
}

.profile_info {
    width: 25%;
    background-color: #262D34;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

div:has(> .profile_avatar) {
    border: 3px solid var(--dodger-blue);
    padding: 5px;
    border-radius: 15px;
}

.profile_avatar {
    background-color: var(--jordy-blue);
    border-radius: 10px;
    position: relative;

    & img {
        width: 200px;
        aspect-ratio: 1/1;
        border-radius: 10px;
    }
}

.profile_username {
    font-size: 2rem;
    padding: 10px 0;

    & i {
        font-size: 1.5rem;
        cursor: pointer;
    }
}

.profile_bio {
    font-size: 1.1rem;
    padding: 0 20px;
}

.profile_counts {
    margin: 20px 0 15px 0;
    background-color: #2C353D;
    padding: 10px 0px;
    border-radius: 10px;
    width: 90%;
    display: flex;
    justify-content: space-evenly;

    & h5 {
        font-size: 1rem;
        margin: 0;
        display: flex;
        flex-direction: column;

        & > span:first-of-type {
            font-weight: bold;
        }
    }

}

@media screen and (max-width: 1630px) {
    .profile_counts {
        flex-direction: column;
        row-gap: 10px;
    }
}

@media screen and (max-width: 1250px) {
    .profile_section {
        flex-direction: column;
    }

    .profile_info {
        width: 100%;
    }

    .profile_projects {
        width: 100%;
    }

    .profile_counts {
        flex-direction: row;
    }
}

.project_card_description {
    margin-bottom: 0;
    height: 3.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.profile_actions {
    display: flex;
    gap: 10px;
    justify-content: center;

    & button {
        display: block;
        margin: 0 auto;
        background-color: var(--dodger-blue);
        color: var(--ghost-white);
        border: none;
        padding: 10px 20px;
        border-radius: 7px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease-in-out;

        &:hover {
            scale: 1.1;
        }
    }
}

#changePhotoOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    border-radius: 10px;

    &:hover {
        opacity: 1;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.change-photo-modal {
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    text-align: center;
    background-color: #262D34;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    & input#newUsernameInput {
        padding: 10px;
        border-radius: 7px;
        border: 2px solid #2C353D;
        background-color: #17191C;
        color: var(--ghost-white);
        font-size: 1rem;
        margin: 10px 0;
    }
}

#dropZone {
    font-size: 1.3rem;
    border: 2px dashed #aaa;
    border-radius: 7px;
    padding: 32px;
    margin: 16px 0;
    cursor: pointer;
    aspect-ratio: 1/1;
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn.follow_btn {
    background: var(--dodger-blue);
}
.btn.follow_btn:hover {
    background: #0056b3;
}
.btn.message_btn {
    background: #2C353D;
}
.btn.message_btn:hover {
    background: #3b434b;
}
/* End of Profile Styles */

/* Start of Chat Styles */
.chat_section {
    width: 100%;
    height: 80vh;
    display: grid;
    overflow: hidden;
    background-color: #262D34;
    color: var(--ghost-white);
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    grid-template-columns: 1fr 3fr;
}

.chat_list {
    border-right: 2px solid var(--dodger-blue);
    display: flex;
    flex-direction: column;
    background-color: #262D34;
    border-radius: 12px 0 0 12px;
    height: 100%;
    overflow: hidden;
}

.chat_list_header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #262D34;
    border-top-left-radius: 12px;
    padding: 20px;

    & span {
        margin: 0;
        font-size: 1.75rem;
    }
}

.chat_list_body {
    border-bottom-left-radius: 12px;
    flex: 1 1 auto;
}

#listaChats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    height: 100%;
    padding: 0;

    & li {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: start;
        column-gap: 10px;
        padding: 10px;
        background-color: #2C353D;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        overflow: hidden;

        &:hover {
            background-color: var(--dodger-blue);
            color: #17191C;
            font-size: 1.1rem;

            & .avatar-container {
                border: 2px solid #17191C;

                & img {
                    background-color: #3b434b;
                    border-radius: 50%;
                    padding: 2px;
                    width: 40px;
                    height: 40px;
                }
            }

            & .chat-item-content {
                color: #17191C;
            }
        }

        & .avatar-container {
            border: 2px solid var(--dodger-blue);
            border-radius: 50%;
            padding: 4px;
            transition: all 0.3s ease-in-out;

            & img {
                background-color: var(--jordy-blue);
                border-radius: 50%;
                padding: 2px;
                width: 40px;
                height: 40px;
                transition: all 0.3s ease-in-out;
            }
        }

    }
}

.chat-item-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    color: var(--ghost-white);
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease-in-out;

    & .chat-title {
        font-size: 1.2rem;
        font-weight: bold;
        margin: 0;
    }

    & .chat-preview {
        font-size: 1rem;
        margin: 0;
        opacity: 0.6;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        text-align: start;

        & strong {
            font-weight: 600;
        }
    }
}

.chat_window {
    padding-bottom: 0;
    background-color: #2C353D;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    flex: 1;
    overflow: hidden;
}

.chat_window_header {
    background-color: #262D34;
    flex-shrink: 0;

    &:has( .chatName) {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    & .chatName {
        color: var(--ghost-white);
        font-size: 1.75rem;
    }
}

.chat_window_body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-height: 0; 
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.chat_input {
    position: relative;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2px;
    flex-shrink: 0;
    border-bottom-right-radius: 12px;
    border: 2px solid #17191C;
    border-left: none;

    &:has( input:focus) {
        border: 2px solid var(--dodger-blue);
        border-left: none;
    }
    
    & input {
        border: none;
        background-color: #17191C;
        width: 100%;
        padding: 10px;
        color: var(--ghost-white);
        font-size: 1rem;
        transition: all 0.3s ease-in-out;

        &:focus {
            outline: none;
        }

        &:has(~ button:hover) {
            font-size: 1.1rem;
        }
    }

    & button {
        background-color: #17191C;
        color: var(--ghost-white);
        border: none;
        padding: 10px 20px;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        border-bottom-right-radius: 12px;

        &:hover {
            background-color: var(--oxford-blue);
            font-size: 1.1rem;
        }
    }
}

ul#messages:hover {
    scrollbar-width: thin;
}

ul#messages {
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    flex: 1;
    height: 100%;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: none;
    scrollbar-arrow-color: var(--dodger-blue);
    scrollbar-color: var(--dodger-blue) transparent;
    transition: all 0.3s ease-in-out;

    & li {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        align-self: flex-start;
        list-style-type: none;
        width: 100%;
    }

    & li:has( div.self) {
        align-self: flex-end;
    }

    & .message:has( div.self) {
        flex-direction: row;
        justify-content: end;
        align-self: flex-end;

        & > div:not(.self) {
            clip-path: polygon(0 0, 100% 50%, 0 100%);
            background-color: var(--oxford-blue);
        }
    }

    .message {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: start;
        align-self: flex-start;
        max-width: 70%;
    }

    & div.message-container {
        border-radius: 12px;
        background-color: var(--jordy-blue);
        color: #000;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: start;
        max-width: calc(100% - 15px);
    }

    & div.self {
        border-radius: 12px;
        background-color: var(--oxford-blue);
        color: var(--ghost-white);
        padding: 10px;
    }

    & div.message-container ~ div {
        clip-path: polygon(100% 0, 0 50%, 100% 100%);
        background-color: var(--jordy-blue);
        width: 15px;
        height: 15px;
    }

    & div.self > span.autor-name {
        display: none;
    }

    & span.autor-name {
        font-weight: bold;
    }

    & span.message-text {
        font-size: 1rem;
        margin: 0;
        width: 100%;
        overflow-wrap: break-word;
        text-align: start;
    }
}
/* End of Chat Styles */


/* Start of Landing Styles */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.fade-up {
  animation: fadeUp 0.6s ease-in-out both;
}



.cta:hover {
  animation: pulse 0.3s ease-in-out;
}

.project_card,
.project-item {
  animation: fadeUp 0.6s ease forwards;
}

.project_card:hover,
.project-item:hover {
  box-shadow: 0 10px 20px rgba(47, 142, 255, 0.25);
  transform: translateY(-5px) scale(1.03);
}

.feature-bullets {
  list-style: none;
  padding-left: 0;
  color: var(--ghost-white);
  font-size: 1.2rem;
  margin-top: 1rem;
}
.feature-bullets li::before {
  content: "✔";
  color: var(--xanthous);
  margin-right: 8px;
}


button:hover:not(:disabled),
.create_project_button:hover,
.cta:hover {
  animation: pulse 0.3s ease-in-out;
}

.cta.ghost:hover {
  background-color: var(--dodger-blue);
  color: white;
  transform: scale(1.05);
}

body:has(.landing_section) {
  padding: 0;
}

main:has(.landing_section) {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing_section {
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background-color: black;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('http://dper.cifpceuta.com/Public/assets/images/codingPhoto.jpg') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.landing-section .logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  margin-bottom: 2rem;
}

.landing-section .logo-title {
  font-size: 2.5rem;
  color: var(--dodger-blue);
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  background-color: var(--dodger-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta.ghost {
  background-color: transparent;
  border: 2px solid var(--dodger-blue);
  color: var(--dodger-blue);
}

.testimonials, .join {
  text-align: center;
  padding: 4rem 1rem;
}

.testimonials {
  min-height: 50vh;
}

.testi-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.testi {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  max-width: 300px;
  text-align: center;
  color: black;
}

.testi > p {
  font-size: 1.1rem;
}

.feature-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #17191C;
  color: var(--ghost-white);
  padding: 40px 20px;
  box-sizing: border-box;
}

.feature-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

.feature-section:nth-child(even) {
  background-color: #2C353D;
}

.feature-section:nth-child(even) .feature-content {
  flex-direction: row;
}

.feature-content .text {
  flex: 1;
}

.feature-content .text h2 {
  font-size: 2.5rem;
  color: var(--dodger-blue);
  margin-bottom: 20px;
}

.feature-content .text p {
  font-size: 1.2rem;
}

.feature-content .image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-content .image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .feature-section {
    height: auto;
    padding: 60px 20px;
  }

  .feature-content {
    flex-direction: column !important;
    text-align: center;
  }

  .feature-content .image {
    margin-top: 20px;
  }

  .feature-content .image img {
    width: 80%;
  }
}


/* End of Landing Styles */

/* Start of Dashboard Styles */

main:has( .admin_section) {
    padding: 0;
    display: flex;
    justify-content: center;
}

.admin_section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
}

.admin_header {
    background-color: #262D34;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid var(--dodger-blue);
}

.admin_header h1 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--dodger-blue);
}

.logout_btn {
    color: var(--ghost-white);
    text-decoration: none;
    border: 2px solid var(--dodger-blue);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logout_btn:hover {
    background-color: var(--dodger-blue);
}

.admin_main {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.admin_overview {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.admin_card {
    flex: 1;
    background-color: #262D34;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin_card h2 {
    color: var(--jordy-blue);
    margin-bottom: 10px;
    width: 100%;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

.admin_card p {
    font-size: 2rem;
    font-weight: bold;
}

.admin_users h2 {
    margin-bottom: 15px;
    color: var(--dodger-blue);
}

.table-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.admin_users > table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2C353D;
    border-radius: 12px;
    overflow: hidden;

    & th,& td {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid #3b434b;
    }

    & tr:last-of-type > td{
        border-bottom: 0;
    }
  
    & th {
        background-color: #262D34;
        color: var(--jordy-blue);
    }
  
    & tr:hover {
        background-color: #1f2225;
    }
}


button.ban, button.delete {
    padding: 6px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

button.ban {
    background-color: #ffbb33;
    color: #17191C;
}

button.ban:hover {
    background-color: #ffaa00;
}

button.delete {
    background-color: #ff4444;
    color: white;
}

button.delete:hover {
    background-color: #cc0000;
}

.admin_view_tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin_tab {
    padding: 0.7em 1.5em;
    border-radius: 12px;
    border: none;
    background: var(--jordy-blue);
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin_tab.active, .admin_tab:hover {
    background: var(--dodger-blue);
    color: #fff;
}

#dashboardTable > table {
    
}

#dashboardTable {

    & table {
        width: 100%;
        border-collapse: collapse;
        background-color: #2C353D;
        border-radius: 12px;
        overflow: hidden;
        
        & th, & td {
            padding: 12px 16px;
            text-align: center;
            border-bottom: 1px solid #3b434b;
            max-width: 200px;
            overflow: hidden;
        }

        & tr:last-of-type > td {
            border-bottom: 0;
        }

        & th {
            background-color: #262D34;
            color: var(--jordy-blue);
        }

        & tr:hover {
            background-color: #1f2225;
        }

        & .btn-editar {
            padding: 6px 12px;
            margin-right: 5px;
            border: none;
            border-radius: 7px;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            background-color: #FFB52E;
            color: #17191C;
        }

        & .btn-editar:hover {
            background-color: #ffaa00;
            scale: 0.95;
        }

        & .btn-eliminar {
            padding: 6px 12px;
            border: none;
            border-radius: 7px;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            background-color: #ff4444;
            color: white;
        }

        & .btn-eliminar:hover {
            background-color: #cc0000;
            scale: 0.95;
        }
    }

    & .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    
        & button {
            background-color: var(--dodger-blue);
            color: var(--ghost-white);
            border: none;
            padding: 10px 20px;
            border-radius: 7px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease-in-out;
    
            &:hover {
                background-color: var(--oxford-blue);
                scale: 1.1;
            }

            &:disabled {
                background-color: #3b434b;
                cursor: not-allowed;
            }
        }
    }
}

.custom-modal {
    background-color: #262D34;
    color: var(--ghost-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease-in-out;

    & input {
        width: 100%;
        padding: 10px;
        border-radius: 7px;
        border: 2px solid #2C353D;
        background-color: #17191C;
        color: var(--ghost-white);
        font-size: 1rem;
    }

}
.btn-cancelar {
    background-color: var(--jordy-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    &:hover {
        background-color: var(--oxford-blue);
        scale: 1.1;
        color: var(--ghost-white);
    }
}

.btn-eliminar {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    &:hover {
        background-color: #cc0000;
        scale: 1.1;
    }
}

.btn-guardar {
    background-color: var(--dodger-blue);
    color: var(--ghost-white);
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    &:hover {
        background-color: var(--oxford-blue);
        scale: 1.1;
    }
}

.btn-crear {
    background-color: var(--dodger-blue);
    color: var(--ghost-white);
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    &:hover {
        background-color: var(--oxford-blue);
        scale: 1.1;
    }
}
/* End of Dashboard Styles */

/* Start of General Admin Styles */

body.admin {
    --dodger-blue: #FFB52E;
    --jordy-blue: #FFD591;
    --oxford-blue: #452603;

    & .logo-title + small {
        display: inline;
    }
}