*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

.app-viewport-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    height: calc(100vh - 110px); 
    min-height: 0;
}

.app-view-header {
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    gap: 16px;
    flex-shrink: 0;
}

.app-view-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.app-view-header h2 i {
    color: #3b82f6;
}

.app-view-header p {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 0 0;
}

.app-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.app-btn-primary:hover {
    background: #1d4ed8;
}

.app-main-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    flex-grow: 1;
    min-height: 0;
}

.app-panel-left, 
.app-panel-right {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    height: 100%;
    min-height: 0;
}

.app-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-panel-scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.app-scroll::-webkit-scrollbar {
    width: 5px;
}

.app-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.app-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.app-scroll::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.app-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    height: 100%;
    font-size: 13px;
    text-align: center;
}

.app-placeholder i {
    font-size: 24px;
    color: #cbd5e1;
}

@media (max-width: 1200px) {
    .app-viewport-container {
        height: auto;
        min-height: 100vh;
    }

    .app-main-layout {
        grid-template-columns: 1fr;
        flex-grow: unset;
    }

    .app-panel-left, 
    .app-panel-right {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .app-viewport-container {
        padding: 12px;
        gap: 12px;
    }

    .app-view-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 12px;
    }

    .app-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .app-panel-left, 
    .app-panel-right {
        height: 400px;
        padding: 12px;
    }
}