* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1e1e1e;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #bb86fc;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #bb86fc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121212;
    font-weight: bold;
}

main {
    flex: 1;
    padding: 20px 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-container {
    display: flex;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    color: #aaa;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    color: #bb86fc;
    border-bottom: 2px solid #bb86fc;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-primary {
    background-color: #bb86fc;
    color: #121212;
}

.btn-primary:hover {
    background-color: #a370e8;
}

.btn-secondary {
    background-color: #333;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #444;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 4px;
    padding: 8px 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
}

.search-bar input {
    background: none;
    border: none;
    color: #e0e0e0;
    width: 100%;
    outline: none;
    margin-left: 10px;
}

.video-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    min-width: 600px;
}

.video-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #2a2a2a;
    color: #aaa;
    font-weight: 500;
    font-size: 14px;
}

.video-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
}

.video-table tr:hover {
    background-color: #1a1a1a;
}

.video-name {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.video-thumbnail {
    width: 80px;
    height: 45px;
    background-color: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.video-name-text {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.action-icon:hover {
    background-color: #333;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #333;
}

.page-btn.active {
    background-color: #bb86fc;
    color: #121212;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-per-page select {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 5px 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    background-color: #333;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    z-index: 2000;
    max-width: calc(100% - 40px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #2e7d32;
}

.notification.error {
    background-color: #c62828;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid #bb86fc;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    header { padding: 10px 15px; }
    .logo { font-size: 18px; }
    .user-avatar { width: 30px; height: 30px; }
    main { padding: 15px; }
    .content-header { flex-direction: column; align-items: stretch; }
    .tab-container { width: 100%; justify-content: center; }
    .action-buttons { justify-content: center; }
    .btn { flex: 1; justify-content: center; min-width: 120px; }
    .search-bar { max-width: 100%; }
    .video-table { font-size: 14px; }
    .video-table th, .video-table td { padding: 8px 10px; }
    .video-thumbnail { width: 60px; height: 35px; }
    .video-name-text { max-width: 200px; }
    .action-icon { width: 28px; height: 28px; }
    .pagination-container { flex-direction: column; align-items: center; }
    .page-btn { width: 32px; height: 32px; font-size: 14px; }
    .modal-content { width: 95%; padding: 15px; }
    .btn { width: 100%; }
}

@media (max-width: 480px) {
    .logo { font-size: 16px; }
    .tab { padding: 8px 12px; font-size: 14px; }
    .video-table { font-size: 12px; }
    .video-table th, .video-table td { padding: 6px 8px; }
    .video-thumbnail { width: 50px; height: 30px; }
    .video-name-text { max-width: 150px; }
    .action-icon { width: 24px; height: 24px; }
    .page-btn { width: 28px; height: 28px; font-size: 12px; }
}