/* ============================================================
   PANEL CSS IMPORTS
   ============================================================ */
@import url('storage.css');
@import url('assignments.css');
@import url('teamchat.css');
@import url('calendar.css');
@import url('todoboard.css');
@import url('emailaccounts.css');
@import url('whatsapp.css');

/* ============================================================
   MOCKUP — Window Shell
   ============================================================ */
.hero-mockup {
    margin-top: 36px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 72px;
    width: 100%;
    max-width: 1100px;
    animation: fadeUp 0.8s 0.5s ease both;
}

.mockup-window {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.07),
        0 32px 80px rgba(43, 142, 240, 0.07);
}

.mockup-bar {
    background: #F8FAFC;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot:nth-child(1) {
    background: #FF5F57;
}

.mockup-dot:nth-child(2) {
    background: #FEBC2E;
}

.mockup-dot:nth-child(3) {
    background: #28C840;
}

.mockup-url {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    color: var(--muted);
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================================
   Layout: Sidebar + Main
   ============================================================ */
.mockup-body-3col {
    display: grid;
    grid-template-columns: 170px 1fr;
    height: 580px;
    font-family: 'DM Sans', -apple-system, sans-serif;
}

/* ============================================================
   Main content area — stacking panels
   ============================================================ */
.mock-main {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

/* All panels hidden by default */
.mock-panel {
    position: absolute;
    inset: 0;
    display: none;
    overflow: hidden;
}

/* Active panel visible */
.mock-panel.active {
    display: block;
}

/* ============================================================
   Inbox panel — internal 2-col grid (list + detail)
   ============================================================ */
.panel-inbox {
    display: grid;
    grid-template-columns: 250px 1fr;
    height: 100%;
    overflow: hidden;
}

/* ============================================================
   LEFT SIDEBAR
   ============================================================ */
.mock-sidebar {
    background: #FAFBFD;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
}

/* Header */
.ms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 6px;
}

.ms-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ms-logo-icon {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ms-brand {
    font-weight: 700;
    font-size: 13px;
    color: var(--midnight);
    letter-spacing: -0.2px;
}

.ms-collapse {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.ms-collapse:hover {
    background: var(--border);
}

/* Nav groups */
.ms-group {
    padding: 2px 6px 4px;
}

.ms-label {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--muted);
    text-transform: uppercase;
    padding: 4px 4px 2px;
}

/* Nav items */
.ms-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.ms-item svg:first-child {
    flex-shrink: 0;
    color: var(--muted);
}

.ms-item span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-item:hover {
    background: white;
}

.ms-item.active {
    background: var(--primary-subtle);
    color: var(--primary);
}

.ms-item.active svg:first-child {
    color: var(--primary);
}

/* Right-side icons */
.ms-item-badge {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.5;
}

.ms-item-icons {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    opacity: 0.5;
}

.ms-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ms-hash {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* User row */
.ms-user {
    margin-top: auto;
    padding: 8px 10px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
}

.ms-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #06B6D4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ms-user-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--midnight);
    line-height: 1.2;
}

.ms-user-role {
    font-size: 9px;
    color: var(--muted);
    line-height: 1.2;
}

.ms-user-chevron {
    margin-left: auto;
    flex-shrink: 0;
}

/* ============================================================
   EMAIL LIST (inside inbox panel)
   ============================================================ */
.mock-list {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ml-search {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.ml-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.ml-row:hover {
    background: #F8FAFC;
}

.ml-row.active {
    background: var(--primary-subtle);
}

.ml-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.ml-body {
    flex: 1;
    min-width: 0;
}

.ml-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}

.ml-sender {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--midnight);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.ml-date {
    font-size: 9px;
    color: var(--muted);
    flex-shrink: 0;
}

.ml-subject {
    font-size: 10px;
    font-weight: 500;
    color: var(--slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.ml-preview {
    font-size: 9.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* ============================================================
   EMAIL DETAIL (inside inbox panel)
   ============================================================ */
.mock-detail {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
}

.md-toolbar {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.md-header {
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

.md-header-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.md-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.md-from {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--midnight);
    line-height: 1.3;
}

.md-subject-line {
    font-size: 10px;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.3;
    margin-top: 1px;
}

.md-to {
    font-size: 9px;
    color: var(--muted);
    margin-top: 2px;
}

.md-date {
    font-size: 9px;
    color: var(--muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.md-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.md-banner {
    background: linear-gradient(90deg, #5B4FCF, #7C6FE0);
    padding: 5px 0;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.md-banner-track {
    display: flex;
    gap: 20px;
    animation: bannerScroll 20s linear infinite;
    width: max-content;
}

.md-banner-track span {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: white;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.md-content {
    padding: 12px 14px;
    flex: 1;
    overflow: hidden;
}

.md-unsub {
    font-size: 8px;
    color: #EF4444;
    margin-bottom: 8px;
}

.md-logo-text {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 20px;
    color: var(--midnight);
    margin-bottom: 6px;
}

.md-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.md-date-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--muted);
}

.md-presented {
    font-size: 9px;
    font-weight: 500;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.md-figma-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #F24E1E;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 700;
    color: white;
}

.md-headline {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--midnight);
    line-height: 1.35;
    margin-bottom: 8px;
}

.md-excerpt {
    font-size: 10px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.md-also {
    margin-bottom: 16px;
}

.md-also-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 6px;
}

.md-also-list {
    padding-left: 16px;
    margin: 0;
    list-style: disc;
}

.md-also-list li {
    font-size: 9.5px;
    color: var(--slate);
    line-height: 1.5;
    margin-bottom: 3px;
}

.md-article-2 {
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}

.md-headline-2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--midnight);
    line-height: 1.35;
    margin-bottom: 8px;
}

.md-img-placeholder {
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #E8D5B7 0%, #C4A882 40%, #8B7355 100%);
    border-radius: 5px;
}

/* ============================================================
   Coming soon placeholder (Slack)
   ============================================================ */
.panel-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    background: #FAFBFD;
}

.cs-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.cs-hash {
    font-size: 22px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.cs-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--midnight);
}

.cs-sub {
    font-size: 10.5px;
    color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .mockup-body-3col {
        grid-template-columns: 1fr;
        height: auto;
    }

    .mock-sidebar {
        display: none;
    }

    .mock-main {
        height: 500px;
    }

    .panel-inbox {
        grid-template-columns: 1fr;
    }

    .mock-detail {
        display: none;
    }
}