@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* GENERAL PAGE */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
    animation: fadeIn 0.6s ease-in;
}

/* NAVBAR */
.navbar {
    background: #111827;
    color: white;
    padding: 20px;
    text-align: center;
}

.navbar h2 {
    margin: 0;
}

.navbar p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #9ca3af;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: auto;
}

.nav-links a {
    color: #c7d2fe;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}


/* MAIN CONTAINER */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* CARD */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.4s ease-out;
}


/* TEXTAREA */
textarea {
    width: 100%;
    height: 160px;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    resize: none;
    margin-top: 10px;
}

/* BUTTON */
button {
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #4f46e5;
    color: white;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}

button:active {
    transform: scale(0.97);
}

/* RESULT STYLES */
.result {
    border-left: 6px solid;
}

.result.FRAUD {
    border-color: #ef4444;
}

.result.SAFE {
    border-color: #10b981;
}

.status {
    font-size: 28px;
    margin: 10px 0;
}

/* CONFIDENCE BAR */
.confidence-bar {
    width: 100%;
    height: 16px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0 15px;
}

.confidence-fill {
    height: 100%;
    background: #6366f1;
    transition: width 0.5s ease;
}

/* EXPLANATION TEXT */
.explain {
    font-size: 15px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}
.highlight {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: bold;
}
button {
    margin-right: 10px;
}
.status {
    font-size: 28px;
    margin: 10px 0;
}

.result.FRAUD .status {
    color: #dc2626;
}

.result.SAFE .status {
    color: #059669;
}
.loader {
    display: none;
    margin-top: 15px;
    font-weight: 500;
    color: #4f46e5;
}
/* -------------------------
   MOBILE RESPONSIVE DESIGN
-------------------------- */
@media (max-width: 768px) {

    .navbar {
        padding: 15px;
        text-align: center;
    }

    .nav-content {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        margin-top: 5px;
    }

    .container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .card {
        padding: 20px;
    }

    textarea {
        height: 130px;
        font-size: 14px;
    }

    button {
        width: 100%;
        font-size: 16px;
    }

    .status {
        font-size: 24px;
        text-align: center;
    }

    .confidence-bar {
        height: 14px;
    }
}
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.result {
    border-left: 6px solid;
    animation: popIn 0.3s ease-out;
}
.hero {
    text-align: center;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

.hero p {
    opacity: 0.9;
}
button {
    background: linear-gradient(to right, #4f46e5, #4338ca);
}
.card {
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.04);
}
