.csv-viewer-container {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 25px;
}

.csv-info {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.csv-info p {
    margin: 8px 0;
    color: #495057;
    font-size: 14px;
}

.csv-info strong {
    color: #2b3440;
    font-weight: 600;
}

.add-row-button {
    background: #4dabf7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.add-row-button:hover {
    background: #339af0;
}

.csv-search-container {
    margin-bottom: 25px;
    position: relative;
}

#csvSearch {
    width: 100%;
    padding: 12px 15px;
    padding-left: 40px;
    font-size: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #495057;
}

#csvSearch:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

.csv-search-container::before {
    content: "🔍";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 15px;
}

.csv-ninja-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    table-layout: fixed;
}

.resizable-col {
    position: relative;
    min-width: 100px;
}

.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    cursor: col-resize;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.resize-handle:hover,
.resize-handle.dragging {
    background-color: #4dabf7;
}

.csv-ninja-table.resizing {
    cursor: col-resize;
    user-select: none;
}

.csv-ninja-table th {
    background: linear-gradient(145deg, #f1f3f5 0%, #e9ecef 100%);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #2b3440;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.csv-ninja-table td {
    padding: 12px 16px;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.editable {
    cursor: pointer;
    position: relative;
}

.editable:hover {
    background-color: rgba(77, 171, 247, 0.1);
}

.editable.editing {
    padding: 8px !important;
}

.editable textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #4dabf7;
    border-radius: 4px;
    font-size: inherit;
    font-family: inherit;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
    resize: vertical;
    line-height: 1.5;
    margin: 0;
}

.editable textarea:focus {
    outline: none;
}

.editable.multiline textarea {
    min-height: 120px;
}

.status-cell {
    position: relative;
}

.status-wrapper {
    position: relative;
    width: 100%;
}

.status-select {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: inherit;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
}

.status-display {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    pointer-events: none;
    z-index: 0;
}

.status-display.team-working {
    background: linear-gradient(-45deg, #FF6B6B, #4ECDC4);
    background-size: 200% 200%;
    color: white;
    animation: gradientBG 2s ease infinite;
}

.status-display:not(.team-working) {
    background-color: #37B24D;
    color: white;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media screen and (max-width: 768px) {
    .csv-viewer-container {
        padding: 15px;
        margin: 15px 0;
    }

    .csv-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .csv-ninja-table th,
    .csv-ninja-table td {
        padding: 12px;
        min-width: 120px;
    }
}