:root {
    --navy-600: #2c3e50;
    --gray-600: #718096;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.text-navy-600 {
    color: var(--navy-600);
}

.text-gray-600 {
    color: var(--gray-600);
}

/* Custom scrollbar for better horizontal scrolling */
.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #edf2f7;
}

.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #edf2f7;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .grid-cols-12 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    header {
        flex-direction: row;
    }

    header > div {
        margin-bottom: 0;
    }

    header > div:last-child {
        flex-direction: row;
    }

    header > div:last-child > * + * {
        margin-top: 0;
        margin-left: 1rem;
    }
}

#objectives-section {
    transition: transform 0.3s ease-in-out;
}

@media (min-width: 768px) and (max-width: 1023px) {
    #objectives-section {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        z-index: 1000;
        background-color: white;
        overflow-y: auto;
    }

    #objectives-section.show {
        transform: translateX(300px);
    }
}

@media (min-width: 1024px) {
    #objectives-section {
        display: block !important;
    }
}

/* Styles for the objectives */
.objective-item {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease-in-out;
}

.objective-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Styles for the objective form */
.objective-form {
    background-color: #f7fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.objective-form textarea,
.objective-form input,
.objective-form select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

/* Updated styles for tasks */
.task-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.task-row:nth-child(even) {
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
}

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

.task-row > * {
    padding: 0 0.25rem;
}

/* Task field sizes */
.task-objective {
    width: 20%;
    min-width: 150px;
}

.task-text {
    width: 30%;
    min-width: 200px;
}

.task-owner {
    width: 15%;
    min-width: 100px;
}

.task-priority {
    width: 10%;
    min-width: 80px;
}

/* Timeline styles */
.timeline-container {
    flex-grow: 1;
    min-width: 300px;
    display: flex;
    width: 30%;
}

.timeline-cell {
    flex: 1;
    height: 24px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.timeline-cell.active {
    background-color: #4299e1;
}

/* Header row styles */
.task-header {
    font-weight: 600;
    background-color: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
}

/* Input and select styles */
.task-row input,
.task-row select {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.task-actions {
    position: relative;
    width: 30px;
    text-align: center;
}

.task-actions i {
    cursor: pointer;
    transition: color 0.3s ease;
}

.task-actions i:hover {
    color: #4a5568;
}

.task-actions-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    min-width: 120px;
}

.task-action-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.task-action-item:hover {
    background-color: #f7fafc;
}

/* Add any other necessary styles here */

.task-objective-view,
.task-text-view,
.task-owner-view,
.task-priority-view {
    cursor: pointer;
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2;
    max-height: 2.4em; /* Show up to 2 lines */
    font-size: 0.875rem;
}

#company-name {
    width: 200px;
}

#ninety-day-goal {
    width: 300px;
    height: 60px;
}

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

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

#company-name-view,
#ninety-day-goal-view {
    display: block;
    width: 100%;
    min-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ninety-day-goal-view {
    white-space: normal;
    max-height: 3em;
    line-height: 1.5;
}

#company-name-input,
#company-name-view {
    width: 100%;
    min-width: 200px;
}

#ninety-day-goal-input,
#ninety-day-goal-view {
    width: 100%;
    min-width: 300px;
    height: auto;
    min-height: 60px;
}

#company-name-view,
#ninety-day-goal-view {
    display: block;
    width: 100%;
    min-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

#ninety-day-goal-view {
    max-height: none;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .task-row {
        flex-wrap: wrap;
    }

    .task-objective,
    .task-text,
    .task-owner,
    .task-priority {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .timeline-container {
        width: 100%;
        overflow-x: auto;
    }
}

/* Add these styles to your existing CSS file */
#sample-button,
#download-button {
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

#sample-button::after,
#download-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

#sample-button:focus:not(:active)::after,
#download-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@media (max-width: 768px) {
    .flex.items-center.space-x-2 {
        flex-direction: column;
        width: 100%;
    }

    .flex.items-center.space-x-2 > * {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    #sample-button,
    #download-button {
        justify-content: center;
    }
}

#objectives-section, #tasks-section {
    transition: all 0.3s ease-in-out;
}

#objectives-section.collapsed {
    overflow: hidden;
}

#tasks-section.expanded {
    flex-grow: 1;
}

.objective-item {
    transition: all 0.3s ease-in-out;
}

/* Add these new styles */
#objectives-section {
    min-width: 100px; /* Adjust this value as needed */
}

#tasks-section {
    flex: 1;
}

/* Add or modify these styles */
#objectives-section, #tasks-section {
    transition: all 0.3s ease-in-out;
}

#objectives-section {
    width: 25%; /* Adjust this value as needed */
    min-width: 250px; /* Minimum width when expanded */
}

#objectives-section.collapsed {
    width: 100px; /* Width when collapsed */
    min-width: 100px;
}

#tasks-section {
    width: 75%; /* Adjust this value as needed */
    transition: width 0.3s ease-in-out;
}

#tasks-section.expanded {
    width: calc(100% - 100px); /* Full width minus collapsed objectives width */
}

.grid.grid-cols-12 {
    display: flex;
    flex-wrap: nowrap;
}

/* Ensure text doesn't overflow */
.task-row > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#objectives-section {
    width: 25%;
    transition: all 0.3s ease-in-out;
}

#objectives-section.collapsed {
    width: 100px;
    overflow: hidden;
}

#objectives-section.collapsed .objective-item,
#objectives-section.collapsed #add-objective-button,
#objectives-section.collapsed h2 {
    display: none;
}

.objective-item-collapsed {
    border: 1px solid #000;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px;
}

.objective-title-collapsed {
    font-size: 0.8rem;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

#tasks-section {
    width: 75%;
    transition: all 0.3s ease-in-out;
}

#tasks-section.expanded {
    width: calc(100% - 100px);
}

#toggle-objectives {
    transition: transform 0.3s ease-in-out;
}

#objectives-section.collapsed #toggle-objectives {
    transform: rotate(180deg);
}

#sample-tip {
    position: absolute;
    background-color: #3498db;
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.arrow-up {
    position: absolute;
    top: -10px;
    left: 50%;
    margin-left: -10px;
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #3498db;
}