
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


:root {
    --primary-color: #1a73e8;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #e0e0e0;
    --dark-gray: #757575;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    /* padding: 15px 0; */
    padding-top: 15px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-tabs {
    display: flex;
    list-style: none;
}

.nav-tabs li {
    margin: 0 15px;
}

.nav-tabs a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-tabs a:hover, .nav-tabs a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.search-bar {
    flex: 0 1 400px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 24px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.user-menu {
    position: relative;
}

.user-menu button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    display: none;
    z-index: 101;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--secondary-color);
}


.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.video-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background-color: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    padding: 15px;
}

.video-creator {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
    cursor: pointer;
}

.video-title {
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--dark-gray);
}


.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 30px 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover, .pagination button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}


.form-container {
    max-width: 600px;
    margin: 30px auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0d5bcd;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}


.publish-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.publish-result.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.publish-result.error {
    background-color: #ffebee;
    color: #c62828;
    display: block;
}


.video-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.show-hide-btn {
    background-color: #2e64c9;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.show-hide-btn:hover {
    background-color: #0c37c5;
}

.no-style-link {
  color: inherit;         /* Use the surrounding text color */
  text-decoration: none;  /* Remove underline */
}
.no-style-link:visited {
  color: inherit;         /* Prevent purple visited color */
}
.no-style-link:hover,
.no-style-link:active,
.no-style-link:focus {
  color: inherit;
  text-decoration: none;
}


@media (max-width: 992px) {
    .search-bar {
        flex: 0 1 300px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        flex: 0 1 100%;
        margin: 15px 0 0;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .nav-tabs li {
        margin: 0 8px;
    }

    .nav-tabs a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px;
    }
}