* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header .row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.header .row svg {
    height: 45px;
    width: auto;
}

.header h1 {
    font-size: 2.5em;
    /* margin-bottom: 10px; */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.drop-zone {
    border: 3px dashed #667eea;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.drop-zone:hover {
    border-color: #764ba2;
    background: #f0f2ff;
}

.drop-zone.dragover {
    border-color: #764ba2;
    background: #e8ebff;
    transform: scale(1.02);
}

.drop-zone-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.drop-zone-text {
    font-size: 18px;
    color: #667eea;
    font-weight: 500;
}

.files-list {
    margin-top: 20px;
}

.file-item {
    background: #f8f9ff;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item:hover {
    background: aliceblue;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-status {
    font-size: 14px;
    color: #667eea;
}

.search-section {
    margin-top: 30px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    ection {
    }
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.results-section {
    margin-top: 30px;
}

.result-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.result-filename {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.result-row {
    font-size: 14px;
    opacity: 0.9;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    overflow-x: auto;
    display: block;
}

.result-table table {
    width: 100%;
    min-width: 600px;
}

.result-table th {
    background: #f8f9ff;
    color: #667eea;
    padding: 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    font-size: 13px;
}

.result-table td {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.result-table tr:hover {
    background: #f8f9ff;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 18px;
}

.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-weight: 500;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.copy-row-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.copy-row-btn:hover {
    background: #764ba2;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.copy-row-btn:active {
    transform: translateY(0);
}

.copy-success {
    color: #28a745;
    font-size: 13px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-success.show {
    opacity: 1;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 10px 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.files-header:hover {
    color: #667eea;
}

.files-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.files-count {
    background: #667eea;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    transform: rotate(-90deg);
}

.toggle-icon.expanded {
    transform: rotate(0deg);
}

.files-content {
    max-height: 1000px;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        opacity 0.3s ease;
    opacity: 1;
}

.files-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.file-item .file-status-icon {
    font-size: 16px;
    margin-left: 10px;
}

.file-item .file-status-icon.success {
    color: #28a745;
}

.file-item .file-status-icon.error {
    color: #dc3545;
    cursor: help;
    position: relative;
}

.file-status-icon.error::after {
    content: attr(data-error);
    position: absolute;
    bottom: 50%;
    right: 120%;
    transform: translateY(50%);
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.file-status-icon.error::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translate(5%, -50%);
    border: 6px solid transparent;
    border-left-color: #dc3545;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.file-item:hover .file-status-icon.error::after,
.file-item:hover .file-status-icon.error::before {
    opacity: 1;
}

.files-errors-summary {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: none;
}

.files-errors-summary.show {
    display: block;
}

.files-errors-summary h4 {
    color: #c33;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.files-errors-summary ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #c33;
}

.files-errors-summary li {
    margin-bottom: 5px;
}
