/* dashboard-style.css - New "Side-by-Side" Glassmorphism Theme */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

:root {
    --font-sans: 'Vazirmatn', sans-serif;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-glow: rgba(0, 255, 255, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    background-color: #1a1a2e;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(129, 2, 129, 0.4) 0%, rgba(129, 2, 129, 0) 25%),
        radial-gradient(circle at 80% 90%, rgba(2, 128, 128, 0.5) 0%, rgba(2, 128, 128, 0) 30%),
        radial-gradient(circle at 50% 50%, rgba(2, 2, 129, 0.3) 0%, rgba(2, 2, 129, 0) 40%);
    min-height: 100vh;
    background-attachment: fixed;
}

.app-container {
    max-width: 95%;
    margin: 2rem auto;
    padding: 1rem;
}

.app-header {
    text-align: center;
    margin-bottom: 2rem;
}
.app-header h1 {
    font-size: 3.5rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.app-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Base Panel Style */
.panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
}

h2 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    font-weight: 500;
}

/* Layout Grid */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    grid-template-areas:
        "controls log"
        "pages suggestions"
        "results results";
}

.controls-panel { grid-area: controls; }
#pages-panel { grid-area: pages; }
#suggestions-panel { grid-area: suggestions; }
#log-panel { grid-area: log; }
#results-panel { grid-area: results; }


input[type="text"], input[type="number"] {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1rem;
    width: 100%;
}
input:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.3); }
.btn:disabled { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); cursor: not-allowed;}
.btn.secondary { background-color: rgba(255, 255, 255, 0.1); }
.btn.success { background-color: rgba(26, 188, 156, 0.5); border-color: rgba(26, 188, 156, 0.8); }
.btn.danger { background-color: rgba(231, 76, 60, 0.5); border-color: rgba(231, 76, 60, 0.8); }

#pages-list, #source-paths-list ul {
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
    list-style-type: none;
}
.page-item span { color: var(--text-secondary); }

.log-container {
    background-color: rgba(0, 0, 0, 0.4);
    height: 450px; /* یک ارتفاع ثابت برای پنل */
    color: #E0E0E0;
    font-family: 'Courier New', Courier, monospace;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-y: auto; /* مهم: اسکرول عمودی را فعال می‌کند */
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#results-panel { display: none; text-align: center; }
.monospace-path { background-color: rgba(0, 0, 0, 0.2); padding: 8px 12px; border-radius: 6px; direction: ltr; display: inline-block; font-family: 'Courier New', Courier, monospace; }

.progress-bar { background-color: rgba(0, 0, 0, 0.2); border-radius: 8px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.2); }
.progress-bar-fill { height: 20px; background: linear-gradient(90deg, #36D1DC, #5B86E5); border-radius: 6px; width: 0%; transition: width 0.3s ease-in-out; text-align: center; color: white; font-weight: bold; line-height: 20px; font-size: 0.8rem; }

.suggestion-card { background: rgba(255, 255, 255, 0.05); padding: 1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); }
.suggestion-card h3 { color: var(--text-primary); font-size: 1.1rem; text-align: center; }