/* Flujos App Styles */

/* Buttons */
.flujos-primary-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #fcd681, #f5c542);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(252, 214, 129, 0.25);
}

.flujos-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 214, 129, 0.35);
}

.flujos-secondary-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.flujos-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.flujos-danger-btn {
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #f87171;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.flujos-danger-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

#flujos-sidebar {
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 10;
    min-width: 0;
    /* Allow shrinking below content size for grid animation */
    width: 100%;
    /* Fill grid track */
}

/* Columns */
.flujos-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.flujos-column-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flujos-column-content {
    min-height: 100px;
}

.flujos-column-content.drag-over {
    background: rgba(252, 214, 129, 0.08);
    border: 2px dashed rgba(252, 214, 129, 0.4);
}

/* Story Cards */
.flujos-story-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    cursor: grab;
    transition: all 0.15s;
    user-select: none;
}

.flujos-story-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.flujos-story-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.flujos-story-card.priority-alta {
    border-left: 3px solid #ef4444;
}

.flujos-story-card.priority-media {
    border-left: 3px solid #f59e0b;
}

.flujos-story-card.priority-baja {
    border-left: 3px solid #22c55e;
}

/* Modals */
.flujos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.flujos-modal.show {
    display: flex;
    opacity: 1;
}

.flujos-modal-content {
    background: #1e1e28;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.2s;
    overflow: hidden;
}

.flujos-modal.show .flujos-modal-content {
    transform: scale(1);
}

.flujos-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 700;
    font-size: 16px;
}

.flujos-modal-close {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s;
}

.flujos-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flujos-modal-body {
    padding: 24px;
}

.flujos-btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #fcd681, #f5c542);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.flujos-btn-primary:hover {
    transform: translateY(-1px);
}

.flujos-btn-danger {
    padding: 10px 20px;
    background: #ef4444;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.flujos-btn-danger:hover {
    background: #dc2626;
}

.flujos-filter-label:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Select dropdown options */
select option {
    background-color: #2a2a35;
    color: #fff;
}

/* Scrum Navigation & Tools */
.flujos-nav-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.flujos-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.flujos-nav-btn.active {
    background: rgba(242, 214, 129, 0.15);
    border-color: rgba(242, 214, 129, 0.4);
}

.flujos-nav-btn .nav-icon {
    font-size: 18px;
}

.flujos-nav-btn span {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.8;
}

.flujos-tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.flujos-tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#flujos-backlog-list.drag-over {
    background: rgba(252, 214, 129, 0.05);
    border-radius: 12px;
}

#flujos-search-menu .flujos-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for card lists */
.flujos-card-list::-webkit-scrollbar {
    width: 6px;
}

.flujos-card-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.flujos-card-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: background 0.2s;
}

.flujos-card-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Custom horizontal scrollbar for board */
#flujos-board::-webkit-scrollbar {
    height: 10px;
}

#flujos-board::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 0 10px;
}

#flujos-board::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(252, 214, 129, 0.4), rgba(252, 214, 129, 0.6));
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(252, 214, 129, 0.3);
}

#flujos-board::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(252, 214, 129, 0.6), rgba(252, 214, 129, 0.8));
    box-shadow: 0 0 15px rgba(252, 214, 129, 0.5);
}

/* Sidebar children transition for smooth fade */
#flujos-sidebar>* {
    transition: opacity 0.4s ease, visibility 0.4s ease;
    min-width: 228px;
    /* 260px - 32px padding, keeps content stable during collapse */
    white-space: nowrap;
}

#flujos-board::-webkit-scrollbar-thumb:active {
    background: linear-gradient(90deg, rgba(252, 214, 129, 0.7), rgba(252, 214, 129, 0.9));
}