:root{--primary-blue: #6366f1;--bg-light: #f8fafc;--text-main: #1e293b;--resolved-green: #10b981;--unresolved-red: #f87171}.card-container{display:flex;flex-direction:column;background-color:#fff;border-radius:1rem;padding:1rem;box-shadow:0 1px 3px #0000001a;border:1px solid #f1f5f9;transition:transform .2s,box-shadow .2s;cursor:pointer}.card-container:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000000d}.card-header{height:120px;background-color:var(--bg-light);background-size:50%;background-position:center;background-repeat:no-repeat;border-radius:.75rem;margin-bottom:1rem;padding:.75rem;display:flex;flex-direction:column;justify-content:space-between}.category-tag{align-self:flex-start;background-color:#e0e7ff;color:var(--primary-blue);font-size:10px;font-weight:700;padding:4px 12px;border-radius:6px;text-transform:uppercase}.points-text{align-self:flex-end;color:#000;font-size:12px;font-weight:600}.card-title{text-align:center;font-weight:700;color:var(--text-main);font-size:14px;margin-bottom:1rem}.card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto}.status-badge{font-size:10px;font-weight:700;padding:4px 12px;border-radius:6px}.status-resolved{background-color:#d1fae5;color:var(--resolved-green)}.status-unresolved{background-color:#fef2f2;color:var(--unresolved-red)}.search-bar{display:flex;gap:.5rem;border-radius:14px;font-size:1rem;background-color:#fff;box-shadow:0 3px 6px #d6dce5;overflow:hidden;height:3vh}.search-bar{width:20vw;padding:10px}.search-icon{width:1.4vw;transform:translateY(0)}.search-bar input{flex:1;border:none;outline:none;font-size:1rem}.modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-content{background:#fff;padding:2rem;border-radius:18px;position:relative;width:90%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 10px 25px #0000001a}.modal-close-btn{position:absolute;top:.2rem;right:.6rem;background:none;border:none;font-size:1.5rem;cursor:pointer;color:#656565;transition:color .2s}.modal-close-btn:hover{color:#0a1629}.modal-content .post-form{padding-left:0;margin-right:0}.post-form{display:flex;flex-direction:column;gap:1rem;margin-right:2vh}.post-form textarea{padding:.75rem;font-size:1rem;border-radius:15px;border:1px solid #ccc;resize:vertical}.post-form h2{margin-bottom:-2px;margin-top:-2px;margin-left:.3vw}.visibility-options{display:flex;gap:1rem;margin:1rem 0}.visibility-options label{display:flex;align-items:center;gap:.3rem;font-weight:500;cursor:pointer}.hidden-file-input{display:none}.file-upload-link{display:inline-block;text-decoration:underline;cursor:pointer;color:#515def;margin-bottom:1rem;font-weight:500}.file-list{list-style:none;padding:0;margin:-.5rem 0 1rem}.file-list li{display:flex;align-items:center;justify-content:space-between;font-size:.9rem;color:#333;background:#f9f9f9;padding:6px 10px;margin-bottom:4px;border-radius:6px}.form-label{display:block;margin-bottom:0;font-weight:500}.difficulty-container{display:flex;align-items:center;gap:20px;margin-bottom:1rem}.star{cursor:pointer;font-size:1.5rem;margin-right:2px;color:#ccc;transition:color .2s}.star.filled{color:gold}.points-display{font-weight:700;color:#666}.remove-file{cursor:pointer;color:#ff4d4f;font-weight:700}.category-radio-group{display:flex;gap:1.5rem;flex-wrap:wrap;margin-bottom:1rem}.category-radio-label{display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.95rem;padding:10px 20px;background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;color:#64748b;font-weight:500;transition:all .2s ease;-webkit-user-select:none;user-select:none}.category-radio-label.selected{background-color:#515def;color:#fff;border-color:#515def;box-shadow:0 4px 12px #515def4d}.category-radio-input{display:none}.custom-category-container{margin-bottom:1rem}.custom-input{width:100%;height:48px;padding:0 14px;border-radius:8px;border:1px solid #e5e7eb;border-bottom:3px solid #e5e7eb;background:#fff;outline:none;font-size:15px;box-sizing:border-box;transition:border-color .2s ease;color:#333}.custom-input:focus{border-color:#e5e7eb;border-bottom-color:#515def;box-shadow:none}.custom-input::placeholder{color:#9ca3af;opacity:1}.custom-input:focus::placeholder{color:#9ca3af}textarea.custom-input{height:auto;padding:12px 14px}.custom-button{display:inline-flex;align-items:center;justify-content:center;width:100%;height:48px;padding:0 24px;background-color:#515def;color:#fff;font-size:1rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:background-color .2s ease,opacity .2s ease;box-shadow:0 2px 4px #0000001a}.custom-button:hover{background-color:#3e48c7}.custom-button:disabled{background-color:#a5b4fc;cursor:not-allowed;opacity:.8;box-shadow:none}.custom-button:focus{outline:none;box-shadow:0 0 0 3px #515def4d}.custom-select{position:relative;min-width:200px;font-size:.9rem}.custom-select-trigger{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:12px 16px;border-radius:14px;box-shadow:0 3px 6px #d6dce5;cursor:pointer;-webkit-user-select:none;user-select:none;color:#0a1629}.arrow{width:16px;height:16px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23515DEF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;transition:transform .2s ease}.arrow.open{transform:rotate(180deg)}.custom-options{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border-radius:14px;box-shadow:0 6px 12px #0000001a;z-index:100;overflow:hidden;display:flex;flex-direction:column}.custom-option{padding:12px 16px;cursor:pointer;transition:background .2s;color:#0a1629}.custom-option:hover{background-color:#f4f5ff}.custom-option.selected{background-color:#515def;color:#fff}.title{padding-top:0vh;padding-left:80px;font-size:2rem;font-weight:semibold;color:#0a1629}.body-container{padding-left:15vw;background:#f4f5ff;height:100vh;overflow:hidden;display:flex;flex-direction:column;padding-bottom:2vh}.ChallengeGrid{display:grid;grid-template-columns:repeat(auto-fill,17vw);gap:20px;padding:0px 0vw 3vh 5vw}.challengeListWrapper{flex:1;overflow-y:auto;padding-right:12px;width:93%;box-sizing:border-box;scroll-behavior:smooth}.challengeListWrapper::-webkit-scrollbar{width:10px}.challengeListWrapper::-webkit-scrollbar-thumb{background:#3b5bff38;border-radius:999px;border:2px solid transparent;display:flex;align-items:center;justify-content:center}.challengeListWrapper{scrollbar-width:thin;scrollbar-color:rgba(59,91,255,.3) transparent}.floating-add-button{position:fixed;bottom:5vh;right:3vw;z-index:999;width:60px;height:60px;border-radius:50%;background-color:#6366f1;border:none;box-shadow:0 4px 15px #6366f166;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s,background-color .2s}.floating-add-button:hover{transform:scale(1.1);background-color:#4f46e5}.img{width:24px;filter:invert(1)}.filters-container{position:relative;display:flex;margin:10vh 1vw 0vh 25vw;gap:1rem}.Filter{padding:10px;height:auto;border:none;cursor:pointer}.Filter:hover{transform:scale(1.1)}.filter-icon{width:1.5vw;filter:invert(32%) sepia(54%) saturate(4649%) hue-rotate(226deg) brightness(98%) contrast(92%)}.Filter{display:flex;gap:.5rem;border-radius:14px;font-size:.9rem;background-color:#fff;box-shadow:0 3px 6px #d6dce5;overflow:hidden}html,body,#root{height:100%;width:100%;margin:0;padding:0}.authPage{height:100vh;width:100vw;background:#fff}.authCard{height:100%;width:100%;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:56px;padding:56px 72px;box-sizing:border-box}.authShell{height:100%;width:100%;display:grid;grid-template-columns:1.1fr .9fr;align-items:start;gap:56px;padding:56px 72px;box-sizing:border-box}.authRight{display:flex;justify-content:center;align-items:flex-start}.authLeft{padding:24px 20px 24px 12px}.authTitle{font-size:56px;margin:0 0 10px;color:#313131;font-weight:700}.authSubtitle{margin:0 0 28px;color:#313131;opacity:.75}.authForm{width:100%;max-width:600px}.authLabel{display:block;font-size:13px;color:#333;margin-bottom:8px;font-weight:500}.authInput{width:100%;height:48px;padding:0 14px;border-radius:8px;border:1px solid #e5e7eb;border-bottom:3px solid #e5e7eb;background:#fff;outline:none;font-size:15px;box-sizing:border-box;transition:border-color .2s ease}.authInput:focus{border-color:#e5e7eb;border-bottom-color:#515def;box-shadow:none}.authInput::placeholder{color:#9ca3af;opacity:1}.authInput:focus::placeholder{color:#9ca3af}.authPasswordWrap{position:relative;margin-top:8px}.authInputPassword{padding-right:54px;margin-top:0}.authEyeBtn{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:none;background:transparent;cursor:pointer;padding:6px;border-radius:8px;z-index:3}.authEyeIcon{width:20px;height:20px;display:block}.authRowBetween{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:6px 0 20px}.authCheckbox{display:flex;align-items:center;gap:10px;font-size:14px;color:#404040}.authLinkBtn{border:none;background:transparent;color:#515def;cursor:pointer;font-size:14px;padding:0}.authPrimaryBtn{width:100%;height:48px;border:none;border-radius:8px;background:linear-gradient(180deg,#5a65ff,#4f46e5);color:#fff;font-weight:600;font-size:15px;cursor:pointer;box-shadow:0 4px 12px #515def33;margin-top:8px}.authBottomText{margin:14px 0 0;text-align:center;font-size:14px;color:#313131}.authInlineLink{color:#515def;text-decoration:none;font-weight:600}.authIllustration{width:min(540px,100%);aspect-ratio:4 / 5;border-radius:18px;display:flex;justify-content:center;align-items:center;padding:28px;box-sizing:border-box}.authIllustrationImg{width:86%;height:auto;object-fit:contain}.authRegister{grid-template-columns:.9fr 1.1fr}.authRegisterForm{justify-content:flex-start}.authRow2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.authField{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.authField .authLabel{margin-bottom:0}.authError{font-size:12px;color:#ef4444;margin-top:2px}.authRegister .authPasswordWrap{margin-top:0}.authRegister .authRight{position:relative;flex-direction:column;align-items:flex-start;justify-content:center;gap:18px}.authRegister .authLogo{position:absolute;top:20px;right:24px;width:56px;height:56px;border-radius:12px;margin:0;background:#515def}.authRegister .authTitle{margin-bottom:0;line-height:1.05}@media(max-width:900px){.authShell,.authCard{grid-template-columns:1fr;padding:32px 20px}.authRight{display:none}.authTitle{font-size:42px}.authForm{width:100%}}.authTitleRow{display:flex;align-items:flex-start;justify-content:space-between;width:100%;max-width:600px;gap:24px}.authLogoInline{width:50px;height:50px;border-radius:12px;background:#515def;margin-top:12px;flex:0 0 50px}.score-row{background:#fff;border-radius:14px;padding:20px 18px;display:grid;grid-template-columns:1.2fr 1fr .8fr;align-items:center;box-shadow:0 4px 5px #1018280f;cursor:pointer;border:2px solid transparent;transition:all .2s ease-in-out}.score-row--current{border-color:#3b5bff;background-color:#f5f8ff}.score-row--compact{padding:20px 28px;border-radius:18px;box-shadow:0 3px 6px #d6dce5e6;width:100%}.score-row-left{display:flex;align-items:center;gap:12px;min-width:70px}.rankBadge{width:48px;height:48px;border-radius:999px;background:#eef2ff;display:grid;place-items:center}.rankBadge--top{background:#e7ecff}.rankBadgeWrapper{display:flex;flex-direction:column;align-items:center;position:relative;min-width:48px}.scoreboard-crown{width:15px;height:15px;position:absolute;left:50%;top:-18px;transform:translate(-50%);z-index:2;background:none}.rankNumber{font-size:18px;font-weight:700;color:#3b5bff;display:flex;align-items:center;justify-content:center;min-width:48px;height:48px}.playerName{font-size:16px;font-weight:600;color:#0b0f1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.score-row-mid{display:flex;justify-content:center;align-items:center;gap:8px}.label{font-size:13px;color:#0b0f1abf}.pipe,.value{font-weight:700;color:#3b5bff}.score-row-right{display:flex;justify-content:flex-end;align-items:center;gap:8px}.score{font-size:16px;font-weight:700;color:#3b5bff}.profileLayout{min-height:100vh;display:flex;background:#f4f5ff}.profilePage{margin-left:15vw;flex:1;height:100vh;padding:44px 48px;box-sizing:border-box;min-width:340px;overflow:hidden;position:relative}.profileTitle{position:relative;width:100%;font-size:32px;font-weight:700;color:#0b0f1a;margin-bottom:24px}.profileHeader{display:flex;gap:32px;margin-bottom:32px}.profileStatsBanner{flex:1;display:flex;align-items:center}.profileCard{background:#fff;border-radius:18px;box-shadow:0 3px 6px #d6dce5;padding:24px 20px 32px;min-width:270px;max-width:270px;display:flex;flex-direction:column;align-items:center;position:relative}.profileAvatarWrapper{margin-bottom:12px}.profileAvatar{width:64px;height:64px;border-radius:50%;background:url(/icons/Icon%20Profil.svg) center/100% no-repeat;margin-bottom:8px}.profileName{font-weight:700;font-size:20px;margin-bottom:18px;color:#1e293b}.profileInfo{width:100%}.profileInfoTitle{font-weight:600;font-size:15px;margin-bottom:6px;color:#1e293b}.profileInfoLabel{font-size:13px;color:#64748b;margin-bottom:2px}.profileGrid{display:grid;grid-template-columns:320px 1fr;gap:40px;align-items:start;margin-top:8px}.profileLeft{display:flex;flex-direction:column;gap:24px;align-items:center;justify-content:center}.profileRight{display:flex;flex-direction:column;gap:20px}.profileChallenges--side{flex:1}.profileChallengesTitle{font-size:22px;font-weight:700;color:#1e293b;margin:0}.profileTabsWrapper{background:#d4d7ff;border-radius:999px;padding:6px;display:inline-flex;margin:0;position:relative;min-width:220px;width:auto;align-items:center}.profileTabs{display:flex;gap:0;position:relative;width:100%;min-width:320px;justify-content:space-between;align-items:center}.profileTab{flex:1 1 0;background:transparent;color:#222b45;border:none;border-radius:999px;padding:10px 0;font-size:17px;font-weight:600;cursor:pointer;transition:background .2s,color .2s,font-weight .2s;outline:none;position:relative;z-index:1;display:flex;align-items:center;justify-content:center;height:100%}.profileTabActive{background:transparent;color:#fff;font-weight:700;z-index:2}.profileTabSlider{position:absolute;top:4px;left:8px;width:calc(50% - 8px);height:calc(100% - 8px);background:#4f5df1;border-radius:999px;box-shadow:0 2px 8px #6366f11a;z-index:0;transition:transform .32s cubic-bezier(.4,1.2,.6,1),background .2s;will-change:transform}.profileChallengesGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-height:calc(100vh - 330px);overflow-y:auto;padding-right:8px}.profileHeaderRow{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.profileChallengesGrid::-webkit-scrollbar{width:10px}.profileChallengesGrid::-webkit-scrollbar-thumb{background:#3b5bff38;border-radius:999px;border:2px solid transparent;display:flex;align-items:center;justify-content:center}.profileChallengesGrid{scrollbar-width:thin;scrollbar-color:rgba(59,91,255,.3) transparent}.profileContentRow{display:flex;flex-direction:row;align-items:flex-start;gap:40px;margin-top:8px;height:600px;position:relative}.profileIllustration{position:fixed;left:17vw;bottom:2vh;min-width:260px;max-width:320px;height:260px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;margin-bottom:0;z-index:0}.profileIllustration img{width:90%;height:260px;object-fit:contain}.rankingLayout{min-height:100vh;display:flex;background:#f4f5ff}.rankingPage{margin-left:15vw;flex:1;height:100vh;padding:44px 48px;box-sizing:border-box;overflow:hidden}.rankingTitle{text-align:center;font-size:40px;font-weight:700;margin:8px 0 28px;color:#0b0f1a}.rankingListWrapper{height:calc(100vh - 156px);overflow-y:auto;padding-right:12px;box-sizing:border-box;scroll-behavior:smooth}.rankingList{display:flex;flex-direction:column;gap:18px}.rankingListWrapper::-webkit-scrollbar{width:10px}.rankingListWrapper::-webkit-scrollbar-thumb{background:#3b5bff38;border-radius:999px;border:2px solid transparent;display:flex;align-items:center;justify-content:center}.rankingListWrapper{scrollbar-width:thin;scrollbar-color:rgba(59,91,255,.3) transparent}.sidebar-nav{position:fixed;top:2vh;bottom:2vh;left:1.5vw;width:11vw;background-color:#fff;display:flex;flex-direction:column;padding:2rem 1rem;border-radius:18px;z-index:999;box-shadow:0 3px 6px #d6dce5}.authLogo{width:50px;height:50px;border-radius:12px;background:#515def;margin-bottom:22px}.sidebar-link{display:flex;align-items:center;gap:12px;position:relative;height:40px;padding:0 12px;margin-top:30px;border-radius:8px;color:#656565;background:transparent;border:none;cursor:pointer;text-align:left;font-size:1rem;font-weight:500;transition:background-color .18s ease,color .18s ease}.sidebar-link:hover,.sidebar-button:hover{color:#515def}.sidebar-link.active{background-color:#515eef1c;color:#515def}.sidebar-link:before{content:"";position:absolute;right:-13px;top:50%;transform:translateY(-50%) scaleY(0);height:40px;width:4px;background-color:#515def;border-radius:4px;transition:transform .18s ease}.sidebar-link.active:before{transform:translateY(-50%) scaleY(1)}.sidebar-icon{width:24px;height:24px;flex-shrink:0;object-fit:contain}.sidebar-icon-default{display:block}.sidebar-icon-active,.sidebar-link:hover .sidebar-icon-default,.sidebar-button:hover .sidebar-icon-default,.sidebar-link.active .sidebar-icon-default{display:none}.sidebar-link:hover .sidebar-icon-active,.sidebar-button:hover .sidebar-icon-active,.sidebar-link.active .sidebar-icon-active{display:block}.sidebar-button{position:absolute;bottom:4vh;left:1rem;right:1rem;display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border-radius:8px;color:#656565;background:transparent;border:none;cursor:pointer;text-align:left;font-size:1rem;font-weight:500;transition:background-color .18s ease,color .18s ease}.sidebar-button{margin-top:0}.sidebar-button:hover{color:#515def}.sidebar-button:before{content:none}.challenge-page{display:flex;min-height:100vh;background:#f5f6fb}.challenge-main{flex:1;margin-left:15vw;padding:44px 48px;box-sizing:border-box;position:relative}.page-heading{font-size:32px;font-weight:700;color:#0b0f1a;margin-bottom:24px;width:100%}.challenge-card{background:#fff;border-radius:16px;padding:28px;box-shadow:0 6px 18px #32325a0f;border:10px solid #E2E5FF;margin:10px auto;box-sizing:border-box}.challenge-header{display:flex;gap:12px;align-items:center}.category-pill{display:inline-block;background:#eef2ff;color:#4f46e5;padding:8px 14px;border-radius:10px;font-weight:600}.challenge-top-row{display:flex;justify-content:space-between;align-items:center;margin-top:18px}.challenge-title{font-size:20px;margin:0;font-weight:700}.status-badge{display:inline-block;background:#ffebe9;color:#d14343;padding:4px 8px;border-radius:8px;font-size:12px;margin-left:12px;vertical-align:middle}.challenge-meta{display:flex;align-items:center;gap:18px}.stars svg{display:block}.stars{display:flex;align-items:center}.points{color:#374151;font-weight:600}.challenge-desc{margin-top:18px;color:#374151;line-height:1.6}.solution-area{margin-top:26px}.solution-box{width:100%;box-sizing:border-box;min-height:200px;border-radius:12px;border:none;padding:22px;background:#e9e7ff;resize:vertical;font-size:14px;color:#111827}.challenge-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.btn{padding:10px 20px;border-radius:10px;font-weight:600;cursor:pointer;border:none}.btn-primary{background:linear-gradient(180deg,#5b6bff,#4f46e5);color:#fff}.btn-outline{background:transparent;border:2px solid #515DEF;color:#515def;box-shadow:inset 0 -1px #0000000a}.btn-outline:hover{border-color:#9fb0ff}@media(max-width:900px){.challenge-card{padding:18px}.solution-box{min-height:120px}}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html,body,#root{height:100%;width:100%;margin:0;padding:0;background-color:#f4f5ff}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}button{font-family:inherit}
