:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-dark: #0F172A;
    --bg-panel: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-color: #334155;
    --success: #10B981;
    --error: #EF4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    background-color: var(--bg-panel);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #A5B4FC, #4F46E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.compatibility-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 2rem;
    border: 1px solid rgba(79, 70, 229, 0.3);
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
}

.compatibility-badge:hover {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.15);
}

.software-tag {
    color: var(--text-primary);
    font-weight: 600;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: rgba(30, 41, 59, 0.5);
    cursor: pointer;
}

.upload-area.dragover {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.1);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.status-area {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.file-info {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.progress-container {
    width: 100%;
    height: 0.5rem;
    background-color: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-bar.success {
    background-color: var(--success);
}

#statusText {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.error-message {
    color: var(--error);
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

/* Tooltip Interactive Styles */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    cursor: help;
}

.info-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}

.tooltip-container:hover .info-icon {
    stroke: var(--primary);
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 280px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    text-align: left;
    border-radius: 0.5rem;
    padding: 1rem;
    position: absolute;
    z-index: 10;
    bottom: 160%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    line-height: 1.5;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--bg-dark) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    bottom: 140%;
}

/* Feedback Modal Styles */
.feedback-trigger {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 50;
}

.feedback-trigger:hover {
    transform: translateY(-2px);
    background-color: var(--primary-hover);
}

.feedback-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background-color: var(--bg-panel);
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
    z-index: 100;
}

.feedback-modal::backdrop {
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.feedback-modal textarea {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: white;
    padding: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1.5rem;
}

.feedback-modal textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
