.tfd-document-library-container {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1b2733;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tfd-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e6e9ef;
    background: #f7f9fa;
}

.tfd-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tfd-breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0; /* Ensures breadcrumbs can shrink */
}

.tfd-breadcrumb-item {
    display: flex;
    align-items: center;
    min-width: 0;
}

.tfd-breadcrumbs button {
    background: none;
    border: none;
    color: #00a859; /* Teestaagro green */
    cursor: pointer;
    padding: 4px 8px;
    font-size: inherit;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.tfd-download-all-btn {
    display: inline-flex;
    align-items: center;
    background: #00a859;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.tfd-download-all-btn:hover {
    background: #008f4c;
}

.tfd-download-all-btn .dashicons {
    margin-right: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.tfd-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tfd-upload-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #00a859;
    border: 1px solid #00a859;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tfd-upload-btn:hover:not(:disabled) {
    background: #eafaf1;
}

.tfd-upload-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tfd-upload-btn .dashicons {
    margin-right: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.tfd-item-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.tfd-delete-link {
    background: none;
    border: none;
    padding: 0;
    color: #a4abb3;
    cursor: pointer;
    transition: color 0.2s;
}

.tfd-delete-link:hover {
    color: #d63638;
}

@media (max-width: 600px) {
    .tfd-header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tfd-actions {
        width: 100%;
        flex-direction: column;
    }

    .tfd-download-all-btn, .tfd-upload-btn {
        width: 100%;
        justify-content: center;
    }

    .tfd-breadcrumbs button {
        max-width: 100px;
    }
}

.tfd-breadcrumbs button:hover:not(:disabled) {
    background: #eafaf1;
    text-decoration: none;
}

.tfd-breadcrumbs button:disabled {
    color: #637282;
    cursor: default;
}

.tfd-separator {
    color: #a4abb3;
    margin: 0 4px;
}

.tfd-table-container {
    width: 100%;
}

.tfd-table {
    width: 100%;
    border-collapse: collapse;
}

.tfd-table th {
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e6e9ef;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #637282;
    letter-spacing: 0.05em;
}

.tfd-table td {
    padding: 12px 24px;
    border-bottom: 1px solid #f2f4f7;
    font-size: 14px;
    vertical-align: middle;
}

.tfd-item, .tfd-item-back {
    cursor: pointer;
    transition: background 0.15s;
}

.tfd-item:hover, .tfd-item-back:hover {
    background: #f7f9fa;
}

.tfd-item:hover .tfd-item-name {
    color: #00a859;
}

.tfd-col-name {
    display: flex;
    align-items: center;
}

.tfd-col-name .dashicons {
    margin-right: 12px;
    color: #00a859; /* Green tint for icons */
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.tfd-item-name {
    font-weight: 400;
    color: #1b2733;
}

.tfd-col-size {
    color: #637282;
    white-space: nowrap;
}

.tfd-col-actions {
    text-align: right;
    width: 40px;
}

.tfd-download-link {
    color: #a4abb3;
    transition: color 0.2s;
    text-decoration: none;
}

.tfd-download-link:hover {
    color: #00a859;
}

.tfd-loading, .tfd-error {
    padding: 40px;
    text-align: center;
    color: #637282;
}

.tfd-error {
    color: #d63638;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Specific icon tints if needed */
.tfd-type-directory .dashicons {
    color: #00a859;
}

.dashicons-format-image {
    color: #00a859;
}
