* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 60px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.btn {
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.hidden-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.login-container h1 {
    font-size: 24px;
    color: #4285F4;
    margin-bottom: 20px;
}

.login-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.login-btn {
    background-color: #4285F4;
    color: white;
    font-size: 16px;
    padding: 12px;
    width: 100%;
    margin: 10px 0;
}

.login-btn:hover {
    background-color: #3367D6;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin: 10px 0;
}

.email-btn-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.email-btn-container .login-btn {
    flex: 1;
}

.back-btn {
    background-color: #EA4335;
    color: white;
    font-size: 16px;
    padding: 12px;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #D32F2F;
    transform: scale(1.05);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-content h2 {
    font-size: 20px;
    color: #4285F4;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

#nicknameInput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
}

#saveNicknameBtn {
    background-color: #4285F4;
    color: white;
    padding: 10px 20px;
}

#saveNicknameBtn:hover {
    background-color: #3367D6;
}

.error {
    color: #EA4335;
    font-size: 14px;
    margin-top: 10px;
}

.nav-drawer {
    position: fixed;
    top: 60px;
    right: -250px;
    width: 250px;
    height: calc(100% - 60px);
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.nav-drawer .drawer-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.nav-drawer:not(.hidden) {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.hamburger-icon {
    font-size: 30px;
    cursor: pointer;
    color: #4285F4;
    padding: 5px;
    transition: transform 0.3s ease;
}

.drawer-content.visible {
    right: 0;
}

.nav-item {
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 16px;
}

.nav-item.active {
    border-left-color: #4285F4;
    background-color: rgba(66, 133, 244, 0.1);
    color: #4285F4;
    font-weight: bold;
}

.nav-item:hover {
    background-color: rgba(66, 133, 244, 0.05);
    transform: translateX(5px);
}

.reset-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background-color: #4285F4;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.reset-btn:hover {
    background-color: #3367D6;
}

#login-btn, #logout-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background-color: #4285F4;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    text-align: center;
}

#settings-btn, #reset-all-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background-color: #4285F4;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    text-align: center;
}

.main-content {
    flex: 1;
    width: 100%;
}

.container {
    max-width: min(90%, 1200px);
    margin: 0 auto;
    padding: 20px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.widget {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.widget.full-width {
    grid-column: 1 / -1;
    cursor: default;
}

.widget:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4285F4;
}

.big-text {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.todo-preview {
    list-style: none;
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.todo-preview::-webkit-scrollbar {
    width: 8px;
}

.todo-preview::-webkit-scrollbar-thumb {
    background: #4285F4;
    border-radius: 4px;
}

.todo-preview li {
    font-size: 14px;
    padding: 5px 0;
    color: #666;
    display: flex;
    align-items: center;
}

.todo-preview li.completed {
    text-decoration: line-through;
    color: #999;
}

.diary-preview {
    font-size: 14px;
    color: #666;
}

.diary-preview p {
    margin: 5px 0;
}

.goal-preview {
    margin-top: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: min(1vw, 5px);
    margin-top: 15px;
}

.day-cell {
    aspect-ratio: 1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(10px, 2vw, 12px);
    background-color: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.day-cell:hover {
    background-color: #f0f0f0;
}

.day-cell.sticker {
    background-color: rgba(66, 133, 244, 0.2);
    font-size: clamp(16px, 3vw, 20px);
}

.day-cell.sticker:hover {
    background-color: rgba(66, 133, 244, 0.3);
}

.day-details {
    background-color: white;
    border-radius: 12px;
    padding: 4%;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: clamp(14px, 2.5vw, 16px);
}

.day-details h3 {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 10px;
}

.memo-detail {
    margin: 10px 0;
}

.stats-section {
    background-color: white;
    border-radius: 12px;
    padding: 4%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.week-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%; 
}

.week-controls button {
    background-color: #4285F4;
    color: white;
    padding: clamp(6px, 1.5vw, 10px); 
}

.week-controls button:hover {
    background-color: #3367D6;
}

.week-controls span {
    font-size: 16px;
    font-weight: bold;
    text-align: center; 
    flex-grow: 1; 
}

.week-calendar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; 
}

.week-day {
    flex: 1;
    padding: 10px; 
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 0; 
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
}

.week-day:hover {
    background-color: #f0f0f0;
}

.week-day.selected {
    background-color: rgba(66, 133, 244, 0.2);
    border-color: #4285F4;
}

.stats-details {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stats-details h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

#statsStudyTime {
    font-size: 16px;
    margin-bottom: 15px;
}

#statsSubjects {
    margin-bottom: 15px;
}

.subject-stat {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}

#statsDiary {
    font-size: 14px;
    color: #666;
}

#statsDiary p {
    margin: 5px 0;
}

.timer-section {
    background-color: white;
    border-radius: 12px;
    padding: 4%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.timer-display {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: bold;
    margin: 20px 0;
    color: #4285F4;
}

.subject-input {
    width: 70%;
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    font-size: clamp(14px, 2.5vw, 16px);
}

.subject-add-btn {
    width: 25%;
    background-color: #4285F4;
    color: white;
    font-size: clamp(14px, 2.5vw, 16px);
    margin-left: 5%;
    margin-bottom: 15px;
}

.subject-select {
    width: 100%;
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    font-size: clamp(14px, 2.5vw, 16px);
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 15px);
    flex-wrap: wrap;
}

.timer-btn {
    padding: clamp(8px, 2vw, 12px) clamp(15px, 3vw, 25px);
    border-radius: 25px;
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: bold;
    margin: 5px;
}

.start-btn { background-color: #4285F4; color: white; }
.start-btn:hover { background-color: #3367D6; }
.pause-btn { background-color: #FBBC05; color: #333; }
.pause-btn:hover { background-color: #F9A825; }
.stop-btn { background-color: #EA4335; color: white; }
.stop-btn:hover { background-color: #D32F2F; }

.study-stats {
    background-color: white;
    border-radius: 12px;
    padding: 4%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.study-stats h3 {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 10px;
}

#dailyStudyTime {
    font-size: clamp(16px, 3vw, 18px);
    margin: 10px 0;
}

.subject-time {
    margin-top: 10px;
    font-size: clamp(12px, 2.2vw, 14px);
}

.diary-section {
    background-color: white;
    border-radius: 12px;
    padding: 4%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.diary-section h3 {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 10px;
}

.mood-beans {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
}

.mood-bean {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 3px solid transparent;
    margin: 5px auto;
}

.mood-bean img {
    width: 185%;
    height: 185%;
    object-fit: contain;
}

.mood-bean:hover {
    transform: scale(1.1);
}

.mood-bean.selected {
    transform: scale(1.2);
}

.memo-input {
    width: 100%;
    padding: clamp(10px, 2.5vw, 15px);
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 15px;
    font-size: clamp(14px, 2.5vw, 16px);
    resize: none;
}

.save-button {
    width: 100%;
    padding: clamp(10px, 2.5vw, 15px);
    border-radius: 25px;
    background-color: #4285F4;
    color: white;
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: bold;
    margin-top: 20px;
}

.save-button:hover {
    background-color: #3367D6;
}

.todo-section {
    background-color: white;
    border-radius: 12px;
    padding: 4%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.todo-input {
    width: 70%;
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    font-size: clamp(14px, 2.5vw, 16px);
}

.todo-add-btn {
    width: 25%;
    background-color: #4285F4;
    color: white;
    font-size: clamp(14px, 2.5vw, 16px);
    margin-left: 5%;
    margin-bottom: 15px;
}

.task-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: clamp(6px, 1.5vw, 8px) clamp(10px, 2.5vw, 15px);
    border-radius: 20px;
    border: 1px solid #E0E0E0;
    background-color: white;
    font-size: clamp(12px, 2.2vw, 14px);
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

.filter-btn.active {
    background-color: #4285F4;
    color: white;
    border-color: #4285F4;
}

.todo-list {
    list-style: none;
    margin-top: 15px;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.todo-checkbox {
    margin-right: 10px;
    min-width: 20px;
    height: 20px;
    cursor: pointer;
}

.todo-text {
    flex: 1;
    font-size: clamp(14px, 2.5vw, 16px);
    word-break: break-word;
}

.todo-text.completed {
    text-decoration: line-through;
    color: #999;
}

.delete-todo {
    color: #EA4335;
    background: none;
    border: none;
    font-size: clamp(16px, 3vw, 18px);
    cursor: pointer;
    padding: 0 10px;
    transition: transform 0.2s ease;
}

.delete-todo:hover {
    transform: scale(1.2);
}

.todo-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: clamp(12px, 2.2vw, 14px);
    color: #777;
    flex-wrap: wrap;
    gap: 10px;
}

.clear-btn {
    background: none;
    border: none;
    color: #4285F4;
    cursor: pointer;
    font-size: clamp(12px, 2.2vw, 14px);
    transition: transform 0.2s ease;
}

.clear-btn:hover {
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

.goals-section {
    background-color: white;
    border-radius: 12px;
    padding: 4%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.goals-section h3 {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 10px;
}

.goal-inputs {
    margin: 20px 0;
}

.goal-period {
    display: flex;
    align-items: center;
    margin: 15px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.goal-period h4 {
    width: 100px;
    font-size: clamp(14px, 2.5vw, 16px);
}

.goal-period input {
    width: clamp(80px, 20vw, 100px);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: clamp(14px, 2.5vw, 16px);
}

.goal-period button {
    background-color: #4285F4;
    color: white;
    font-size: clamp(12px, 2.2vw, 14px);
}

.goal-period button:hover {
    background-color: #3367D6;
}

.goal-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: clamp(15px, 3vw, 20px);
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background-color: #4285F4;
    transition: width 0.5s ease-in-out;
}

.delete-subject-btn {
    background: none;
    border: none;
    color: #EA4335;
    cursor: pointer;
    font-size: clamp(14px, 2.5vw, 16px);
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.delete-subject-btn:hover {
    background-color: rgba(234, 67, 53, 0.1);
    transform: scale(1.2);
}

.subject-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.main-content .container > section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-content .container > section:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

.settings-section {
    background-color: white;
    border-radius: 12px;
    padding: 4%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.settings-section h3 {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 20px;
    color: #4285F4;
}

.nickname-section {
    margin: 20px 0;
}

.nickname-section h4 {
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: 15px;
}

.nickname-section div {
    display: flex;
    gap: 10px;
    align-items: center;
}

#settingsNicknameInput {
    flex: 1;
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: clamp(14px, 2.5vw, 16px);
    height: clamp(36px, 4vw, 44px);
    box-sizing: border-box;
}

.nickname-save-btn {
    width: 25%;
    background-color: #4285F4;
    color: white;
    font-size: clamp(14px, 2.5vw, 16px);
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    height: clamp(36px, 4vw, 44px);
    box-sizing: border-box;
}

.nickname-save-btn:hover {
    background-color: #3367D6;
    transform: scale(1.05);
}

.save-button {
    width: 100%;
    padding: clamp(10px, 2.5vw, 15px);
    border-radius: 25px;
    background-color: #4285F4;
    color: white;
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: bold;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.save-button:hover {
    background-color: #3367D6;
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .header {
        height: 50px;
        padding: 0 15px;
    }
    .logo img {
        height: 30px;
    }
    .hamburger-icon {
        font-size: 25px;
    }
    .nav-drawer {
        top: 50px;
        width: 200px;
        height: calc(100% - 50px);
    }
    .nav-drawer:not(.hidden) {
        right: 0;
    }
}

@media (max-width: 576px) {
    .week-calendar {
        gap: 5px;
    }

    .week-day {
        padding: 8px;
        font-size: 12px; 
    }

    .week-controls span {
        font-size: 14px; 
    }
}

.drawer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.groups {
    background-color: white;
    border-radius: 12px;
    padding: 4%;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.groups h3 {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 20px;
    color: #4285F4;
}

.group-actions {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.group-create, .group-join {
    flex: 1;
    min-width: 200px;
}

#groupNameInput, #groupCodeInput {
    width: 100%;
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: 15px;
}

.group-action-btn {
    width: 100%;
    background-color: #4285F4;
    color: white;
    font-size: clamp(14px, 2.5vw, 16px);
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.group-action-btn:hover {
    background-color: #3367D6;
    transform: scale(1.05);
}

#groupCodeDisplay {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #4285F4;
    margin-top: 10px;
}

.group-dashboard {
    text-align: center;
}

#currentGroupName {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 15px;
    color: #4285F4;
}

.group-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.member-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.member-card .nickname {
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.member-card .study-time {
    font-size: clamp(12px, 2.2vw, 14px);
    color: #666;
}

.leave-btn {
    width: 100%;
    background-color: #EA4335;
    color: white;
    font-size: clamp(14px, 2.5vw, 16px);
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.leave-btn:hover {
    background-color: #D32F2F;
    transform: scale(1.05);
}

.member-card .rank {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: bold;
    color: #4285F4;
    margin-bottom: 5px;
}

.ads-footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: #f5f5f5;
    margin-top: 20px;
}

#groupPasswordInput, #groupPasswordInputJoin {
    width: 100%;
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: 15px;
}

.group-chat-section {
    margin-top: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #4285F4;
    border-radius: 4px;
}

.chat-message {
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    background-color: #e9ecef;
    font-size: clamp(12px, 2.2vw, 14px);
}

.chat-message .sender {
    font-weight: bold;
    color: #4285F4;
}

.chat-input {
    display: flex;
    gap: 10px;
}

#chatInput {
    flex: 1;
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: clamp(14px, 2.5vw, 16px);
}

.chat-send-btn {
    background-color: #4285F4;
    color: white;
    padding: clamp(8px, 2vw, 12px);
    border-radius: 8px;
}
.chat-send-btn:hover {
    background-color: #3367D6;
}

.group-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #4285F4;
    background-color: white;
    color: #4285F4;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #4285F4;
    color: white;
}

.tab-btn:hover {
    background-color: #3367D6;
    color: white;
}

.group-dashboard, .group-chat {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.group-members {
    margin-bottom: 20px;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.group-join-create-box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.group-content-box {
    text-align: center;
}

.todo-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.todo-content,
.dday-content {
    transition: opacity 0.3s ease;
}

.dday-list-section {
    margin-bottom: 10px;
}

.dday-input-section {
    margin-bottom: 10px;
    padding: 0;
}

#ddayNameInput {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    font-size: 16px;
}

#ddayDateInput {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    font-size: 16px;
}

.dday-add-btn {
    width: 100%;
    background-color: #4285F4;
    color: white;
    font-size: 16px;
    padding: 12px;
    margin-top: 10px;
}

.dday-add-btn:hover {
    background-color: #3367D6;
}

.dday-list {
    list-style: none;
    margin-top: 15px;
}

.dday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.dday-text {
    flex: 1;
    font-size: 16px;
}

.dday-days {
    color: #4285F4;
    font-weight: bold;
    margin-left: 10px;
}

.delete-dday {
    color: #EA4335;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0 10px;
    transition: transform 0.2s ease;
}

.delete-dday:hover {
    transform: scale(1.2);
}

.dday-preview {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.dday-preview p {
    margin: 5px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4285F4;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.widget-toggle span {
    font-size: 16px;
    color: #333;
}
