/* =====================================
    PLATFORM
   Custom Styling Layer
   Works with Bulma CSS
===================================== */

/* ---------- GLOBAL ---------- */

html,
body {
    min-height: 100%;
    background: #f5f7fa;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- NAVBAR ---------- */

.navbar {
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand .navbar-item {
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- PAGE WRAPPER ---------- */

.main-container {
    padding-top: 25px;
    padding-bottom: 40px;
}

/* ---------- TITLES ---------- */

.title {
    color: #2c3e50;
}

.subtitle {
    color: #5c6b7a;
}

/* ---------- CARDS ---------- */

.audit-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;

    box-shadow:
        0 2px 6px rgba(0,0,0,0.08);
}

.audit-card:hover {
    box-shadow:
        0 8px 20px rgba(0,0,0,0.12);
}

/* ---------- RESULTS ---------- */

.result-box {
    margin-top: 25px;
}

.score {
    font-size: 2rem;
    font-weight: bold;
}

.pass {
    color: #23d160;
}

.warning {
    color: #ffdd57;
}

.fail {
    color: #ff3860;
}

/* ---------- TABLES ---------- */

.table {
    background: white;
}

.table th {
    background: #f3f4f6;
}

.table tr:hover {
    background: #fafafa;
}

/* ---------- DASHBOARD ---------- */

.dashboard-stat {
    text-align: center;
    padding: 20px;
}

.dashboard-number {
    font-size: 2rem;
    font-weight: bold;
}

.dashboard-label {
    color: #6b7280;
}

/* ---------- ANALYTICS BOX ---------- */

.analytics-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;

    box-shadow:
        0 2px 6px rgba(0,0,0,0.08);
}

/* ---------- CHART CONTAINER ---------- */

.chart-box {
    background: white;
    border-radius: 12px;
    padding: 20px;

    box-shadow:
        0 2px 6px rgba(0,0,0,0.08);
}

/* ---------- FORMS ---------- */

.input,
.textarea,
.select select {
    border-radius: 8px;
}

.textarea {
    min-height: 180px;
}

/* ---------- BUTTONS ---------- */

.button {
    border-radius: 8px;
}

.button.is-link {
    font-weight: 600;
}

/* ---------- COMPLAINTS ---------- */

.complaint-high {
    color: #ff3860;
    font-weight: bold;
}

.complaint-medium {
    color: #ffdd57;
    font-weight: bold;
}

.complaint-low {
    color: #23d160;
    font-weight: bold;
}

/* ---------- REPORT PAGE ---------- */

.report-panel {
    background: white;
    padding: 30px;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.08);
}

.report-download {
    text-align: center;
    margin-top: 20px;
}

/* ---------- STATUS BADGES ---------- */

.status-pass {
    background: #23d160;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-warning {
    background: #ffdd57;
    color: #363636;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-fail {
    background: #ff3860;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ---------- FOOTER ---------- */

.footer {
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

/* ---------- RESPONSIVE ---------- */

@media screen and (max-width: 768px) {

    .dashboard-number {
        font-size: 1.5rem;
    }

    .score {
        font-size: 1.5rem;
    }

    .table {
        font-size: 0.9rem;
    }


/* ==========================
   AI AUDIT CUSTOM STYLES
   Safe with Bulma
========================== */

.compare-card {
    text-align: center;
    transition: transform 0.2s ease;
}

.compare-card:hover {
    transform: translateY(-4px);
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.chart-container {
    margin-top: 20px;
}

.audit-section {
    margin-top: 20px;
}

.report-download {
    text-align: center;
    margin-top: 20px;
}

.dashboard-metric {
    text-align: center;
}

.dashboard-metric .value {
    font-size: 2rem;
    font-weight: bold;
}

.dashboard-metric .label {
    color: #777;
    font-size: 0.9rem;
}

.table td,
.table th {
    vertical-align: middle;
}



}

/* ---------- AUTHENTICATION & NAV BUTTONS ---------- */

.btn-login-styled {
    background: #485fc7;
    color: white !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease-in-out;
}

.btn-login-styled:hover {
    background: #3e56c4;
    box-shadow: 0 4px 12px rgba(72, 95, 199, 0.3);
    transform: translateY(-1px);
}

.btn-logout-styled {
    background: transparent;
    color: #f14668 !important;
    border: 1px solid #f14668;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease-in-out;
}

.btn-logout-styled:hover {
    background: #f14668;
    color: white !important;
    box-shadow: 0 4px 12px rgba(241, 70, 104, 0.3);
    transform: translateY(-1px);
}

/* Glassmorphic Login Page Styling */
.login-bg {
    background: radial-gradient(circle at 10% 20%, rgb(87, 108, 117) 0%, rgb(37, 50, 55) 100.2%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease;
}

.login-card:hover {
    transform: translateY(-2px);
}

/* ---------- FLOATING CHAT ASSISTANT ---------- */

/* Chat Floating Action Button (FAB) */
.chat-fab-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.chat-fab {
    background: #485fc7;
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(72, 95, 199, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(72, 95, 199, 0.6);
}

/* Scroll Trigger Tooltip Bubble */
.chat-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    line-height: 1.4;
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2c3e50;
}

.chat-tooltip-visible {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: chatWobble 1s ease-in-out;
}

/* Chat Widget Panel */
.chat-panel {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 350px;
    height: 480px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-panel-open {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Chat Header */
.chat-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-title {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background: #23d160;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    box-shadow: 0 0 8px #23d160;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.chat-close-btn:hover {
    color: white;
}

/* Chat Body (Messages History) */
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg-bot {
    background: white;
    color: #2c3e50;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-msg-user {
    background: #485fc7;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 6px rgba(72, 95, 199, 0.2);
}

/* Chat Footer (Inputs) */
.chat-footer {
    padding: 12px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #485fc7;
}

.chat-send-btn {
    background: #485fc7;
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #3e56c4;
}

/* Wobble keyframe */
@keyframes chatWobble {
    0%, 100% { transform: translateY(0); }
    15% { transform: translateY(-6px) rotate(-3deg); }
    30% { transform: translateY(3px) rotate(2deg); }
    45% { transform: translateY(-4px) rotate(-2deg); }
    60% { transform: translateY(2px) rotate(1deg); }
    75% { transform: translateY(-1px) rotate(-1deg); }
}

/* Responsive adjustment */
@media screen and (max-width: 480px) {
    .chat-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 85px;
    }
}

/* ---------- VOICE NOTE & LANG SELECTOR STYLES ---------- */

/* Microphone FAB Button */
.chat-mic-btn {
    background: transparent;
    color: #485fc7;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.chat-mic-btn:hover {
    background: #f4f6fc;
    color: #3e56c4;
    border-color: #3e56c4;
    transform: scale(1.05);
}

/* Pulsing Active Mic State */
.chat-mic-active {
    background: #ff3860 !important;
    color: white !important;
    border-color: #ff3860 !important;
    animation: micPulse 1.2s infinite ease-in-out;
}

/* Header Language Dropdown */
.chat-lang-select {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    padding: 3px 6px;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.chat-lang-select option {
    background: #2c3e50;
    color: white;
}

.chat-lang-select:focus {
    background: rgba(255, 255, 255, 0.25);
}

/* Listening Pulse Effect Keyframe */
@keyframes micPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 56, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 0);
    }
}

/* ---------- CHAT ASSISTANT INTERACTIVE SUGGESTIONS ---------- */

.chat-suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 12px 0;
    align-self: flex-start;
    width: 100%;
}

.chat-suggestion-chip {
    background: #eef2f7;
    color: #485fc7 !important;
    border: 1px solid #dcdfe6;
    border-radius: 12px;
    padding: 5px 10px;
    font-size: 0.72rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chat-suggestion-chip:hover {
    background: #485fc7;
    color: white !important;
    border-color: #485fc7;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(72, 95, 199, 0.25);
}

.chat-suggestion-chip:active {
    transform: translateY(0);
}

/* =====================================
   PREMIUM DASHBOARD STYLING
   ===================================== */

.dashboard-gradient-title {
    background: linear-gradient(135deg, #4f46e5 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Fail cards */
.fail-card {
    border-radius: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}

.fail-card-blue::before {
    background: linear-gradient(to bottom, #3b82f6, #06b6d4);
}

.fail-card-purple::before {
    background: linear-gradient(to bottom, #8b5cf6, #ec4899);
}

.fail-card-orange::before {
    background: linear-gradient(to bottom, #f59e0b, #ef4444);
}

.fail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Premium Linear Progress Bar */
.premium-progress-container {
    background-color: #f1f5f9;
    border-radius: 9999px;
    height: 10px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.premium-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0; /* Animated via script or inline */
}

.bg-gradient-blue {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
}

.bg-gradient-purple {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
}

.bg-gradient-orange {
    background: linear-gradient(to right, #f59e0b, #ef4444);
}

/* Leaderboard List */
.leaderboard-container {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    border: 1px solid #f8fafc;
}

.leaderboard-row:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
    border-color: #e2e8f0;
}

.leaderboard-medal {
    font-size: 1.5rem;
    width: 40px;
    display: flex;
    justify-content: center;
}

.leaderboard-rank-number {
    font-weight: 800;
    color: #64748b;
    font-size: 1.1rem;
    width: 40px;
    display: flex;
    justify-content: center;
}

.leaderboard-model-name {
    flex-grow: 1;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.leaderboard-score-value {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1e293b;
    margin-right: 16px;
}






/* =========================
   FOOTER
========================= */

.footer {

    margin-top: 60px;

    padding: 50px 30px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #1f2937
        );

    color: white;
}

/* =========================
   CONTAINER
========================= */

.footer-container {

    width: 100%;

    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 40px;
}

/* =========================
   COLUMN
========================= */

.footer-column {

    display: flex;

    flex-direction: column;

    gap: 14px;
}

/* =========================
   LOGO
========================= */

.footer-logo {

    font-size: 28px;

    font-weight: 700;

    color: #ff7e5f;
}

/* =========================
   HEADINGS
========================= */

.footer-column h3 {

    font-size: 18px;

    margin-bottom: 10px;
}

/* =========================
   LINKS
========================= */

.footer-column ul {

    list-style: none;

    padding: 0;

    margin: 0;
}

.footer-column li {

    margin-bottom: 10px;
}

.footer-column a {

    color: rgba(255,255,255,0.85);

    text-decoration: none;

    transition: 0.25s ease;
}

.footer-column a:hover {

    color: #ff7e5f;
}

/* =========================
   TEXT
========================= */

.footer-column p {

    color: rgba(255,255,255,0.82);

    line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .footer {

        padding: 40px 20px;
    }

    .footer-container {

        gap: 30px;
    }




}