﻿/* Smooth Transitions */
#loading, #unauthenticatedContent, #app-container {
    transition: opacity 0.3s ease-in-out;
}

.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Sort Indicators */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

    .sortable::after {
        content: '↕';
        position: absolute;
        right: 4px;
        opacity: 0.2;
        font-size: 0.8em;
    }

    .sortable.asc::after {
        content: '↑';
        opacity: 1;
        color: #4f46e5;
    }

    .sortable.desc::after {
        content: '↓';
        opacity: 1;
        color: #4f46e5;
    }

/* Badges & Kanban */
.badge {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-width: 1px;
}

.status-todo {
    background-color: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.status-progress {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
}

.status-qa {
    background-color: #fffbeb;
    color: #d97706;
    border-color: #fef3c7;
}

.status-done {
    background-color: #ecfdf5;
    color: #059669;
    border-color: #d1fae5;
}

.project-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
    color: #4f46e5;
    font-weight: 700;
    font-size: 1rem; /* Smaller font for smaller boxes */
    border-radius: 9999px;
}

.kanban-col {
    min-height: 300px;
    transition: background-color 0.2s ease;
}

    .kanban-col.drag-over {
        background-color: #e2e8f0;
        border: 2px dashed #94a3b8;
    }

.draggable-card {
    cursor: grab;
}

    .draggable-card:active {
        cursor: grabbing;
    }

/* Dashboard Project Drag Styles */
.project-card.dragging {
    opacity: 0.5;
    border: 2px dashed #6366f1;
    transform: scale(0.95);
}

.project-card.drag-over-target {
    border-left: 4px solid #4f46e5;
}

/* Sync Pulse */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.syncing-active {
    color: #16a34a;
    animation: pulse-green 2s infinite;
}

/* Media Modal */
.media-content-wrapper {
    max-height: 80vh;
    max-width: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .media-content-wrapper img, .media-content-wrapper video {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 0.5rem;
    }

    .media-content-wrapper iframe {
        width: 80vw;
        height: 80vh;
        border-radius: 0.5rem;
        border: none;
    }
