* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: white;
    margin: 0;
}

.container {
    max-width: none;
    margin: 0;
    padding: 0;
    height: 100vh;
}

h1 {
    text-align: left;
    color: #333;
    margin: 0;
    /* padding: 24px; */
    font-size: 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
}

.input-section {
    text-align: center;
    margin-bottom: 1rem;
}

input[type="text"] {
    padding: 8px;
    font-size: 16px;
    margin-right: 10px;
}

button {
    padding: 8px 16px;
    background-color: rgb(34 197 94); /* green-500 */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: rgb(22 163 74); /* green-600 */
}

.date-section {
    text-align: center;
    margin-bottom: 2rem;
}

.word-cloud {
    min-height: 100vh;
    background-color: white;
    padding: 80px 24px 60px;
}

.timeline {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid rgb(229 231 235); /* gray-200 */
    padding: 12px 0;
    overflow-x: auto;
}

.timeline-container {
    display: flex;
    padding: 0 24px;
    gap: 24px;
    white-space: nowrap;
}

.timeline-month {
    color: #666;
    font-size: 14px;
}

.settings-button {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.settings-button:hover {
    color: #666;
    background: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    min-width: 300px;
}

.modal h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.setting-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.close-button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.close-button:hover {
    background-color: #45a049;
}

/* Word cloud animations */
@keyframes appearWithBlur {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}

/* Word base styles */
.word {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

/* Current month - make it really pop */
.word.active {
    opacity: 1;
    transform: scale(1.3);
    filter: blur(0px);
    z-index: 5;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.word.active span:first-child {
    font-weight: 600;
}

/* Previous/next month - still quite visible */
.word.active-1 {
    opacity: 0.8;
    transform: scale(1.1);
    filter: blur(0.5px);
    z-index: 4;
}

/* Two months away - medium visibility */
.word.active-2 {
    opacity: 0.6;
    transform: scale(0.95);
    filter: blur(1px);
    z-index: 3;
}

/* Three months away - starting to fade */
.word.active-3 {
    opacity: 0.4;
    transform: scale(0.9);
    filter: blur(1px);
    z-index: 2;
}

/* Four or more months away - quite faded */
.word.active-4 {
    opacity: 0.25;
    transform: scale(0.85);
    filter: blur(1px);
    z-index: 1;
}

/* Future words are hidden */
.word.future {
    opacity: 0;
    transform: scale(0);
    filter: blur(3px);
    pointer-events: none;
    z-index: 0;
}

/* Canvas styles */
#wordCloudCanvas {
    width: 100%;
    height: calc(100vh - 120px);
    margin-top: 60px;
}

/* Modal z-index handling */
.modal {
    z-index: 50;
}

.modal-backdrop {
    z-index: 40;
}

/* Month navigation controls */
.month-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.month-control-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgb(229 231 235) !important; /* gray-200 */
    border-radius: 100%;
    background: white;
    color: rgb(75 85 99); /* gray-600 */
    transition: all 0.2s;
    padding: 8px;
}

.month-control-button:hover:not(:disabled) {
    background: rgb(243 244 246); /* gray-100 */
}

.month-control-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.month-control-button .material-icons {
    font-size: 20px;
}

.month-chip {
    color: rgb(75 85 99); /* gray-600 */
    font-weight: 400;
}

.month-chip-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(229 231 235) !important; /* gray-200 */
    height: 2.5rem;
    width: 160px;
    border-radius: 100px;
}

/* Add word button */
.add-word-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: rgb(34 197 94); /* green-500 */
    color: white;
    transition: all 0.2s;
    padding: 0;
    border: none;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
}

.add-word-button:hover {
    background-color: rgb(22 163 74); /* green-600 */
}

.add-word-button .material-icons {
    font-size: 24px;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    padding: 0 1.5rem;
    background-color: white;
    border-bottom: 1px solid rgb(229 231 235); /* gray-200 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 40;
}

/* Update h1 styles since it's now in the navbar */
.navbar h1 {
    position: static; /* Remove absolute positioning */
    padding: 0;
    display: flex;
    align-items: center;
}

/* Right side icons container */
.navbar .right-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Modal header styles */
.modal .flex.justify-between {
    align-items: center;
}

.modal .flex.justify-between h2 {
    margin: 0;  /* Remove margin from modal titles */
}

/* Modal close button */
.modal .closeModal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    color: rgb(107 114 128); /* gray-500 */
    transition: all 0.2s;
    background: transparent;
}

.modal .closeModal:hover {
    background-color: rgb(243 244 246); /* gray-100 */
    color: rgb(55 65 81); /* gray-700 */
}

.modal .closeModal i {
    font-size: 1.25rem; /* 20px */
}

/* Style for words with meanings */
.word.has-meaning {
    cursor: help;
}

.word-meaning {
    opacity: 0;
    /* transform: translateY(-4px); */
    transition: all 0.2s;
    pointer-events: none; /* Prevent meaning from interfering with word interactions */
    margin-top: -4px;
    height: min-content;
}

/* Show meaning for active words */
.word.active .word-meaning {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Show meaning on hover for non-active words */
.word:not(.active).has-meaning:hover .word-meaning {
    opacity: 1;
    transform: translateY(0);
}

/* Update existing word styles to handle the container */
.word {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

/* Adjust active states to scale both word and meaning */
.word.active {
    opacity: 1;
    transform: scale(1.3);
    filter: blur(0px);
    z-index: 5;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.word.active span:first-child {
    font-weight: 600;
}

/* Add to your existing styles */
#listView {
    min-height: 100vh;
    background-color: white;
}

#viewSwitcher {
    transition: all 0.2s;
}

#viewSwitcher:hover {
    background-color: rgb(243 244 246);
}

/* Add styles for the month add button */
.add-word-month-btn {
    opacity: 0.8;
    transform: scale(0.9);
    transition: all 0.2s;
}

.add-word-month-btn:hover {
    opacity: 1;
    transform: scale(1);
}

/* Dropdown menu styles */
#userDropdown {
    border: 1px solid rgb(229 231 235);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    background-color: white;
    z-index: 100;
}

#userDropdown button {
    background: none;
    border: none;
    box-shadow: none;
    width: 100%;
    text-align: left;
}

#userDropdown button:hover {
    background-color: rgb(243 244 246);
}

/* Add this to ensure the relative positioning works correctly */
.right-icons .relative {
    position: relative;
    display: inline-block;
} 