
/* RAS AI Scan Application Styles */
#ras-scan-app {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: "Inter Display", "Inter", sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 10;
    position: relative;
    padding-top: 20px;
}

#ras-scan-app * {
    box-sizing: border-box;
}

.scan-heading {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.1em;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    text-align: center;
}

.scan-subheading {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Form Layout */
.scan-input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 600px) {
    .scan-input-group.row {
        flex-direction: row;
    }
}

/* Inputs */
.scan-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.scan-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.scan-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.scan-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 99px;
    padding: 16px 32px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.12, 0.23, 0.5, 1), opacity 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.scan-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.scan-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* States */
.scan-state {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.scan-state.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading State */
.scan-loader-container {
    padding: 40px 0;
    text-align: center;
}

.scan-loader-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-family: monospace;
}

.scan-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.scan-progress-fill {
    height: 100%;
    background: #ffffff;
    width: 0%;
    transition: width 0.3s ease;
}

/* Results Accordion */
.scan-result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
}

.scan-result-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.scan-result-title {
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scan-result-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scan-result-content {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -10px;
    padding-top: 20px;
}

.scan-result-card.open .scan-result-content {
    display: block;
}

.scan-icon-chevron {
    transition: transform 0.3s ease;
}

.scan-result-card.open .scan-icon-chevron {
    transform: rotate(180deg);
}

/* Helper spacing */
.mt-8 { margin-top: 32px; }
