﻿/* Dark Theme CSS */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #cecbcb;
    background: #0d1117;
    min-height: 100vh;
}

body .card {
	color: #cecbcb;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9d1d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 0;
}

.modal-content {
    background: #161b22;
    border: none;
    margin: 0;
    padding: 3rem;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100%;
    position: relative;
    animation: modalFadeIn 0.2s ease;
    color: #ffffff;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    padding-right: 2rem;
}

.modal-content h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.modal-content h5 {
    color: #e6edf3;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.modal-content p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.modal-content ul li {
    font-size: 0.8125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #21262d;
}

.modal-content ul li:last-child {
    border-bottom: none;
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    color: #8b949e;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close:hover {
    color: #ffffff;
    background: #30363d;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    color: #ffffff;
    font-weight: 600;
}

.form-control, select.form-control, input[type="text"], input[type="number"], textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.8125rem;
    transition: border-color 0.2s ease;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #30363d;
}

.modal-actions .btn {
    font-size: 0.8125rem;
    padding: 0.625rem 1rem;
}
    color: #ffffff;
    font-weight: 500;
}

.form-control, select.form-control, input[type="text"], input[type="number"], textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-control:focus, select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #58a6ff;
    background: #0d1117;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #0969da;
    color: white;
}

.btn-secondary {
    background: #6e7681;
    color: white;
}

.card {
    background: #161b22;
    border: 1px solid #30363d;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Table Styling */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #ffffff;
}

.data-table thead th {
    background: #0d1117;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #30363d;
    text-align: left;
}

.data-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #21262d;
    color: #ffffff;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background: #161b22;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Page Layout Spacing */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.filter-bar {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.filter-bar .form-group {
    margin-bottom: 1.5rem;
}

.filter-bar .form-group:last-child {
    margin-bottom: 0;
}

.filter-bar label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.filter-bar .row {
    gap: 1.5rem;
}

.subject-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 2.25rem;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
    position: relative;
}

.subject-card:hover {
    border-color: #484f58;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.subject-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subject-card .badge-success {
    background: #238636 !important;
    color: #ffffff !important;
}

.subject-card .badge-warning {
    background: #9e6a03 !important;
    color: #ffffff !important;
}

.subject-card .badge-secondary {
    background: #6e7681 !important;
    color: #ffffff !important;
}

.subject-card h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.subject-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.subject-card .text-muted {
    margin-bottom: 1.25rem;
    display: block;
}

.subject-card .btn {
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.generate-more-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2.5rem 0;
}

/* Video Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.video-card:hover {
    border-color: #484f58;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.video-card video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.video-card-body {
    padding: 1.75rem;
}

.video-card h5 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.video-card p {
    color: #8b949e;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.video-card .hashtags {
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-card-hashtags {
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-card .hashtag {
	display: inline-block;
	background: #0d1117;
	color: #58a6ff;
	padding: 5px 7px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	border: 1px solid #30363d;
	transition: all 0.2s ease;
}

.video-card .hashtag:hover {
    background: #161b22;
    border-color: #58a6ff;
    color: #58a6ff;
}

.video-card .badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.video-card .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.video-card .btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.subject-card-actions {
    margin-top: 10px;
}

.filter-bar .filter-group .btn-success {
	margin-top: 10px;
}

#youtubeUploadModal .modal-content,
#videoProgressModal .modal-content {
	max-height: 95vh;
	overflow-y: auto;
	width: 100% !important;
	max-width: 95vw !important;
}

/* Generated Assets Grid */
.generated-assets {
    padding: 10px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.generated-assets h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.assets-list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1400px) {
    .assets-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .assets-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .assets-list {
        grid-template-columns: 1fr;
    }
}

.asset-item {
    background: #161b22;
    padding: 0.75rem;
    border: 1px solid #30363d;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
}

.asset-item:hover {
    border-color: #484f58;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.asset-item img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: #0d1117;
}

.asset-item video {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 350px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: #000;
}

.asset-item .asset-label {
    font-size: 0.75rem;
    color: #8b949e;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-container {
	font-size: 11px;
	max-height: 200px;
	overflow: auto;
	border: 1px solid aliceblue;
	border-radius: 3px;
	padding: 5px;
}

/* Progress Steps - Horizontal Layout */
.progress-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 992px) {
    .progress-steps {
        grid-template-columns: 1fr;
    }
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    background: #0d1117;
    border: 2px solid #30363d;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #0d1b2a;
    border-color: #58a6ff;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

.progress-step.completed {
    background: #0d1b17;
    border-color: #3fb950;
    box-shadow: 0 0 15px rgba(63, 185, 80, 0.3);
}

.progress-step.error {
    background: #1b0d0d;
    border-color: #f85149;
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.3);
}

.step-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: none !important;
}

.step-content {
    width: 100%;
}

.step-content h4 {
    margin: 0 0 0.375rem 0;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-status {
    margin: 0;
    color: #8b949e;
    font-size: 0.75rem;
    line-height: 1.4;
}

.subject-card-hashtags .hashtag {margin-right: 10px;}

.filter-group .btn-info {margin-top: 10px;}

.video-card-meta {
	font-size: 12px;
	margin-bottom: 10px;
}

select option { color: #fff !important;}

#topicModal .modal-content{
    width: 1024px !important;
    min-height: 0;
    height: 100%;
    max-height: 1024px;;
}

body .text-muted {
	color: #fff !important;
}