* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top, #172554, #020617 60%);
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
}

.container {
    width: 90%;
    max-width: 700px;

    background: rgba(15, 23, 42, 0.92);

    border: 1px solid #334155;
    border-radius: 20px;

    padding: 40px;

    text-align: center;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 55px;
}

h1 {
    margin-bottom: 5px;
    font-size: 42px;
}

.subtitle {
    color: #94a3b8;
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 150px;

    padding: 15px;

    border-radius: 12px;
    border: 1px solid #475569;

    background: #020617;
    color: white;

    resize: vertical;
    font-size: 16px;
}

button {
    width: 100%;

    margin-top: 15px;
    padding: 15px;

    border: none;
    border-radius: 12px;

    background: #2563eb;
    color: white;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

.result {
    margin-top: 30px;

    border-top: 1px solid #334155;
    padding-top: 25px;
}

.hidden {
    display: none;
}

.score {
    font-size: 42px;
    font-weight: bold;

    margin: 15px 0;
}

.level {
    display: inline-block;

    padding: 8px 18px;

    border-radius: 30px;
    background: #334155;

    font-weight: bold;
}

ul {
    text-align: left;
    margin-top: 20px;
}

li {
    margin: 10px 0;
    color: #cbd5e1;
}
.progress {
    width: 100%;
    height: 12px;

    background: #1e293b;

    border-radius: 20px;

    overflow: hidden;

    margin: 15px 0 20px;
}

.progress-bar {
    width: 0%;
    height: 100%;

    border-radius: 20px;

    transition: width 0.6s ease;
}

.level.low {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.level.medium {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.level.high {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.progress-bar.low {
    background: #22c55e;
}

.progress-bar.medium {
    background: #f59e0b;
}

.progress-bar.high {
    background: #ef4444;
}
.risk-details {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.risk-card {
    padding: 18px;

    background: rgba(15, 23, 42, 0.9);

    border: 1px solid #334155;
    border-left: 4px solid #ef4444;

    border-radius: 12px;
}

.risk-title {
    margin: 0 0 15px;

    color: #f87171;

    font-size: 17px;
}

.risk-card p {
    margin: 5px 0 15px;

    color: #cbd5e1;

    line-height: 1.6;
}

.detail-label {
    color: #94a3b8;

    font-size: 13px;
    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.recommendation-label {
    color: #60a5fa;
}

.safe-card {
    padding: 18px;

    border-radius: 12px;

    background: rgba(34, 197, 94, 0.1);

    border: 1px solid rgba(34, 197, 94, 0.3);

    color: #4ade80;

    text-align: center;
}
.actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.actions button {
    margin-top: 0;
}

.clear-button {
    background: #1e293b;
    border: 1px solid #475569;
}

.clear-button:hover {
    background: #334155;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.summary-card {
    margin-top: 20px;
    padding: 16px;

    border-radius: 12px;

    line-height: 1.6;
    text-align: left;
}

.summary-card.low {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.summary-card.medium {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

.summary-card.high {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}
.divider {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 22px 0;

    color: #64748b;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #334155;
}

.image-upload {
    padding: 20px;

    border: 1px dashed #475569;
    border-radius: 14px;

    background: rgba(2, 6, 23, 0.4);

    text-align: center;
}

.upload-label {
    display: inline-block;

    padding: 12px 20px;

    border-radius: 10px;

    background: #1e293b;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.upload-label:hover {
    background: #334155;
}

.upload-info {
    margin: 12px 0 0;

    color: #64748b;

    font-size: 13px;
}

.image-preview {
    width: 100%;
    max-height: 350px;

    object-fit: contain;

    margin-top: 18px;

    border-radius: 10px;

    border: 1px solid #334155;
}

.ocr-status {
    margin-top: 15px;

    padding: 12px;

    border-radius: 10px;

    background: rgba(59, 130, 246, 0.08);

    color: #93c5fd;
}