/* BrainDay ToDo App Styles - Modern Flat Design */

/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

body {
    background-color: #f8f5f0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2d2d2d;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Navbar Styles */
.navbar {
    background-color: #7c3aed !important;
    border: none;
}

.navbar-brand {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Avatar styles */
.avatar-circle {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.avatar-initials {
    color: #7c3aed;
    font-weight: 600;
    font-size: 1.2rem;
}

.dropdown-toggle::after {
    display: none;
}

/* Card Styles */
.card {
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
    border: 1px solid #e3d3ff !important;
}

/* Icon Button - No Border */
.btn-icon {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.btn-icon:hover {
    color: #7c3aed;
    background-color: rgba(124, 58, 237, 0.05);
}

.btn-icon:focus {
    outline: none;
}

.folder-card:hover {
    transform: translateY(-3px);
}

.folder-icon {
    font-size: 2rem;
    color: #7c3aed;
}

/* Task Columns */
.task-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.625rem;
    padding-bottom: 1.25rem;
}

.task-columns::-webkit-scrollbar {
    height: 6px;
}

.task-columns::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.task-columns::-webkit-scrollbar-thumb {
    background-color: #7c3aed;
    border-radius: 10px;
}

.task-column {
    border: 1px solid #e3d3ff !important;
}

.category-column {
    width: 33.333%;
    margin-bottom: 1.25rem;
    padding: 0 0.625rem;
    display: flex;
    flex-direction: column;
}

.task-title a {
    color: #0c264d !important;
}

.modal-footer {
    border-top: 0 !important;
}

/* Responsive columns for mobile */
@media (max-width: 767px) {
    .category-column {
        width: 100%;
    }
}

.task-column {
    width: 100%;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

/* Category title container */
.category-title-container {
    margin: 0 0 0.5rem 0;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

/* Category delete button */
.category-delete-btn {
    display: none;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 0.9rem;
    padding: 0.25rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.category-delete-btn:hover {
    opacity: 1;
}

.category-title-container:hover .category-delete-btn {
    display: block;
}

/* Category title inside column */
.category-title {
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    flex-grow: 1;
}

/* Page header container */
.page-header-container {
    margin-bottom: 1.5rem;
}

.page-header-content {
    width: 100%;
}

.page-header-content .breadcrumb {
    margin-bottom: 80px;
}

.page-header-content h1.h4 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

/* Folder description container */
.folder-description-container {
    border-radius: 10px;
    padding: 1rem 0;
    cursor: pointer;
    position: relative;
    margin-bottom: 80px !important;
}

.folder-description {
    line-height: 1;
    white-space: pre-wrap;
}

.folder-description-input {
    width: 100%;
    min-height: 100px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
}

/* Editable category title input */
.category-title-input {
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
    border-bottom: 1px solid #7c3aed;
    background: transparent;
    padding: 0;
    width: 100%;
    outline: none;
    color: inherit;
}

.text-muted {
    font-size: 0.8rem;
}

.task-list {
    padding: 1rem;
    min-height: 200px;
}

.task-item {
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 0rem;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s;
}

.task-title {
    font-size: 0.9rem;
}

.task-item:hover {
    border-color: #7c3aed;
}

.task-item.is-done {
    opacity: 0.7;
}

.task-item.is-done .task-title {
    text-decoration: line-through;
    color: #888888;
}

/* Custom Checkbox */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.25em;
    border: 1px solid #7c3aed;
    background-color: #ffffff;
}

.form-check-input:checked {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.form-check-input:focus {
    box-shadow: none;
    border-color: #7c3aed;
}

/* Drag and Drop Styles */
.task-item.dragging {
    opacity: 0.6;
    border: 2px dashed #7c3aed;
    transform: scale(0.98);
}

.task-column.drag-over {
    background-color: #f9f5ff;
    border-color: #7c3aed;
}

.drop-indicator {
    height: 3px;
    background-color: #7c3aed;
    margin: 8px 0;
    border-radius: 1px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #7c3aed;
    font-size: 0.9rem;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #2d2d2d;
}

/* Inline Task Input */
.inline-task-input-container {
    margin-top: 1rem;
}

.inline-task-input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.inline-task-input:focus {
    outline: none;
    box-shadow: none;
    border-color: #7c3aed;
}

.inline-task-input::placeholder {
    color: #aaaaaa;
    font-style: italic;
}

/* Form Controls */
.form-control {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 0.5rem 0.25rem;
    background-color: transparent;
    transition: border-color 0.2s;
}

.form-control:focus {
    box-shadow: none;
    border-color: #7c3aed;
}

.form-control::placeholder {
    color: #aaaaaa;
}

/* Buttons */
.btn-primary {
    background-color: #7c3aed;
    border-color: #7c3aed;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #6a28dc;
    border-color: #6a28dc;
    box-shadow: none;
}

.btn-outline-primary {
    color: #7c3aed;
    border-color: #7c3aed;
    border-radius: 8px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
    box-shadow: none;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 8px;
}

/* Toast Notification Styles */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast-notification {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 10px;
    animation: toast-in 0.3s ease-in-out;
    opacity: 1;
}

.toast-notification.toast-hiding {
    animation: toast-out 0.5s ease-in-out forwards;
}

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-body {
    padding: 1rem;
}

.toast-success .toast-header {
    background-color: #dcfce7;
    color: #166534;
}

.toast-danger .toast-header {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Footer */
footer {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .task-columns {
        flex-direction: column;
    }
    
    .task-column {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
}
