/* Document Manager Styles - Matches the provided design exactly */

.document-manager-container {
    border: 2px solid #EE3239;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.document-type-group {
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
}

.document-type-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.document-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.document-icon {
    margin-right: 16px;
    flex-shrink: 0;
}

.document-icon svg {
    width: 24px;
    height: 24px;
}

.document-title {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.4;
}

.document-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    min-width: 120px;
}

.language-dropdown:focus {
    outline: none;
    border-color: #EE3239;
    box-shadow: 0 0 0 2px rgba(238, 50, 57, 0.2);
}

.dropdown-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.refresh-button svg {
    width: 16px;
    height: 16px;
}

.document-content {
    display: flex;
    align-items: center;
}

.language-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reference-number {
    font-size: 14px;
    color: #666666;
    font-weight: 400;
}

.language-indicator {
    font-size: 12px;
    color: #999999;
    font-style: italic;
}

.download-button {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download-button:hover {
    background: #e9ecef;
    color: #343a40;
    text-decoration: none;
    border-color: #adb5bd;
}

.download-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(238, 50, 57, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .document-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .document-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .language-dropdown {
        min-width: 100px;
    }
}

/* Special styling for specific document types */
.document-type-group[data-document-type="datasheet"] .document-icon svg path:first-child {
    fill: #EE3239;
}

.document-type-group[data-document-type="certificate"] .document-icon svg path:first-child,
.document-type-group[data-document-type="compliance"] .document-icon svg path:first-child,
.document-type-group[data-document-type="approval"] .document-icon svg path:first-child,
.document-type-group[data-document-type="declaration"] .document-icon svg path:first-child {
    fill: #EE3239;
}

/* Animation for language switching */
.language-content {
    transition: opacity 0.2s ease;
}

.language-content[style*="display: none"] {
    opacity: 0;
}

.language-content:not([style*="display: none"]) {
    opacity: 1;
}