.content-drop-cert{
    width: 100%;
    border: 1px dashed #00000042;
    border-radius: 10px;
}
.fs-80px{
    font-size: 80px !important;
}
#file-load{
    position: absolute;
    width: 100%;
    margin-top: 23px;
}
#file-load .icon{
    position: absolute;
    cursor: pointer;
    color: #e85347;   
}
.hover-color-before-info:hover:before{
    color: #09c2de
}
.hover-color-before-danger:hover:before{
    color: #e85347;
}
.pdfobject-container { height: 100%; border: 1rem solid rgba(0,0,0,.1); }
#help-show{
    display: none;
}
.loader-frem{
    animation: loading-animation 1s linear infinite alternate;
}
.loader-frem.rounded{
    border-radius: 10px !important;
}
.loader-frem.rounded{
    border-radius: 10px !important;
}
@keyframes loading-animation{
    0% {
        background-color: #f3f4f6; /* Gris muy claro, casi blanco */
    }
    50% {
        background-color: #e0e0e0; /* Gris claro, ligeramente más oscuro */
    }
    100% {
        background-color: #d1d5db; /* Gris medio, sigue siendo muy claro */
    }
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --success: #10b981;
    --success-light: #d1fae5;
    --error: #ef4444;
    --error-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Upload Container Custom */
.pdf-upload-container {
    max-width: 760px;
    margin: 0 auto;
}

.pdf-uploader-wrapper {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
}


/* Upload Section */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #6366f1 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.upload-header {
    margin-bottom: 1rem;
    text-align: center;
}

.upload-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
    letter-spacing: 0;
}

.subtitle {
    color: var(--neutral-500);
    font-size: 0.875rem;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--neutral-300);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--neutral-50);
    position: relative;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    width: 42px;
    height: 42px;
    color: var(--primary);
    margin: 0 auto 0.75rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.drop-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.25rem;
}

.drop-subtext {
    color: var(--neutral-500);
    font-size: 0.825rem;
    margin-bottom: 0.75rem;
}

.format-info {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.625rem 0.875rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
}

.format-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.format-example {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--neutral-600);
    background: var(--neutral-50);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

/* File Counter */
.file-counter {
    text-align: center;
    margin-top: 0.875rem;
    font-size: 0.825rem;
    color: var(--neutral-600);
}

#fileCount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Files List */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.file-item {
    background: white;
    border-radius: 10px;
    padding: 0.875rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Status Indicator */
.status-indicator {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.status-indicator.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.status-indicator.uploading {
    background: var(--primary-light);
    color: var(--primary);
}

.status-indicator.success {
    background: var(--success-light);
    color: var(--success);
}

.status-indicator.error {
    background: var(--error-light);
    color: var(--error);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* File Info */
.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.file-certificate,
.file-series {
    font-family: 'JetBrains Mono', monospace;
    background: var(--neutral-100);
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    font-size: 0.7rem;
}

.file-size {
    color: var(--neutral-400);
}

.file-status {
    font-weight: 500;
}

.file-status.uploading {
    color: var(--primary);
}

.file-status.success {
    color: var(--success);
}

.file-status.error {
    color: var(--error);
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 0 0 0 16px;
}

/* Actions */
.file-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    padding: 0;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.action-btn.clear {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.action-btn.clear:hover {
    background: var(--neutral-200);
    color: var(--neutral-700);
}

.action-btn.delete {
    background: var(--error-light);
    color: var(--error);
}

.action-btn.delete:hover {
    background: var(--error);
    color: white;
}

.action-btn.edit {
    background: var(--primary-light);
    color: var(--primary);
}

.action-btn.edit:hover {
    background: var(--primary);
    color: white;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn:disabled:hover {
    transform: none;
}

/* SVG Icons */
.action-btn svg {
    width: 15px;
    height: 15px;
}

/* Error Message */
.error-message {
    background: var(--error-light);
    color: var(--error);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    border-left: 3px solid var(--error);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--neutral-400);
}

.empty-state svg {
    width: 52px;
    height: 52px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 640px) {
    .upload-section {
        padding: 1rem;
    }

    .upload-header h1 {
        font-size: 1.15rem;
    }

    .drop-zone {
        padding: 1.25rem 0.75rem;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .file-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
