﻿/* Files/style.css */
:root {
    /* --- پالت رنگی کاملاً روشن برای متون --- */
    --bg-body: #0f172a; /* پس زمینه اصلی */
    --bg-card: #1e293b; /* رنگ کارت‌ها */
    --bg-input: #020617; /* رنگ ورودی‌ها */

    --text-main: #ffffff; /* سفید خالص */
    --text-secondary: #e2e8f0; /* نقره‌ای بسیار روشن (جایگزین خاکستری) */
    --primary: #60a5fa; /* آبی روشن‌تر برای خوانایی بهتر */
    --accent: #22d3ee; /* فیروزه‌ای نئونی */

    --border-color: #334155;
    --gradient-glow: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --radius-lg: 20px;
}

/* اجبار رنگ سفید برای تمام صفحه */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), transparent 40%), radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.1), transparent 40%);
    min-height: 100vh;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* بازنویسی کلاس‌های بوت‌استرپ برای جلوگیری از متن تیره */
.text-muted {
    color: var(--text-secondary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--text-main) !important;
}

form#form1 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.main-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem;
    flex: 1;
}

/* --- استایل کارت‌های شیشه‌ای --- */
.dark-glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
}

/* --- Login Styles --- */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
    position: relative;
}

    .login-container::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        background: var(--gradient-glow);
        filter: blur(40px);
        opacity: 0.4;
        z-index: -1;
        border-radius: 30px;
    }

.logo-icon {
    font-size: 3rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

/* --- Form Inputs --- */
.form-control-dark {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #ffffff !important; /* متن سفید اجباری */
    padding: 14px;
    border-radius: 12px;
    transition: 0.3s;
}

    .form-control-dark::placeholder {
        color: rgba(255, 255, 255, 0.5) !important; /* پلیس‌هولدر روشن */
    }

    .form-control-dark:focus {
        background-color: var(--bg-input);
        border-color: var(--primary);
        color: #ffffff !important;
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
    }

.input-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Radio Button --- */
.radio-switch {
    display: flex;
    background: var(--bg-input);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    justify-content: center;
}

    .radio-switch table {
        margin: 0 auto;
    }

.search-type-list label {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-secondary); /* متن روشن */
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-type-list input[type="radio"] {
    display: none;
}

    .search-type-list input[type="radio"]:checked + label {
        background: var(--gradient-glow);
        color: white !important;
        font-weight: bold;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

/* --- Buttons --- */
.btn-neon {
    background: var(--gradient-glow);
    border: none;
    color: white !important;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

    .btn-neon:hover {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
        transform: translateY(-2px);
        color: white !important;
    }

/* --- Dashboard UI --- */
.user-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: white;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    text-decoration: none;
    color: white !important; /* متن سفید */
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
        background: #252f45;
    }

    .dashboard-card i {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        background: var(--gradient-glow);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .dashboard-card span {
        color: var(--text-secondary) !important; /* توضیحات کارت روشن */
    }

/* --- Results UI --- */
.result-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: 0.3s;
    overflow: hidden;
    color: white;
}

    .result-item:hover {
        border-color: var(--primary);
        transform: translateY(-3px);
    }

.item-header {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
}

.modality-tag {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd; /* آبی خیلی روشن */
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.item-body {
    padding: 1.5rem 1.2rem;
}

.info-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-action {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: var(--primary);
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

    .btn-action:hover {
        background: #3b82f6;
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    }

/* --- Footer (Avantech Branding) --- */
.app-footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(15, 23, 42, 0.95);
    font-size: 0.9rem;
    color: var(--text-secondary); /* متن روشن */
}

.avantech-link {
    color: var(--accent) !important; /* فیروزه‌ای روشن */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

    .avantech-link:hover {
        color: #fff !important;
        text-shadow: 0 0 10px var(--accent);
    }

.svg-icon-small {
    width: 24px;
    height: 24px;
    color: white;
}
/* Dropdown Override */
.dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    color: white;
}

    .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 768px) {
    .dashboard-card {
        padding: 1.5rem;
    }

    .user-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
