html {
    font-size: 14px;
    font-family: Montserrat, "Helvetica Neue", sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

html::-webkit-scrollbar {
    display: none;
}

.roboto {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}

h1, h3, h4, h5, h6, .navbar-brand {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

body {
    margin-bottom: 60px;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/back2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.userPhoto {
    width: 100px;
    height: 100px;
}

.navbar {
    background: rgba(255, 255, 255, 0.1);
    height: 80px;    
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: white !important;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);    
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    color: white !important;
    transition: transform 0.3s ease, background 0.3s ease;
    border-radius: 9px;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.glass-card h5, .glass-card a {
    color: white !important;
}

.masonry-layout {
    column-count: 2;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .masonry-layout {
        column-count: 1;
    }
}

.todo-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: transform 0.3s ease, background 0.3s ease;
    color: white !important;
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0;
    transition: all 0.2s;
}

.todo-checkbox {
    display: none;
}

.custom-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #C7C7CC;
    border-radius: 50%;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.todo-checkbox:checked + .custom-circle {
    background-color: #0aa0e3;
    border-color: #0aa0e3;
}

.todo-checkbox:checked + .custom-circle::after {
    content: '\F272';
    font-family: 'bootstrap-icons' !important;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.task-title {
    flex-grow: 1;
    font-size: 16px;
    cursor: pointer;
}

.task-completed {
    text-decoration: line-through;
    color: #8E8E93;
}

.btn-delete {
    background: none;
    border: none;
    color: #FF3B30;
    font-size: 22px;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 1px 0;
}

.btn-delete:hover {
    opacity: 1;
}

.glass-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-right: none !important;
    box-shadow: none !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.glass-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding-left: 20px;
    padding-right: 20px;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

input[type="datetime-local"] {
    color-scheme: dark; 
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.profile-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%; 
    overflow: hidden; 
    border: 3px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-list::-webkit-scrollbar {
    display: none;
}

.movie-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.todo-list::-webkit-scrollbar {
    display: none;
}

@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

.achievement-popup {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 9999;    
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #444;
    border-radius: 15px;
    padding: 20px 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;    
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 350px;
    pointer-events: none;
}

.achievement-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.achievement-image-container img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.achievement-text {
    color: white;
    text-align: left;
}

.achievement-text h4 {
    margin: 0;
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-text p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #ddd;
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    color: #fff;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.profile-info h2 {
    margin: 0;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.profile-stats {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #aaa;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

.achievement-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.achievement-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(251, 251, 251, 0.3);
}

.ach-img-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.ach-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.ach-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    text-align: left;
}

.ach-desc {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
    text-align: left;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #777;
    font-style: italic;
}

.ach-content-right {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}