/* Global Metadata Cleaner v2.0 */

#gmc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 580px;
    margin: 40px auto;
    padding: 24px 16px;
    background: #8B9B70;
    min-height: 100vh;
    box-sizing: border-box;
}

#gmc-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Header */
#gmc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

#gmc-header svg {
    width: 36px;
    height: 36px;
    color: #152f59;
    flex-shrink: 0;
}

#gmc-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #152f59;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    border: none !important;
}

#gmc-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Info box — dark background, white text for contrast */
#gmc-info {
    background: #152f59;
    border: none;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #ffffff;
}

#gmc-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ffffff;
}

#gmc-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#gmc-info ul li {
    padding: 3px 0;
    color: #e2e8f0;
}

#gmc-info ul li em {
    color: #ffffff;
    font-style: italic;
}

/* Drop zone */
#gmc-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
    background: #f8fafc;
}

#gmc-dropzone:hover,
#gmc-dropzone.drag-over {
    border-color: #152f59;
    background: #eef2f8;
}

#gmc-dropzone.has-file {
    border-color: #8B9B70;
    background: #f4f6f0;
}

#gmc-dropzone svg {
    width: 32px;
    height: 32px;
    color: #94a3b8;
    margin-bottom: 10px;
}

#gmc-dropzone.has-file svg {
    color: #8B9B70;
}

#gmc-dropzone p {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #475569;
}

#gmc-file-name {
    font-size: 12px;
    color: #94a3b8;
    display: block;
}

#gmc-dropzone.has-file #gmc-file-name {
    color: #5a6e42;
    font-weight: 500;
}

/* Author + Filename rows */
#gmc-author-row,
#gmc-filename-row {
    margin-bottom: 20px;
}

#gmc-author-row label,
#gmc-filename-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

#gmc-author {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s;
}

#gmc-author:focus {
    outline: none;
    border-color: #152f59;
    box-shadow: 0 0 0 3px rgba(21,47,89,0.1);
}

#gmc-filename-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

#gmc-filename-input-wrap span {
    font-size: 14px;
    color: #64748b;
    white-space: nowrap;
}

#gmc-output-name {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s;
}

#gmc-output-name:focus {
    outline: none;
    border-color: #152f59;
    box-shadow: 0 0 0 3px rgba(21,47,89,0.1);
}

#gmc-output-name:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

/* Button */
#gmc-btn {
    width: 100%;
    padding: 12px;
    background: #152f59;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

#gmc-btn:hover:not(:disabled) {
    background: #0e1f3a;
}

#gmc-btn:disabled {
    background: #4a6fa5;
    cursor: not-allowed;
}

#gmc-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gmc-spin {
    width: 18px;
    height: 18px;
    animation: gmc-rotate 0.8s linear infinite;
}

@keyframes gmc-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Status messages */
#gmc-status {
    font-size: 13px;
    min-height: 20px;
    text-align: center;
}

.gmc-status-success { color: #16a34a; font-weight: 500; }
.gmc-status-error   { color: #dc2626; }
.gmc-status-info    { color: #152f59; }
