/* Metadata Viewer Specific Styles */
.metadata-results {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #cccccc75;
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
}

.results-header {
    margin-bottom: 30px;
}

.file-info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.file-preview {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-preview .file-icon {
    font-size: 40px;
    color: #5a8dee;
}

.file-basic-info h3 {
    margin: 0 0 5px;
    color: #555;
}

.file-basic-info p {
    margin: 5px 0;
    color: #787878;
    font-size: 14px;
}

.metadata-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    background-color: #f5f9ff;
    border: 1px solid #c2d9ff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: #e0e8ff;
}

.tab-button.active {
    background-color: #5a8dee;
    color: white;
    border-color: #5a8dee;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.metadata-table {
    width: 100%;
    border-collapse: collapse;
}

.metadata-table tr {
    border-bottom: 1px solid #eee;
}

.metadata-table tr:last-child {
    border-bottom: none;
}

.metadata-table td {
    padding: 12px 15px;
    vertical-align: top;
}

.metadata-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 30%;
}

.metadata-table td:last-child {
    color: #333;
    word-break: break-word;
}

.metadata-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-button {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.clean-button {
    background-color: #5a8dee;
    color: white;
}

.clean-button:hover {
    background-color: #4a7ed6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(90,141,238,.2);
}

.export-button {
    background-color: #f0f8ff;
    border: 1px solid #c2d9ff;
    color: #5a8dee;
}

.export-button:hover {
    background-color: #e0e8ff;
    transform: translateY(-2px);
}

/* Privacy Score Styles */
.privacy-score-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
}

.privacy-score-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.2rem;
}

.privacy-score {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: bold;
}

.score-value {
    color: #212529;
}

.score-out-of {
    color: #6c757d;
    font-size: 1.2rem;
    margin: 0 5px;
}

.score-status {
    font-size: 1rem;
    margin-left: 10px;
}

.privacy-meter {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.meter-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.privacy-recommendation {
    padding: 10px;
    background-color: #e2f3ff;
    border-radius: 5px;
    color: #084298;
    font-size: 0.9rem;
    margin-top: 10px;
}

.file-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 1px solid #eee;
    margin-right: 20px;
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-preview-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.file-icon {
    font-size: 40px;
    color: #5a8dee;
    margin-bottom: 5px;
}

.file-extension {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metadata-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .metadata-table td:first-child {
        padding-top: 15px;
        border-bottom: none;
    }
    
    .metadata-table tr {
        padding: 10px 0;
        display: block;
    }
}

@media (max-width: 480px) {
    .metadata-tabs {
        gap: 5px;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
}