/* Task Management App - Styles */

:root {
    --primary-green: #4AB37F;
    --primary-yellow: #F5D66E;
    --light-gray: #F4F4F4;
    --dark-text: #1a1a1a;
    --light-text: #666;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeftBigIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRightBigIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

html, body {
    margin: 0;
    padding: 0;
    height: auto;
    overflow-x: hidden;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #e4e4ed;
    color: var(--dark-text);
}

/* ============================================================================
   LANDING PAGE
   ============================================================================ */

.landing-page {
    width: 100%;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 1rem;
    border-radius: 12px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login {
    background: var(--primary-yellow);
    color: var(--dark-text);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #f0ca51;
    transform: translateY(-2px);
}

.btn-signup {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
}

.btn-signup:hover {
    background: #3a9365;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    max-width: 100%;
    margin: 0;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: calc(100vh - 100px);
    overflow: hidden;
}

.hero-illustration {
    position: absolute;
    width: 20%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
    margin: 0;
}

.hero-illustration-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: slideLeftBigIn 0.8s ease-out;
}

.hero-illustration-right {
    right: 0;
    top: 35%;
    width: 20%;
    max-width: 280px;
    transform: translateY(-50%);
    animation: slideRightBigIn 0.8s ease-out 0.2s both;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 700px;
    position: relative;
    z-index: 10;
    margin-top: -80px;
}

.users-badge {
    background: var(--primary-yellow);
    color: var(--dark-text);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    width: fit-content;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--dark-text);
    font-weight: 700;
    margin: 0;
}

.hero p {
    font-size: 26px;
    color: var(--light-text);
    line-height: 1.8;
    margin: 0;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 600;
    color: var(--dark-text);
}

.btn-primary-large {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 30px;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
}

.btn-primary-large:hover {
    background: #f5d66e;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 179, 127, 0.3);
}

.btn-primary-large::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('images/down-right-arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-90deg);
}

/* Hero Visual */
.hero-visual {
    display: none;
}

/* Infinite Slider */
.infinite-slider {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    margin: 3rem 0;
}

.slider-track {
    display: flex;
    animation: scroll 25s linear infinite;
    width: calc(250px * 12);
}

.slider-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin: 0 1rem;
    white-space: nowrap;
    min-width: 200px;
}

.slider-icon {
    font-size: 1.5rem;
}

.slider-text {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-text);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.infinite-slider:hover .slider-track {
    animation-play-state: paused;
}

/* Two Column CTA Section */
.two-column-cta {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
    align-items: center;
}

.cta-column {
    padding: 1rem 1.5rem;
    border: 1px solid #000;
    height: fit-content;
}

.cta-left {
    background: #f5d66e;
    flex: 0 0 auto;
}

.cta-left h2 {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.cta-right {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    flex: 0 0 auto;
}

.cta-button-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button-content span {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: #000;
    transition: color 0.3s ease;
}

.cta-arrow-icon {
    width: 30px;
    height: 30px;
    transform: rotate(-90deg);
}

.cta-arrow-light {
    display: none;
}

.cta-button-content:hover {
    background-color: #000;
}

.cta-button-content:hover span {
    color: #fff;
}

.cta-button-content:hover .cta-arrow-dark {
    display: none;
}

.cta-button-content:hover .cta-arrow-light {
    display: block;
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.features-title-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid #000;
    padding: 0.3rem 1rem;
    margin-bottom: 3rem;
    border-radius: 30px;
    height: fit-content;
    width: fit-content;
}

.features-title-icon {
    width: 30px;
    height: 30px;
    display: block;
    flex-shrink: 0;
    vertical-align: middle;
}

.features-title-box span {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 25px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
}

.features-heading {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
    text-align: center;
    color: #000;
}

.features-subtext {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
    color: #666;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.features-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.feature-card {
    width: 80%;
    background: transparent;
    padding: 2rem;
    border: 1px solid #000;
    border-radius: 30px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-row {
    display: flex;
    width: 100%;
}

.feature-row:first-child {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.feature-col {
    flex: none;
}

.feature-col-green {
    background: rgba(74, 179, 127, 0.5);
    border-radius: 15px;
    width: 80px;
    height: 80px;
    min-width: 80px;
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-col-text {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-row-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-separator {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0.15rem 0;
}

.feature-emoji {
    font-size: 25px;
    flex-shrink: 0;
}

.feature-description {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* AI Integrations Section */
.ai-integrations {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing .features-title-icon {
    transform: rotate(-20deg);
}

.pricing-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pricing-text-main {
    font-size: 36px;
    font-weight: 700;
    color: black;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pricing-text-highlight {
    font-size: 36px;
    font-weight: 700;
    color: #4AB37F;
    background-color: rgba(74, 179, 127, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transform: rotate(-4deg);
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    background-color: white;
    border: 2px solid #000;
    border-radius: 30px;
    width: fit-content;
    margin: 2rem auto;
    padding: 0.5rem;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 25px;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    color: black;
}

.toggle-btn.active {
    background-color: black !important;
    color: white !important;
}

/* Pricing Plans */
.pricing-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background-color: white;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.pricing-card-pro {
    background-color: #f8f8f8;
}

.plan-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.plan-name-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.plan-price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.plan-price {
    font-size: 48px;
    font-weight: 700;
    color: #4AB37F;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.plan-period {
    font-size: 16px;
    color: #666;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.plan-benefit {
    font-size: 14px;
    font-weight: 600;
    color: #4AB37F;
    margin-bottom: 1.5rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.plan-benefit-btn {
    background-color: black;
    color: white;
    font-size: 24px;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background-color 0.3s ease;
}

.plan-benefit-btn:hover {
    background-color: #333;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.plan-features li:last-child {
    border-bottom: none;
}

.integrations-content {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    align-items: stretch;
}

.integrations-left {
    flex: 1;
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.integration-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.integration-description {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
    color: var(--dark-text);
}

.integrations-right {
    flex: 1;
}

.integration-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary-yellow);
    border-radius: 15px;
    overflow: hidden;
    gap: 0.5rem;
}

.integration-col {
    flex: 1;
}

.integration-col:first-child {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.75rem;
}

.integration-col:first-child {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.75rem;
}

.integration-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.integration-box {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-box img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.integration-label {
    font-weight: 500;
    color: var(--dark-text);
    text-align: center;
}

.integration-col:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex: 1;
}

.integration-col:last-child p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-text);
    line-height: 1.6;
}

.integrations-gradient {
    width: 100%;
    background: linear-gradient(to bottom, #000000, #313131);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 20px;
}

.gradient-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.gradient-text {
    color: white;
    font-weight: 400;
    font-size: 34px;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.gradient-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-text {
    font-size: 30px;
    font-weight: 700;
}

.flow-text.white {
    color: white;
}

.flow-text.yellow {
    color: #F5D66E;
}

.flow-text.green {
    color: #4AB37F;
}

/* CTA Section */
.cta-section {
    background: var(--light-gray);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

/* ============================================================================
   APP PAGE
   ============================================================================ */

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header h1 {
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.projects-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

.project-item {
    padding: 0.75rem 1rem;
    border-left: 4px solid;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.project-item:hover {
    background: var(--light-gray);
}

.project-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-actions {
    display: none;
}

.project-item:hover .project-actions {
    display: flex;
}

/* Tasks Panel */
.tasks-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

.tasks-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tasks-header h2 {
    font-size: 1.25rem;
}

.tasks-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Task Card */
.task-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-left: 4px solid;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.2s;
}

.task-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.task-card.status-pending {
    border-left-color: var(--primary-yellow);
}

.task-card.status-in_progress {
    border-left-color: var(--primary-green);
}

.task-card.status-completed {
    border-left-color: #28a745;
    opacity: 0.8;
}

.task-card.status-cancelled {
    border-left-color: #6c757d;
    opacity: 0.6;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.task-header h3 {
    font-size: 1rem;
    flex: 1;
}

.task-actions {
    display: flex;
    gap: 0.25rem;
}

.task-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.task-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.task-due-date {
    font-size: 0.85rem;
    color: #999;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: var(--primary-yellow);
    color: var(--dark-text);
}

.badge-in_progress {
    background: #cfe2ff;
    color: #084298;
}

.badge-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.badge-type {
    background: #e2e3e5;
    color: #383d41;
}

.badge-late {
    background: #f8d7da;
    color: #842029;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-icon {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #3a9365;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    color: #666;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #f0f0f0;
    color: #333;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.close {
    color: #999;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 179, 127, 0.1);
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================================================
   SIGNUP PAGE
   ============================================================================ */

.signup-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0eff7 0%, #e8e4f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.signup-container {
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.btn-back {
    position: absolute;
    left: 0;
    top: 0;
    background: transparent;
    border: none;
    color: var(--primary-green);
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back:hover {
    transform: translateX(-4px);
}

.signup-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.signup-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.signup-header p {
    font-size: 1rem;
    color: var(--light-text);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-auth-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f4f4f4;
    color: black;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Satoshi', sans-serif;
    min-height: 25px;
    transition: all 0.2s;
}

.btn-auth-option:hover {
    background: black;
    border-color: black;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-auth-option .icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-email {
    color: black;
}

.btn-google {
    color: black;
}

.signup-footer {
    text-align: center;
    font-size: 0.95rem;
    color: var(--light-text);
}

.signup-footer p {
    margin: 0;
}

.link-green {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.link-green:hover {
    text-decoration: underline;
}

.signup-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.signup-form-fields input {
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.name-row input {
    width: 100%;
}

.signup-form-fields input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 179, 127, 0.1);
}

.signup-form-fields input::placeholder {
    color: #999;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #e4e4ed;
    padding: 20px;
    box-sizing: border-box;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.dashboard-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
}

.dashboard-logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--light-text);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pomodoro-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
}

.pomodoro-timer span {
    background-color: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.timer-value {
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

#logoutBtn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
}

#logoutBtn:hover {
    background-color: #ff5252;
    transform: scale(1.05);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
    flex: 1;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.dashboard-top-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.dashboard-bottom-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: transparent;
}

.priority-tasks-block {
    flex: 0 0 60%;
    background-color: #f4f4f4;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-block {
    flex: 0 0 40%;
    background-color: #f4f4f4;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header-row .section-header-block {
    margin-bottom: 0;
}

.all-tasks-block {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-header-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 3px 10px 3px 3px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #EEEEF3;
    border-radius: 16px;
    width: fit-content;
    height: fit-content;
}

.header-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 0, 0, 0.2);
    border-radius: 99px;
    font-size: 1.2rem;
}

.section-title-block {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.task-filters,
.filters-bar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: transparent;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
}

.tasks-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
}

.task-item:hover {
    border: 2px solid black;
}

.task-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #333;
    background-color: transparent;
    flex-shrink: 0;
    cursor: pointer;
}

.task-name {
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 500;
}

.filters-left {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filters-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: auto;
}

.filter-btn {
    background-color: var(--light-gray);
    color: var(--light-text);
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.filter-btn.active {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.btn-create-task,
.btn-create-project {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-create-task:hover,
.btn-create-project:hover {
    background-color: #3a9d6d;
    transform: scale(1.05);
}

.btn-create-action {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-create-action:hover {
    background-color: #3a9d6d;
    transform: scale(1.05);
}

/* Tasks Grid Layout */
.tasks-grid {
    width: 100%;
    font-size: 0.95rem;
}

.tasks-grid-header {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    border-bottom: 2px solid #e0e0e0;
    padding: 1rem 0;
}

.tasks-grid-header .grid-col {
    font-weight: 600;
    color: var(--dark-text);
}

.tasks-grid-body {
    display: flex;
    flex-direction: column;
}

.tasks-grid-row {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.tasks-grid-row:hover {
    background-color: var(--light-gray);
}

.grid-col {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

.grid-col.col-name {
    flex: 2;
    min-width: 200px;
    gap: 0.75rem;
}

.grid-col.col-date {
    flex: 1;
    min-width: 120px;
}

.grid-col.col-project {
    flex: 1;
    min-width: 120px;
}

.grid-col.col-priority {
    flex: 1;
    min-width: 100px;
}

.grid-col.col-status {
    flex: 1;
    min-width: 120px;
}

.grid-col.col-actions {
    flex: 0.8;
    min-width: 100px;
    justify-content: flex-end;
    gap: 0.5rem;
}

.task-title-text {
    font-weight: 500;
    color: var(--dark-text);
}

/* Keep old table styles for compatibility */
.tasks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tasks-table thead {
    background-color: var(--light-gray);
    border-bottom: 2px solid #e0e0e0;
}

.tasks-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-text);
}

.tasks-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    color: var(--light-text);
    vertical-align: middle;
}

.tasks-table tr:hover {
    background-color: var(--light-gray);
}

.task-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--dark-text);
}

.task-date,
.task-project,
.task-priority,
.task-status,
.task-actions {
    vertical-align: middle;
}

.task-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.task-bullet {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.task-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-radius: 4px;
    margin-right: 10px;
    background-color: transparent;
    transition: all 0.2s;
}

.task-checkbox.checked {
    background-color: #333;
    border-color: #333;
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.priority-badge.urgent {
    background-color: #ffe0e0;
    color: #d32f2f;
}

.priority-badge.high {
    background-color: #fff3cd;
    color: #ff9800;
}

.priority-badge.normal {
    background-color: rgba(74, 179, 127, 0.15);
    color: #4AB37F;
}

.priority-badge.low {
    background-color: #f0f4c3;
    color: #558b2f;
}

.status-dropdown {
    background-color: var(--light-gray);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

/* Status Selector Dropdown */
.status-selector {
    position: relative;
    display: inline-block;
}

.status-selector-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background-color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.status-selector-display:hover {
    border-color: #4AB37F;
}

.status-selector.open .status-selector-display {
    border-color: #4AB37F;
}

.status-selector .status-arrow {
    font-size: 0.6rem;
    color: #4AB37F;
    transition: transform 0.2s;
}

.status-selector.open .status-arrow {
    transform: rotate(180deg);
}

.status-selector-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
    overflow: hidden;
    min-width: 120px;
}

.status-selector.open .status-selector-options {
    display: block;
}

.status-option {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.status-option:hover {
    background-color: #f5f5f5;
}

.status-option.selected {
    background-color: #FFF3CD;
    font-weight: 500;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s;
}

.action-btn:hover {
    transform: scale(1.2);
}

.priority-tasks {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-section {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--light-text);
}

.progress-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
}

.productivity-section {
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.productivity-label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.75rem;
}

.productivity-bar-container {
    background-color: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.productivity-bar {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow));
    height: 100%;
    transition: width 0.3s ease;
}

.productivity-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 0.75rem;
    text-align: center;
}

.no-tasks {
    color: var(--light-text);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* New Progress Block Styling */
.progress-tabs-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 6px;
    width: fit-content;
}

.progress-tab-btn {
    width: fit-content;
    height: 30px;
    padding: 0 1rem;
    border: none;
    background-color: transparent;
    color: var(--light-text);
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-tab-btn.active {
    background-color: white;
    color: var(--primary-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.progress-bar-wrapper {
    margin: 0.75rem 0;
}

.progress-bar-container {
    background-color: white;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
}

.progress-stats-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.progress-stats-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.progress-stats-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex: 1;
}

.productivity-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow));
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.productivity-label {
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.5;
}

.productivity-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.productivity-value.negative {
    color: #E74C3C;
}

.productivity-compare {
    font-size: 0.75rem;
    color: var(--light-text);
    font-style: italic;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    background-color: transparent;
    border-radius: 0;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-text);
}

@media (max-width: 1200px) {
    .dashboard-top-row {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
    overflow-y: auto;
    padding: 20px;
}

.modal-container {
    background-color: #F2F2F3;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin: auto;
}

/* Task Modal specific - ensure it can scroll */
#createTaskModal .modal-container,
#modifyExistingTaskModal .modal-container {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    border-bottom: none;
    background-color: #F2F2F3;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header-top h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--dark-text);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--dark-text);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-content {
    padding: 0;
    width: 100%;
    background-color: transparent;
    box-sizing: border-box;
}

#createTaskForm {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.modal-content-two-cols {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 1.5rem;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}
.task-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.43fr;
    gap: 1.5rem;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.task-notes-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    grid-column: 1 / -1;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.notes-header-row {
    display: flex;
    justify-content: flex-end;
}

.btn-save-note {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-save-note:hover {
    background-color: #3d9970;
}

.note-title-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.note-title-input::placeholder {
    color: #C7C7C7;
}

.note-title-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.rich-text-editor {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: white;
    box-sizing: border-box;
    line-height: 1.5;
}

.rich-text-editor:focus {
    outline: none;
    border-color: var(--primary-green);
}

.rich-text-editor[contenteditable]:empty:before {
    content: attr(placeholder);
    color: #C7C7C7;
}

.saved-notes-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
}

.no-notes {
    color: var(--light-text);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.saved-note-item {
    background-color: white;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.saved-note-title {
    color: var(--dark-text);
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.saved-note-content {
    color: var(--light-text);
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
}

.remove-note-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-note-btn:hover {
    background-color: #c0392b;
}

.modal-left-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-right-col {
    display: flex;
    flex-direction: column;
}

.modal-right-col {
    display: flex;
    flex-direction: column;
}

.task-icon-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.task-row-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.task-name-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.task-name-input {
    width: 100%;
    height: 34px;
    padding: 0.75rem 0.75rem 10px 0;
    border: none;
    background-color: transparent;
    font-size: 34px;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: black;
    font-weight: bold;
    transition: all 0.2s;
}

.task-name-input::placeholder {
    color: #C7C7C7;
}

.task-name-input:focus {
    outline: none;
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    background-color: #F2F2F3;
    border-bottom: 1px solid #e0e0e0;
}

.project-label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
    white-space: nowrap;
}

.project-selector {
    width: fit-content;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: none;
    padding-right: 1rem;
}

.project-selector:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.project-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 179, 127, 0.3);
}

.project-selector option {
    background-color: white;
    color: #333;
    padding: 0.75rem;
}

.modal-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-right {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 179, 127, 0.1);
}

.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.priority-btn,
.status-btn {
    padding: 0.6rem 1rem;
    border: 1px solid #e0e0e0;
    background-color: white;
    color: var(--light-text);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.priority-btn:hover,
.status-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.priority-btn.active {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.status-btn.active {
    background-color: var(--dark-text);
    color: white;
    border-color: var(--dark-text);
}

.notes-label {
    background-color: var(--primary-yellow);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 0.5rem;
}

.notes-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.attachments-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.attachments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.attachments-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--dark-text);
}

.add-attachment-btn {
    background-color: white;
    border: 1px solid #e0e0e0;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.add-attachment-btn:hover {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.attachments-list {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.no-attachments {
    color: var(--light-text);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: 100%;
    font-size: 0.9rem;
}

.attachment-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.attachment-name {
    color: var(--dark-text);
    font-weight: 500;
    word-break: break-word;
}

.attachment-size {
    color: var(--light-text);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.remove-attachment-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0 0.5rem;
    transition: color 0.2s;
}

.remove-attachment-btn:hover {
    color: #c0392b;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.btn-create-task-submit {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-create-task-submit:hover {
    background-color: #3a9d6d;
}

.btn-modal-cancel {
    background-color: #f0f0f0;
    color: var(--dark-text);
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-modal-cancel:hover {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .modal-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-container {
        width: 95%;
    }
    
    .modal-content {
        padding: 1rem;
    }
}

/* Project Modal Specific Styles */
.project-modal-container {
    max-width: 420px !important;
    width: 420px !important;
    height: auto !important;
    max-height: 90vh !important;
    background-color: #F2F2F3 !important;
    display: flex !important;
    flex-direction: column !important;
}

.project-modal-container .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: none;
    background-color: #F2F2F3;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.modal-header img {
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.project-modal-content {
    padding: 1rem;
    background-color: transparent !important;
    border: none !important;
    overflow-y: auto;
    flex: 1;
}

.project-form-group {
    margin-bottom: 0.75rem;
}

.project-name-input {
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    padding: 0.3rem 0;
    background-color: transparent;
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.project-name-input::placeholder {
    color: #ccc;
}

#createProjectForm {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-name-input::placeholder {
    color: #ccc;
}

.project-name-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.project-description-input {
    color: #000;
    font-size: 0.85rem;
    border: none;
    padding: 0.3rem 0;
    background-color: transparent;
    min-height: 40px;
    resize: none;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.project-description-input::placeholder {
    color: #ccc;
}

.project-description-input::placeholder {
    color: #ccc;
}

.project-description-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.color-section-project {
    margin-top: 1rem;
}

.color-section-label {
    color: var(--dark-text);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.color-picker-layout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.color-preview-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-preview-square {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-picker-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-picker-main {
    display: flex;
    gap: 0.5rem;
}

.color-gradient-large {
    flex: 1;
    height: 120px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: linear-gradient(to right, white 0%, rgb(52, 152, 219) 100%);
    cursor: crosshair;
    position: relative;
}

.color-gradient-large::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1.5px #333;
}

.color-spectrum-vertical {
    width: 20px;
    height: 120px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: linear-gradient(
        to bottom,
        #FF0000 0%,
        #FF7F00 14.28%,
        #FFFF00 28.56%,
        #00FF00 42.84%,
        #0000FF 57.12%,
        #4B0082 71.4%,
        #9400D3 85.68%,
        #FF0000 100%
    );
    cursor: pointer;
    position: relative;
}

.color-spectrum-vertical::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px #333;
}

.preset-colors-row {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.preset-color-square {
    width: 28px;
    height: 28px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.preset-color-square:hover {
    transform: scale(1.1);
    border-color: #333;
}

.preset-color-square.active {
    border-color: #3498DB;
    box-shadow: 0 0 0 2px white, 0 0 0 3px #3498DB;
}

.color-inputs-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
}

.color-hex-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 80px;
}

.color-input-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background-color: var(--primary-green);
    padding: 0.4rem 0.6rem;
    border-radius: 3px;
}

.btn-save-color-blue {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
}

.btn-save-color-blue:hover {
    background-color: #357ABD;
}

.modal-footer-project {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border-top: none;
    background-color: #F2F2F3;
}

.btn-create-project-large {
    background-color: #C0C0C0;
    color: var(--dark-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.btn-create-project-large:hover {
    background-color: #b0b0b0;
}

.btn-create-project-large.active {
    background-color: #4AB37F;
    color: white;
}

.btn-create-project-large.active:hover {
    background-color: #3a9d6b;
}

.btn-create-project-large span {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .color-picker-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .color-preview-square {
        width: 60px;
        height: 60px;
    }
    
    .color-gradient-large,
    .color-spectrum-vertical {
        height: 150px;
    }
    
    .project-modal-container {
        max-width: 95% !important;
    }
}



/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-green) 0%, #3a9d6d 100%);
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-container {
    background-color: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    max-width: 120px;
    margin-bottom: 1.5rem;
}

.login-header h1 {
    font-size: 1.75rem;
    color: var(--dark-text);
    margin: 1rem 0 0.5rem 0;
    font-weight: 700;
}

.login-header p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form-fields input {
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
}

.login-form-fields input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 179, 127, 0.1);
}

.login-form-fields input::placeholder {
    color: #999;
}

.forgot-password {
    text-align: center;
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #3a9d6d;
    text-decoration: underline;
}

/* Forgot Password Modal Styles */
.forgot-password-modal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.forgot-password-modal .modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-text);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-content {
    padding: 1.5rem;
}

.modal-description {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-modal-cancel {
    background-color: #f0f0f0;
    color: var(--dark-text);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.btn-modal-cancel:hover {
    background-color: #e0e0e0;
}

/* Message Styles */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.reset-message {
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.login-footer {
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #3a9d6d;
    text-decoration: underline;
}

.btn-back {
    background-color: transparent;
    border: none;
    color: var(--primary-green);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #3a9d6d;
}

@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-logo {
        max-width: 100px;
    }
}

/* ============================================================================
   PROJECTS PAGE
   ============================================================================ */

.projects-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.projects-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-text);
}

.projects-table-wrapper {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.projects-table thead {
    background-color: var(--light-gray);
    border-bottom: 2px solid #e0e0e0;
}

.projects-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-text);
}

.projects-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    color: var(--light-text);
}

.projects-table tr:hover {
    background-color: var(--light-gray);
}

.project-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--dark-text);
}

.project-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}

.project-task-count {
    font-weight: 600;
    color: var(--dark-text);
    text-align: center;
}

.project-status-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-progress-bar {
    flex: 1;
    background-color: #e0e0e0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    min-width: 100px;
}

.project-progress-fill {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow));
    height: 100%;
    transition: width 0.3s ease;
}

.project-progress-percent {
    font-weight: 600;
    color: var(--primary-green);
    min-width: 45px;
    text-align: right;
}

.project-actions-cell {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.project-action-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s;
    color: var(--light-text);
}

.project-action-btn:hover {
    transform: scale(1.2);
    color: var(--dark-text);
}

/* ============================================================================
   PROJECT DETAIL PAGE
   ============================================================================ */

.project-detail-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    animation: fadeInUp 0.3s ease;
}

.project-detail-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-back-projects {
    align-self: flex-start;
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-text);
    transition: all 0.2s;
}

.btn-back-projects:hover {
    background: #f9f9f9;
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.project-detail-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-detail-color {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-detail-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

/* 4-Block Grid Layout */
.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
}

.project-detail-block {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.block-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
}

.btn-add-file,
.btn-add-task-detail,
.btn-add-note {
    background: var(--primary-green);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-add-file:hover,
.btn-add-task-detail:hover,
.btn-add-note:hover {
    background: #3da069;
    transform: scale(1.05);
}

.block-content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

/* Project Info Block */
.project-info-block .block-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-description {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.project-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 6px;
}

.stat-label {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.progress-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 6px;
}

.progress-label {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9rem;
}

.progress-bar-small {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-small {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-yellow));
    height: 100%;
    transition: width 0.3s ease;
}

.progress-percent {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* Files List */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.2s;
}

.file-item:hover {
    background: #f0f0f0;
}

.file-icon {
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.8rem;
    color: var(--light-text);
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    color: var(--light-text);
    transition: all 0.2s;
}

.file-action-btn:hover {
    color: var(--dark-text);
    transform: scale(1.2);
}

/* Tasks Detail List */
.tasks-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-detail-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    transition: all 0.2s;
    align-items: flex-start;
}

.task-detail-item:hover {
    background: #f0f0f0;
    border-left-color: var(--primary-yellow);
}

.task-detail-checkbox {
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-detail-info {
    flex: 1;
    min-width: 0;
}

.task-detail-name {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.task-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.task-detail-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.task-detail-status.pending {
    background: #fff3cd;
    color: #856404;
}

.task-detail-status.in_progress {
    background: #cfe2ff;
    color: #084298;
}

.task-detail-status.completed {
    background: #d1e7dd;
    color: #0f5132;
}

.task-detail-date,
.task-detail-priority {
    padding: 0.25rem 0.75rem;
    background: white;
    border-radius: 4px;
    color: var(--light-text);
}

.task-detail-priority.urgent {
    color: #e74c3c;
    font-weight: 600;
}

.task-detail-priority.high {
    color: #f39c12;
    font-weight: 600;
}

.task-detail-priority.normal {
    color: var(--light-text);
}

/* Notes List */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-yellow);
    transition: all 0.2s;
}

.note-item:hover {
    background: #f0f0f0;
    border-left-color: var(--primary-green);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.note-title {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.note-date {
    font-size: 0.8rem;
    color: var(--light-text);
}

.note-content {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.no-items {
    text-align: center;
    color: var(--light-text);
    padding: 2rem 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .project-detail-page {
        padding: 1rem;
        gap: 1.5rem;
    }

    .project-detail-title h1 {
        font-size: 1.8rem;
    }

    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .block-content {
        max-height: 300px;
    }
}

/* ============================================================================ */
/* CALENDAR VIEW STYLES */
/* ============================================================================ */

.calendar-page {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    height: calc(100vh - 140px);
    box-sizing: border-box;
}

.calendar-container {
    background: #f4f4f4;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.calendar-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-view-selector {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calendar-view-selector .view-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-view-selector .view-btn:hover {
    color: var(--dark-text);
}

.calendar-view-selector .view-btn.active {
    background: var(--primary-green);
    color: white;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-nav-btn {
    background: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calendar-nav-btn:hover {
    background: var(--primary-green);
    color: white;
}

.calendar-month-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    min-width: 180px;
    text-align: center;
}

.calendar-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.calendar-table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    background: white;
    table-layout: fixed;
}

.calendar-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
}

.calendar-table tbody {
    display: table-row-group;
}

.calendar-table tbody tr {
    height: calc((100vh - 280px) / 6);
}

.calendar-table thead th {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
    border-right: 1px solid #ddd;
}

.calendar-table thead th:last-child {
    border-right: none;
}

.calendar-day-cell {
    border: 1px solid #ddd;
    padding: 0.5rem;
    vertical-align: top;
    background: white;
    position: relative;
    overflow: hidden;
    width: calc(100% / 7);
}

.calendar-day-cell:hover {
    background: #f9f9f9;
}

.calendar-today {
    background: rgba(74, 179, 127, 0.05);
}

.calendar-today .calendar-day-number {
    background: var(--primary-green);
    color: white;
}

.calendar-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.calendar-day-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-text);
    border-radius: 4px;
    font-size: 0.95rem;
}

.calendar-more-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    background: #e8e8e8;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    cursor: pointer;
}

.calendar-more-badge:hover {
    background: #ddd;
    color: #333;
}

.calendar-day-cell.expanded .calendar-more-badge {
    display: none;
}

.calendar-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.calendar-task-item {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid rgba(0, 0, 0, 0.2);
}

.calendar-task-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Hidden tasks - collapsed by default */
.calendar-hidden-tasks {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
}

/* Expanded cell state */
.calendar-day-cell.expanded {
    position: absolute;
    z-index: 100;
    min-height: auto;
    height: auto;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.calendar-day-cell.expanded .calendar-hidden-tasks {
    display: flex;
}

/* Responsive Calendar */
@media (max-width: 1024px) {
    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-month-display {
        min-width: auto;
    }

    .calendar-day-cell {
        min-height: 100px;
        padding: 0.5rem;
    }

    .calendar-task-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .calendar-page {
        padding: 1rem;
        gap: 1rem;
    }

    .calendar-header {
        flex-direction: column;
    }

    .calendar-header h2 {
        font-size: 1.5rem;
    }

    .calendar-controls {
        flex-direction: column;
        width: 100%;
    }

    .calendar-nav-btn {
        width: 100%;
    }

    .calendar-table thead th {
        padding: 0.6rem 0.3rem;
        font-size: 0.8rem;
    }

    .calendar-day-cell {
        min-height: 80px;
        padding: 0.4rem;
    }

    .calendar-day-number {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .calendar-tasks-list {
        gap: 0.3rem;
        margin-top: 0.3rem;
    }

    .calendar-task-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .calendar-header h2 {
        font-size: 1.25rem;
    }

    .calendar-table thead th {
        padding: 0.5rem 0.2rem;
        font-size: 0.7rem;
    }

    .calendar-day-cell {
        min-height: 70px;
    }

    .calendar-day-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.75rem;
    }

    .calendar-task-item {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }
}

/* ============================================================================ */
/* NOTES VIEW STYLES */
/* ============================================================================ */

.notes-page {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Top Bar: Search and Create Button */
.notes-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notes-search-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
}

.notes-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: border-color 0.3s ease;
}

.notes-search-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.notes-search-icon {
    position: absolute;
    left: 0.75rem;
    color: #999;
    font-size: 1.2rem;
}

.btn-create-free-note,
.btn-create-project-note {
    background: white;
    border: 2px solid var(--primary-green);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-create-free-note:hover,
.btn-create-project-note:hover {
    background: var(--primary-green);
    color: white;
}

/* Notes Sections */
.notes-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notes-section h3 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin: 0;
    font-weight: 600;
}

.notes-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    min-height: 100px;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Note Cards */
.note-card {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-yellow);
}

.note-libre {
    border-left-color: var(--primary-yellow);
}

.note-project {
    border-left-color: var(--primary-green);
}

.note-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.note-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 600;
}

.note-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Project Notes Container */
.notes-projects-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.notes-projects-list-wrapper {
    border-right: 1px solid #ddd;
    padding-right: 2rem;
}

.notes-projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.note-project-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dark-text);
    font-weight: 500;
}

.note-project-item:hover {
    background: #f5f5f5;
}

.note-project-item.active {
    background: rgba(74, 179, 127, 0.1);
    color: var(--primary-green);
}

.note-project-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Project Notes Details */
.notes-project-details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notes-create-button-row {
    display: flex;
    justify-content: flex-end;
}

.btn-create-project-note {
    background: var(--primary-green);
    color: white;
    border: none;
}

.btn-create-project-note:hover {
    background: #3d9370;
    border: none;
    color: white;
}

.notes-project-notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 150px;
}

/* Modal Styles for Notes */
#createFreeNoteModal .modal-container,
#createProjectNoteModal .modal-container {
    max-width: 600px;
}

#freeNoteContent,
#projectNoteContent {
    min-height: 250px;
    resize: vertical;
}

/* Responsive Notes */
@media (max-width: 1024px) {
    .notes-projects-container {
        grid-template-columns: 200px 1fr;
    }

    .notes-list-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .notes-project-notes-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .notes-page {
        padding: 1rem;
        gap: 1.5rem;
    }

    .notes-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .notes-search-container {
        max-width: 100%;
    }

    .btn-create-free-note {
        width: 100%;
        text-align: center;
    }

    .notes-projects-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .notes-projects-list-wrapper {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .notes-projects-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .note-project-item {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
    }

    .notes-list-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .notes-project-notes-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .notes-page {
        padding: 0.5rem;
    }

    .notes-top-bar {
        padding: 1rem 0.75rem;
    }

    .notes-section h3 {
        font-size: 1.1rem;
    }

    .notes-projects-container {
        padding: 1rem 0.75rem;
    }

    .notes-list-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .notes-project-notes-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .note-card {
        padding: 1rem;
    }

    .note-card h4 {
        font-size: 0.95rem;
    }

    .note-card p {
        font-size: 0.85rem;
    }
}
