body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
    text-align: center;
    padding-top: 100px;
}

h1 {
    font-size: 3em;
    color: #38bdf8;
}

h2 {
    font-size:28px;
    margin-top: 50px;
    color: white;
}

h3 {
    margin-top:20px;
    font-size: 2em;
    color: rgb(152,243,250);
}

.user-count{
    margin-top:40px;
    font-size:18px;
    color:#FFA500;
}

.logo {
    width: 400px;
    margin-top: 100px;
}

.logodash {
    width: 400px;
    margin-top: 0px;
}

.buttons {
    margin-top: 60px;
}

.buttons button {
    text-decoration: none;
    font-size:18px;
    height: 40px;
    width: 100px;
    margin: 10px;
    background-color: #245bff;
    border: 2px solid #ffffff;
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
}
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    display: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.popup input {
    width: 270px;
    margin: 10px 0;
    padding: 8px;
    border: 2px solid #000000;
}
.popup button {
    margin-top: 20px;
    width: 270px;
    padding: 8px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
}

.error{
    color:red;
    font-size:14px;
    margin-top:5px;
}

.post{
    background:#112a5c;
    border-radius:12px;
    border:1px solid #103f9e;
    padding:20px;
    margin:20px auto;
    width:600px;
    box-shadow:0 5px 15px rgba(0,0,0,0.3);
    position:relative;
    margin-top: 50px;
}

.post-box{
    display:flex;
    flex-direction:column;
    align-items:center;
}

textarea:focus{
    outline:none;
    box-shadow:0 0 0 2px #3b82f6;
}

.post-box textarea{
    width:600px;
    height:100px;
    border-radius:10px;
    padding:10px;
    border:none;
    resize:none;
}

.post-actions{
    display:flex;
    gap:10px;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
}

#imageInput{
    display:none;
}

.post-btn {
    margin-top:10px;
    font-size:16px;
    margin-bottom:40px;
    width: 130px;
    padding:8px 0px;
    border-radius:13px;
    background:#3b82f6;
    color:white;
    border:none;
    white-space: nowrap;
}

.topbar{
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.profile{
    display:flex;
    align-items:center;
    gap:12px;
}

.avatar{
    width:45px;
    height:45px;
    border-radius:50%;
    border:2px solid white;
}

.username{
    font-size:18px;
    font-weight:bold;
}

.logout-btn{
    padding:6px 12px;
    background:#ab0000;
    border:1px solid white;
    border-radius:6px;
    color:white;
    cursor:pointer;
    font-size:15px;
    margin-bottom:80px;
}

.post-content{
    white-space: pre-wrap;
    word-break: break-word;
}

.post-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
    position: relative;
}

.post-avatar{
    width:35px;
    height:35px;
    border-radius:50%;
    border:2px solid white;
}

.post-username{
    font-weight:bold;
    font-size:16px;
}

.post-user{
    display:flex;
    flex:1;
    align-items:center;
    gap:10px;
}

.date{
    color:#7dd3fc;
    font-size:14px;
}

.google-btn{
    display:block;
    background:#4285F4;
    color:white;
    padding:10px;
    border-radius:6px;
    text-decoration:none;
    margin-top:10px;
}

.like-section{
    margin-top:10px;
    display:flex;
    align-items:center;
    gap:8px;
}

.like-btn{
    background:none;
    border:none;
    font-size:20px;
    cursor:pointer;
}

.like-count{
    color:#7dd3fc;
}

.tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.tab{
    font-size:16px;
    text-decoration:none;
    color:#ababab;
    padding:8px 14px;
    border-radius:8px;
    background:#1b3975;
    display:inline-block;
}

.tab:hover{
    color:#e0dede;
    background:#2a59b8;
}

.tab.active{
    font-size:20px;
    padding:10px 18px;
    color:white;
    background:#0e4dc9;
}

.post-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
}

.reply-btn{
    background:none;
    border:none;
    font-size:16px;
    color:#7dd3fc;
    cursor:pointer;
}

.reply-post-btn{
    margin-top: 20px;
    width: 270px;
    padding: 8px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
}

.reply-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    display: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.reply-textarea{
    width:370px;
    height:80px;
    border-radius:10px;
    padding:10px;
    border:none;
    resize:none;
    border:2px solid #000000;
}

.replies{
    width:600px;
    margin:0 auto 20px auto;
    text-align:left;
}

.reply{
    background:#0f1f44;
    border-radius:8px;
    padding:8px 12px;
    margin-top:6px;
    font-size:14px;
}

.post-image{
    margin-top:10px;
    max-width:100%;
    border-radius:10px;
}

.user-info{
    display:flex;
    flex-direction:column;
}

.profile-link{
    margin-top:15px;
    font-size:16px;
    width: 130px;
    padding:8px 0px;
    border-radius:15px;
    background:#0e4dc9;
    color:white;
    text-decoration:none;
    border:1px solid #ffffff;
}

.profile-link:hover{
    background:#0557fa;
}

.profile-card{
    width:400px;
    margin:40px auto;
    padding:25px;
    background:#161616;
    border-radius:12px;
    text-align:center;
}
.profile-avatar{
    width:90px;
    height:90px;
    margin-bottom:10px;
    border-radius:50%;
    border:2px solid white;
}
.profile-stats{
    display:flex;
    justify-content:space-around;
    margin-top:20px;
}
.stat{
    display:flex;
    flex-direction:column;
}
.stat-number{
    font-size:22px;
    font-weight:bold;
}
.stat-label{
    font-size:12px;
    opacity:0.7;
}
.profile-posts-title{
    text-align:center;
    margin-top:40px;
}
.back-btn{
    position:absolute;
    top:15px;
    left:15px;
    text-decoration:none;
    font-size:16px;
    width: 170px;
    padding:8px 0px;
    border-radius:5px;
    background:#0e4dc9;
    color:white;
    border:1px solid #ffffff;
}
.back-btn:hover{
    background:#0557fa;
}

.profile-btn{
    font-size:14px;
    padding:4px 10px;
    background:#0e4dc9;
    color:white;
    border-radius:6px;
    text-decoration:none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.profile-btn:hover{
    background:#0557fa;
}

.editor-link{
    margin-top:15px;
    font-size:16px;
    width: 130px;
    padding:8px 0px;
    border-radius:15px;
    background:#0e4dc9;
    color:white;
    text-decoration:none;
    border:1px solid #ffffff;
}

.editor-link:hover{
    background:#0557fa;
}

#code-editor{
    width:90%;
    height:600px;
    margin:20px auto;
    border-radius:10px;
    overflow:hidden;
    text-align:left;
}

.share-code{
    text-decoration:none;
    font-size:16px;
    width: 80px;
    padding:8px 0px;
    border-radius:20px;
    background:#3b6eed;
    color:white;
    border:none;
}
.share-code:hover{
    background:#547ee8;
}

.code-post{
    background:#2b2b2b;
    color:#e6e6e6;
    padding:15px;
    border-radius:8px;
    font-family:monospace;
    white-space:pre-wrap;
    text-align:left;
}

.achievements-title {
    color:#38bdf8;
    margin-top:10px;
    margin-bottom:60px;
    font-size:5em;
    -webkit-text-stroke-width: 3px;
    -webkit-text-stroke-color: yellow;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    max-width: 860px;
    margin: 30px auto 60px auto;
    padding: 0 20px;
}

.achievement-card {
    background: #112a5c;
    border: 1px solid #103f9e;
    border-radius: 12px;
    padding: 16px 18px;
    text-align: left;
    transition: transform 0.15s;
}

.achievement-card:hover {
    transform: translateY(-2px);
}

.achievement-card.locked {
    background: #0d1a30;
    border-color: #1e2d4a;
    opacity: 0.55;
    filter: grayscale(60%);
}

.achievement-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.achievement-name {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 4px;
}

.achievement-desc {
    font-size: 13px;
    color: #7dd3fc;
}

.achievement-card.locked .achievement-name {
    color: #6b7280;
}

.achievement-card.locked .achievement-desc {
    color: #4b5563;
}

.progress-bar-wrap {
    max-width: 860px;
    margin: 10px auto 0 auto;
    padding: 0 20px;
}

.progress-bar-bg {
    background: #1e3a5f;
    border-radius: 8px;
    height: 14px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    height: 100%;
    border-radius: 8px;
}

.progress-label {
    text-align: center;
    color: #7dd3fc;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 30px;
}

.section-title {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: #38bdf8;
    margin-top: 30px;
}

.leaderboard {
    display: flex;
    gap: 20px;
    flex-direction:column;
}

.leaderboard-section {
    background: #112a5c;
    border: 1px solid #103f9e;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 180px;
}

.leaderboard-title {
    font-size: 13px;
    font-weight: bold;
    color: #38bdf8;
    margin-bottom: 10px;
    text-align: center;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    text-decoration: none;
    color: white;
    font-size: 13px;
    border-radius: 6px;
}

.leaderboard-row:hover {
    color: #7dd3fc;
}

.leaderboard-me {
    color: #FFA500;
    font-weight: bold;
}

.leaderboard-rank {
    color: #7dd3fc;
    font-size: 12px;
    min-width: 24px;
}

.leaderboard-count {
    margin-left: auto;
    color: #7dd3fc;
    font-size: 12px;
}

.leaderboard-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

.leaderboard-link{
    margin-top:15px;
    font-size:16px;
    width: 130px;
    padding:8px 0px;
    border-radius:15px;
    background:#f57600;
    color:white;
    text-decoration:none;
    border:1px solid #ffffff;
}

.leaderboard-page {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.leaderboard-section {
    background: #112a5c;
    border: 1px solid #103f9e;
    border-radius: 12px;
    padding: 20px 24px;
    min-width: 260px;
}

.leaderboard-title {
    font-size: 16px;
    font-weight: bold;
    color: #38bdf8;
    margin-bottom: 16px;
    text-align: center;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: white;
    font-size: 15px;
    border-bottom: 1px solid #1e3a6e;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    color: #7dd3fc;
}

.leaderboard-me {
    color: #FFA500;
    font-weight: bold;
}

.leaderboard-rank {
    color: #7dd3fc;
    font-size: 13px;
    min-width: 28px;
}

.leaderboard-count {
    margin-left: auto;
    color: #7dd3fc;
    font-size: 13px;
}

.leaderboard-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}