@font-face {
    font-family: myFirstFont;
    src: url("../ttf/Nunito-Light.ttf");
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: myFirstFont;
    background-color: #f8f9fa;
}

/* Full-viewport flex layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.page-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    flex-shrink: 0;
    width: 200px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 0;
}

.sidebar .nav-section {
    background-color: #007bff;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.85rem;
}

.sidebar .nav-link {
    color: #212529;
    padding: 5px 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid #dee2e6;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar .nav-link.active {
    color: #007bff;
    font-weight: bold;
    background-color: #e7f1ff;
}

.sidebar .nav-sub {
    padding-left: 24px;
}

/* Header */
.site-header {
    background-color: #007bff;
    color: #fff;
    padding: 6px 16px;
}

.site-header a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.site-header .subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Section boxes (matching template: border border-primary bg-light) */
.section-box {
    border: 1px solid #007bff;
    background-color: #fff;
    margin-bottom: 16px;
}

.section-title {
    background-color: #007bff;
    color: #fff;
    padding: 3px 10px;
    font-size: 0.9rem;
}

/* Result display */
.result-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 6px 12px;
    font-size: 1rem;
    color: #155724;
    font-family: monospace;
}

.result-label {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

/* Stage list */
.stage-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 5px 10px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.stage-item .stage-label {
    color: #6c757d;
    min-width: 55px;
}

.stage-item .stage-value {
    color: #212529;
    flex: 1;
}

.stage-item .remove-stage {
    color: #dc3545;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 4px;
}

/* News/blog */
.news-item {
    border-bottom: 1px solid #dee2e6;
    padding: 14px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h5 {
    color: #007bff;
    margin-bottom: 4px;
}

.news-item .news-date {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Tables */
table { border-collapse: collapse; width: 100%; }
th, td { padding: 6px 12px; }
th { background: #eee; }

/* Main content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    border-top: 1px solid #007bff;
    background-color: #f8f9fa;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: #495057;
}

.site-footer a {
    color: #007bff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

h2 {
    font-size: 1rem;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* YouTube grid */
.yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.yt-card {
    display: block;
    text-decoration: none;
    color: #212529;
    border: 1px solid #dee2e6;
    background: #fff;
    transition: box-shadow 0.15s;
}

.yt-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    color: #212529;
}

.yt-thumb {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
}

.yt-info {
    padding: 8px 10px;
}

.yt-title {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.3;
}

.yt-date {
    font-size: 0.75rem;
    color: #6c757d;
}
