/* MS Outlook 365 Professional Theme */
:root {
    --outlook-blue: #0078d4;
    --nav-grey: #f3f2f1;
    --border-grey: #edebe9;
    --hover-grey: #f3f2f1;
    --text-black: #323130;
    --text-secondary: #605e5c;
    --white: #ffffff;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    background-color: var(--white);
    color: var(--text-black);
}

/* Container for the whole screen */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Top Branding Bar (The Blue Ribbon) */
.dashboard-header {
    background-color: var(--outlook-blue);
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: white;
    justify-content: space-between;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-section img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white to match Outlook theme */
}

.sim-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.sim-subtitle {
    font-weight: 400;
    font-size: 14px;
    opacity: 0.8;
}

/* Main Content Area */
.main-dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr; /* Task panel + Email frame */
    height: calc(100vh - 48px);
    overflow: hidden;
}

/* Left Task Panel (Mimicking the Inbox list/Read pane) */
.column:first-child {
    border-right: 1px solid var(--border-grey);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-area {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* The Scenario Dropdown Styling */
.scenario-selector {
    padding: 10px 20px;
    background: var(--nav-grey);
    border-bottom: 1px solid var(--border-grey);
}

#scenario-dropdown {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--outlook-blue);
    border-radius: 2px;
    font-size: 14px;
}

/* Instruction Box (Yellow/Gold Informational style) */
.instruction-box {
    background-color: #fff8f0;
    border: 1px solid #fde7d9;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 2px;
}

/* Journal Entry Table */
.task-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.task-table th {
    background: var(--nav-grey);
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px;
    border-bottom: 2px solid var(--border-grey);
}

.task-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-grey);
}

.task-input, input[type="number"] {
    border: 1px solid var(--border-grey);
    padding: 7px;
    font-size: 13px;
    transition: border 0.2s;
}

.task-input:focus {
    outline: none;
    border-color: var(--outlook-blue);
}

/* Buttons (Modern Square Style) */
.controls {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    border-radius: 2px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--outlook-blue);
    color: white;
}

.btn-primary:hover {
    background: #106ebe;
}

/* Right Side Email Frame */
#email-iframe {
    background: #f3f2f1; /* Subtle contrast behind the email white sheet */
}

/* User Stats Card */
.user-stats-card {
    background: white;
    padding: 10px;
    font-size: 12px;
    border-top: 1px solid var(--border-grey);
}

.highlight {
    color: var(--outlook-blue);
    font-weight: bold;
}
/* Layout Fixes */
:root {
    --outlook-blue: #0078d4;
    --border-grey: #edebe9;
    --nav-grey: #f3f2f1;
}

body, html {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

/* The parent container for the whole screen */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* The horizontal container for Sidebar + List + Reading Pane */
.main-layout {
    display: flex;
    flex-direction: row; /* Forces horizontal alignment */
    flex-grow: 1;       /* Takes up remaining vertical space */
    overflow: hidden;
}

/* Column 1: Folders */
.sidebar {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-grey);
    background: #ffffff;
    padding: 15px;
}

/* Column 2: Inbox List */
.email-list-panel {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-grey);
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Column 3: The Message Content */
.reading-pane {
    flex-grow: 1; /* This pushes the pane to fill ALL remaining right-side space */
    background: #ffffff;
    overflow-y: auto;
}

/* Header styling */
.dashboard-header {
    background-color: var(--outlook-blue);
    height: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}