/*================================================================================
	Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
	Version: 2.0
	Author: PIXINVENT
	Author URL: http://www.themeforest.net/user/pixinvent
================================================================================

NOTE:
------
PLACE HERE YOUR OWN SCSS CODES AND IF NEEDED, OVERRIDE THE STYLES FROM THE OTHER STYLESHEETS.
WE WILL RELEASE FUTURE UPDATES SO IN ORDER TO NOT OVERWRITE YOUR STYLES IT'S BETTER LIKE THIS.  */

    #attachmentContainer,#commentsContainer{
        padding: 1px;
        background: #f1f1f1;
        margin: 10px 0px;
        border-radius: 10px;
    }

    .btn-primary,
    .dropdown-item:hover {
        border-color: #ff7700 !important;
        background-color: #e67817 !important;
    }

    .vs-checkbox-primary input:checked~.vs-checkbox {
        border-color: #ff7700 !important;
    }

    .form-control:focus {
        border-color: #ff7700 !important;
    }

    .vs-checkbox-primary input:checked~.vs-checkbox .vs-checkbox--check {
        background-color: #e67817 !important;
    }

    .btn-primary:hover {
        border-color: #ff7700 !important;
        box-shadow: 0 8px 25px -8px #e67817;
    }

    .primary,
    .text-primary,
    .darken-2 {
        color: #e67817 !important;
    }

    .main-menu.menu-light .navigation>li.active>a {
        background: #e67817 !important;
        box-shadow: 0 8px 25px -8px #e67817;
    }

    .select2-container--classic .select2-selection--multiple .select2-selection__choice,
    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        border-color: #ff7700 !important;
        background-color: #e67817 !important;
    }

    .board-image {
        height: 200px;
        object-fit: cover;
        border-radius: 5px;
    }

    .img-fluid {
        height: 200px !important
    }

    .circle-initials {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        margin-left: 5px;
        margin-bottom: 5px;
        cursor: pointer;
    }

    .description {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 4.5em;
        line-height: 1.5em;
    }

    .delete-icon {
        top: 10px;
        right: 10px;
        z-index: 10;
        cursor: pointer;
        color: #dc3545;
        font-size: 1.5rem;
    }

    .delete-icon:hover {
        color: #a71d2a;
    }

    .card-content {
        position: relative;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100%;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 9999;
        padding: 20px;
        overflow-y: auto;
    }

    .filter-sidebar.open {
        right: 0;
    }

    .filter-sidebar-content {
        display: flex;
        flex-direction: column;
    }

    .filter-section {
        margin-bottom: 20px;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    #applyFilter {
        margin-top: 20px;
    }

    .add-card {
        height: 20px;
        width: 20px;
        text-align: center;
        background: gray;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }

    .board-list {
        min-width: 250px;
        max-width: 250px;
        min-height: 500px;
        max-height: 600px;
        padding: 10px;
        border-radius: 10px;
        background: gainsboro;
    }

    .media-object {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        margin-left: 5px;
        margin-right: 5px;
        margin-bottom: 2px;
        cursor: pointer;
    }

    .task-card {
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        padding: 10px;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .task-card:last-child {
        margin-bottom: 15px;
    }

    .card-image img {
        border-radius: 5px;
        max-width: 100%;
    }

    /* Sortable.js drag and drop styles */
    .sortable-ghost {
        opacity: 0.6;
        background-color: #fff3e6 !important;
        border: 2px dashed #e67817 !important;
        box-shadow: 0 4px 12px rgba(230, 120, 23, 0.3) !important;
        min-height: 100px !important;
    }

    .sortable-chosen {
        cursor: grabbing !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
        transform: rotate(2deg);
        transition: transform 0.2s ease;
    }

    .sortable-drag {
        opacity: 0.8;
        background-color: #f8f9fa;
        border: 2px dashed #e67817;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        transform: rotate(3deg);
    }

    .is-dragging {
        opacity: 0.4;
    }

    .task-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .task-card:hover:not(.is-dragging) {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    /* Ensure ghost placeholder is highly visible */
    .tasks-container .sortable-ghost {
        display: block !important;
        visibility: visible !important;
        pointer-events: none;
    }

    /* Add visual gap indicator when dragging over */
    .task-card + .sortable-ghost {
        margin-top: 8px;
    }

    /* Make sure containers allow proper insertion */
    .tasks-container {
        position: relative;
    }

    .comment-section {
        margin-top: 12px;
        background-color: #1c1e21;
        padding: 20px;
        border-radius: 8px;
        color: #fff;
    }

    .comment-box {
        display: flex;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .profile-picture {
        width: 40px;
        height: 40px;
        background-color: #4a4a4a;
        border-radius: 50%;
        margin-right: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-weight: bold;
    }

    .comment-content {
        flex-grow: 1;
    }

    .comment-content p {
        margin: unset !important
    }

    .comment-actions {
        font-size: 0.9rem;
        color: #a5a5a5;
    }

    .comment-actions a {
        text-decoration: none;
        margin-right: 10px;
        color: #a5a5a5;
    }

    .comment-actions a:hover {
        text-decoration: underline;
    }

    .list-header {
        background: #e67817;
        padding: 8px;
        border-radius: 10px;
        justify-content: space-around
    }

    .list-header h4 {
        margin: unset !important;
        color: white
    }

    /* Updated deadline styles - now handled inline in blade template */
    .not-expire {
        cursor: pointer;
        padding: 4px 8px;
        background: #28a745;
        color: white;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .expire {
        cursor: pointer;
        padding: 4px 8px;
        background: #dc3545;
        color: white;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    /* Member avatars styling */
    .users-list {
        position: relative;
    }

    .users-list .avatar {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .users-list .avatar:hover {
        transform: translateY(-2px) scale(1.05);
        z-index: 100 !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.25) !important;
    }

    .users-list .avatar:first-child {
        margin-left: 0 !important;
    }

    /* Card meta section styling */
    .card-meta-section {
        width: 100%;
        overflow: hidden;
    }

    .card-meta-row {
        width: 100%;
        display: flex;
        align-items: center;
    }

    /* Deadline badge - ensure it never wraps */
    .deadline-badge {
        min-width: fit-content !important;
        max-width: fit-content !important;
    }

    .deadline-badge span {
        white-space: nowrap !important;
    }

    /* Attachment filename truncation */
    .attachment-box {
        overflow-x: hidden !important;
    }

    .attachment-filename {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
    }

    .attachment-filename:hover {
        text-decoration: underline;
    }
