 /* body.page-require-login #main-header {
     visibility: none !important;
      position: absolute;
    margin-top: 60px;
     altezza della barra 
 }*/

 /* CSS menu sito (outside) */


 #main-header {
     position: relative;
 }

 .user-actions-outside {
     position: absolute;
     top: 50%;
     right: 70px;
     /* prima dell'hamburger */
     transform: translateY(-50%);
     z-index: 1000;
 }

 .user-icon-btn-outside {
     width: 50px !important;
     height: 50px !important;
     cursor: pointer;
     overflow: hidden;
 }

 .user-icon-btn-outside img,
 .my-account-icon img {
     width: 100%;
     height: 100%;
     width: 50px;
     height: 50px;
     object-fit: cover;
     display: block;
 }

 .user-actions-outside-button {
     color: white;
     border: 1px solid #d9d9d9 !important;
     background-color: #2ea3f2 !important;
     font-size: 20px;
     font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
 }


 .my-account-icon.logged-out {

     filter: grayscale(60%) brightness(90%) opacity(0.8);
 }

 .my-account-icon.logged-in {
     color: #222;
 }

 /* CSS sidebar dentro applicativo */

 #page-container {
     padding-top: 60px !important;
 }

 .hackathons-userbar {
     position: fixed;
     top: 0px !important;
     height: 60px;
     width: 100%;
     padding: 0 24px;
     background: #142040;
     color: white;
     display: flex;
     align-items: center;
     font-size: 14px;
     z-index: 9999;
     flex-wrap: nowrap;
     /* desktop tutto su una riga */
 }


 .user-actions,
 .user-icon-btn {
     display: flex;
     align-items: center;
 }

 .user-actions {
     /*margin-left: auto;*/
     display: flex;
     justify-content: flex-end;
     /* forza tutto a destra */
 }

 .userbar-logo {
     display: flex;
     flex-shrink: 0;
     justify-content: flex-start;
     margin-right: auto;
     align-items: center;
     height: 100%;
 }

 .userbar-logo img {
     height: 42px;
     width: auto;
     margin-top: 0;
     display: block;
 }


 .user-icon-btn {
     background: none;
     border: none;
     padding: 0;
     cursor: pointer;
     border: 1px solid lightgray;
     border-radius: 50%;
 }

 .user-icon-btn img {
     width: 50px;
     height: 50px;
     border-radius: 50%;
     object-fit: cover;
 }



 .user-dropdown-menu {
     display: none;
     position: absolute;
     top: 100%;
     right: 0;
     background: white;
     border: 1px solid #ddd;
     min-width: 160px;
     z-index: 1000;
 }

 .user-dropdown.open .user-dropdown-menu {
     display: block;
 }

 .user-dropdown-menu a {
     display: block;
     display: block;
     padding: 10px;
     text-decoration: none;
     color: black;
 }

 .user-dropdown-menu a:hover {
     background: #f5f5f5;
 }


 /* NAV */
 .hackathon-nav {
     display: flex;
     height: 100%;
     gap: 4px;
     display: flex;
     justify-content: flex-end;
     margin-right: 16px;
 }



 .hackathon-nav .nav-item {
     display: inline-flex;
     align-items: center;
     height: 100%;
     padding: 0 18px;
     font-size: 13px;
     font-weight: 600;
     letter-spacing: 0.04em;
     text-transform: uppercase;
     color: var(--text-muted);
     text-decoration: none;
     /*border-bottom: 2px solid transparent;*/
     transition: color 0.2s, background 0.2s, border-color 0.2s;
     position: relative;
     cursor: pointer;
 }

 .hackathon-nav .nav-item:hover {
     color: #88D0FF;
 }

 .hackathon-nav .nav-item.active {
     color: #2EA3F2;
     background: rgba(46, 163, 242, 0.12);
     background: linear-gradient(to top, rgba(46, 163, 242, 0.20), transparent);
     border-bottom: none;
     box-shadow: inset 0 -3px 0 #2EA3F2;

 }

 .hackathon-nav .nav-item span {
     padding: 10px;
     display: block;
 }

 /* menu nascosto */
 .hackathon-nav .dropdown-menu {
     display: none;
     position: absolute;
     top: 100%;
     left: 0;
     background: white;
     border: 1px solid #ddd;
     min-width: 160px;
     z-index: 1000;
 }

 .hackathon-nav .dropdown-menu a {
     display: block;
     padding: 10px;
     text-decoration: none;
     color: black;
 }

 .hackathon-nav .dropdown-menu a:hover {
     background: #f5f5f5;
 }

 /* mostra dropdown al hover */
 .hackathon-nav .dropdown:hover .dropdown-menu {
     display: block;
 }


 /* RESPONSIVE */
 @media (max-width: 980px) {
     .user-actions-outside {
         right: 130px;
     }
 }


 @media (max-width: 640px) {

     /* User icon outside*/
     .user-actions-outside {
         right: 30%;
     }

     .hackathons-userbar {
         display: flex;
         flex-wrap: wrap;
         height: auto;
         padding: 8px 12px 0;

     }

     .userbar-logo {
         order: 1;
     }

     .user-actions {
         order: 2;
     }

     .hackathon-nav {
         order: 3;
         width: 100%;
         justify-content: center;
         margin-right: 0px;
     }

     .user-dropdown-menu {
         position: absolute;
         top: 100%;
         right: 0;
         min-width: 180px;
         background: #fff;
         border: 1px solid #ddd;
         box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
         display: none;
         z-index: 10000;
     }

     .user-dropdown-menu a:hover {
         background: #f5f5f5;
     }

 }

 /** Hackathon plugin TOAST */

 .toast {
     position: fixed;

     bottom: 20px;
     left: 50%;
     transform: translateX(-50%) translateY(20px);

     color: white;
     padding: 14px 18px;
     border-radius: 8px;
     font-family: Arial, sans-serif;
     z-index: 9999;

     opacity: 0;
     transition: all 0.3s ease;

     min-width: 250px;
     text-align: center;
 }

 .toast.show {
     opacity: 1;
     transform: translateX(-50%) translateY(0);
 }

 .toast.success {
     background: #22c55e;
 }

 .toast.error {
     background: #ef4444;
 }