.tpt-dropzone {
    border: 2px dashed #ccc;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tpt-dropzone.dragover {
    background: #e1f0ff;
    border-color: #2271b1;
    transform: scale(1.02);
}

.tpt-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 10px;
}
.tpt-dropzone:hover {
    background: #eef7ff;
}
.tpt-btn-primary {
    background-color: #2271b1;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.tpt-file-list {
    margin-top: 20px;
    max-height: 400px; /* Evita que la página se haga infinita */
    overflow-y: auto;
    padding: 5px;
}
.tpt-file-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.tpt-file-item:hover {
    transform: translateY(-2px);
    border-color: #2271b1;
}

.tpt-file-name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Corta nombres largos con ... */
}

.tpt-file-controls button {
    cursor: pointer;
    background: #f0f0f1;
    border: 1px solid #ccc;
    padding: 2px 8px;
    margin-left: 2px;
    border-radius: 3px;
}

.tpt-file-controls button:hover:not(:disabled) {
    background: #e0e0e0;
}

.tpt-remove {
    color: #d63638;
    border-color: #d63638 !important;
}

.tpt-file-info {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre ícono y texto */
    flex-grow: 1;
    min-width: 0; /* Permite que el texto se corte si es muy largo */
}

.tpt-pdf-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Mejora para los botones de movimiento */
.tpt-btn-move {
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    color: #888;
    padding: 0 5px !important;
}
.tpt-btn-move:hover {
    color: #2271b1;
}

.tpt-btn-move:hover:not(:disabled) {
    background: #e2e4e7;
    border-color: #8c8f94;
}

.tpt-btn-move:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tpt-mode-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 5px;
}
.tpt-mode-btn.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}
.tpt-remove {
    background: none !important;
    border: none !important;
    color: #ff4d4d !important;
    font-weight: bold;
    margin-left: 10px;
}

.tpt-btn-primary {
    background: #2271b1;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(34, 113, 177, 0.3);
    transition: all 0.3s;
}

.tpt-btn-primary:hover {
    background: #135e96;
    transform: scale(1.05);
}

.tpt-btn-primary:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

#clear-list {
    /* Mismo formato que el primario */
    background: #f0f0f1; /* Un gris claro para que no compita tanto visualmente */
    color: #d63638;      /* Texto rojo para indicar borrado */
    border: 2px solid #d63638;
    padding: 13px 28px;  /* Ajustado un poco por el borde de 2px */
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(214, 54, 56, 0.15);
    transition: all 0.3s;
    margin-left: 10px;   /* Espaciado entre botones */
}

#clear-list:hover {
    background: #d63638;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(214, 54, 56, 0.3);
}

#clear-list:active {
    transform: scale(0.98);
}