/* ============================================
   GEARGUARD REQUESTS / KANBAN STYLES
   ============================================ */

/* Kanban Main Layout */
.kanban-main {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    overflow: hidden;
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 1rem;
    flex: 1;
    overflow-x: auto;
    padding-bottom: 1rem;
}

/* Kanban Column */
.kanban-column {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.column-icon {
    font-size: 1.2rem;
}

.column-header h3 {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.column-count {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
}

/* Column Content */
.column-content {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
}

.column-content.drag-over {
    background: rgba(255, 215, 0, 0.05);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

/* Request Card */
.request-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    cursor: grab;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.request-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

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

/* Priority Colors */
.request-card.priority-low {
    border-left-color: var(--success);
}

.request-card.priority-medium {
    border-left-color: var(--gold);
}

.request-card.priority-high {
    border-left-color: #ff9500;
}

.request-card.priority-critical {
    border-left-color: var(--danger);
    animation: pulse-critical 2s infinite;
}

@keyframes pulse-critical {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0); }
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-priority-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-id {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.priority-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.request-card:hover .priority-dot {
    transform: scale(1.3);
}

.priority-dot.priority-low { background: var(--success); box-shadow: 0 0 6px var(--success); }
.priority-dot.priority-medium { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.priority-dot.priority-high { background: #ff9500; box-shadow: 0 0 6px #ff9500; }
.priority-dot.priority-critical { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

.card-type {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.type-corrective {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.type-preventive {
    background: rgba(78, 205, 196, 0.2);
    color: var(--success);
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Card Content */
.card-subject {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.request-card:hover .card-subject {
    color: var(--gold);
}

.card-equipment {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.card-equipment .eq-icon {
    font-size: 1rem;
}

.card-team {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

/* Card Meta */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-assignee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.assignee-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unassigned {
    font-size: 0.75rem;
    color: rgba(255, 165, 0, 0.8);
    font-weight: 500;
}

.card-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.card-date.overdue {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.15);
    font-weight: 600;
}

/* Overdue Badge */
.overdue-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.request-card.overdue {
    background: rgba(255, 107, 107, 0.08);
    border-left-color: var(--danger) !important;
}

/* Modal Small */
.modal-small {
    max-width: 400px;
}

/* Equipment Category Display */
.eq-category-display {
    display: none;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 500;
}

.eq-category-display.show {
    display: inline-block;
    animation: fadeIn 0.3s ease;
}

/* Auto-fill Highlight Animation */
select.auto-filled,
input.auto-filled {
    animation: autoFillPulse 0.5s ease;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

@keyframes autoFillPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrap Warning */
.scrap-warning {
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.scrap-warning p {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.scrap-warning .warning-text {
    color: var(--danger);
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--danger);
    border: none;
    color: var(--white);
}

.btn-danger:hover {
    background: #ff5252;
}

/* Responsive */
@media (max-width: 1024px) {
    .kanban-board {
        padding-bottom: 2rem;
    }

    .kanban-column {
        flex: 0 0 280px;
    }
}

@media (max-width: 768px) {
    .kanban-main {
        height: auto;
        overflow: visible;
    }

    .kanban-board {
        flex-direction: column;
        overflow-x: visible;
    }

    .kanban-column {
        flex: none;
        width: 100%;
    }

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

