/* Custom styles beyond Tailwind */
/* You can add any custom CSS here that can't be achieved with Tailwind classes */

/* Example: Custom transitions or animations if needed */
.sidebar-button:hover {
    transition: background-color 0.2s ease;
}

/* Projects dropdown caret transition */
.caret-icon {
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.caret-icon.open {
    transform: rotate(180deg);
}

/* Sidebar transition */
.sidebar {
    transition: width 0.3s ease;
    width: 16rem; /* w-64 = 16rem */
}

.sidebar.collapsed {
    width: 5rem; /* Width for icons */
}

/* Handle content visibility in collapsed state */
.sidebar.collapsed .full-text {
    display: none;
}

.sidebar.collapsed .sidebar-button {
    padding: 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .sidebar-button svg {
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0;
}

.sidebar.collapsed [data-projects-list] {
    margin-left: 0;
}

/* Toggle button transition */
.toggle-sidebar {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .toggle-sidebar {
    transform: rotate(180deg);
}

/* Button hover effects */
.sidebar-button, 
button[data-sidebar-toggle],
button[data-projects-toggle],
.add-task-button {
    transition: all 0.2s ease;
}

.sidebar-button:hover, 
button[data-sidebar-toggle]:hover,
button[data-projects-toggle]:hover,
.add-task-button:hover {
    background-color: #1e293b; /* Slightly lighter navy */
    transform: translateY(-1px);
}

/* Modern Checkbox styling */
input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

input[type="checkbox"]:checked {
    background-color: #4ade80;
    border-color: #4ade80;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Task checked state */
.task.checked {
    opacity: 0.75;
    background-color: #f8fafc;
}

.task.checked h3,
.task.checked span {
    text-decoration: line-through;
    color: #94a3b8;
}

/* Any other custom styles you might need */ 