/* Base Styles */
:root {
    --primary-color: #ff4757;
    --primary-dark: #ff0000;
    --secondary-color: #2ed573;
    --dark-color: #2f3542;
    --light-color: #f1f2f6;
    --gray-color: #a4b0be;
    --dark-gray: #57606f;
    --white: #ffffff;
    --black: #000000;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-danger {
    background-color: #ffdddd;
    border-left: 5px solid #f44336;
    color: #f44336;
}

.alert-success {
    background-color: #ddffdd;
    border-left: 5px solid #4CAF50;
    color: #4CAF50;
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
    position: relative;
}

.main-nav a {
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.main-nav a i {
    margin-right: 5px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0;
    padding: 5px 15px;
}

.dropdown-menu a {
    padding: 5px 0;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-box {
    margin-right: 20px;
    position: relative;
}

.search-box input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--gray-color);
    width: 200px;
    transition: var(--transition);
}

.search-box input:focus {
    width: 250px;
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
}

.user-dropdown {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-dropdown .dropdown-menu {
    right: 0;
    left: auto;
}

.auth-buttons .btn-login {
    margin-right: 10px;
    color: var(--dark-color);
}

.auth-buttons .btn-register {
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--light-color);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.mobile-search {
    padding: 15px;
    border-bottom: 1px solid var(--light-color);
}

.mobile-search input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--gray-color);
}

.mobile-search button {
    background: none;
    border: none;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
}

.mobile-nav {
    padding: 15px;
}

.mobile-nav li {
    margin-bottom: 10px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-weight: 600;
}

.mobile-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mobile-dropdown > a {
    justify-content: space-between;
}

.mobile-submenu {
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.mobile-submenu.active {
    max-height: 500px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    margin-bottom: 50px;
    border-radius: 10px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
    color: var(--white);
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
}

.view-all a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
}

.view-all a i {
    margin-left: 5px;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    display: block;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    font-size: 3rem;
    color: var(--white);
}

.video-info {
    padding: 15px;
}

.video-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.video-author {
    display: flex;
    align-items: center;
}

.video-author img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.video-stats {
    display: flex;
}

.video-stats span {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.video-stats i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.no-videos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
}

.no-videos i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.no-videos p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 1.5rem;
}

.category-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.category-card p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: var(--white);
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
}

.page-item:hover, .page-item.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Video Page */
.video-page {
    margin-top: 30px;
}

.video-player-container {
    position: relative;
    width: 100%;
    background-color: var(--black);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.video-player-container video {
    width: 100%;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.video-player-container:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 5px;
}

.volume-control {
    display: flex;
    align-items: center;
}

#volume-slider {
    width: 80px;
    margin-left: 5px;
    opacity: 0;
    transition: var(--transition);
}

.volume-control:hover #volume-slider {
    opacity: 1;
}

.time-display {
    color: var(--white);
    font-size: 0.9rem;
    margin: 0 10px;
}

.video-info-section {
    margin-bottom: 30px;
}

.video-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-color);
}

.video-stats {
    display: flex;
    color: var(--dark-gray);
}

.video-stats span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.video-stats i {
    margin-right: 5px;
}

.video-actions {
    display: flex;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 15px;
    color: var(--dark-gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.action-btn i {
    margin-right: 5px;
}

.action-btn:hover {
    color: var(--primary-color);
}

.like-btn.liked {
    color: var(--primary-color);
}

.rating-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    color: var(--gray-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: var(--primary-color);
}

.rating-text {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.video-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.subscribe-btn {
    padding: 8px 20px;
}

.video-description {
    margin-bottom: 20px;
}

.video-description h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.video-description p {
    white-space: pre-line;
}

.video-category {
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--light-color);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Comments Section */
.comments-section {
    margin-bottom: 30px;
}

.comments-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form .form-group {
    display: flex;
    margin-bottom: 15px;
}

.comment-form img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.comment-form textarea {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--gray-color);
    min-height: 80px;
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comments-list {
    border-top: 1px solid var(--light-color);
    padding-top: 20px;
}

.comment-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-color);
}

.comment-author {
    margin-right: 15px;
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.comment-text {
    flex: 1;
}

.comment-text p {
    white-space: pre-line;
}

.no-comments {
    text-align: center;
    padding: 30px 0;
}

.no-comments i {
    font-size: 2rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.login-prompt {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    text-align: center;
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Related Videos */
.related-videos {
    margin-bottom: 50px;
}

.related-videos h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.related-videos-grid .video-card {
    margin-bottom: 0;
}

.related-videos-grid .video-thumbnail {
    padding-bottom: 56.25%;
}

/* Auth Pages */
.auth-container {
    display: flex;
    min-height: calc(100vh - 200px);
    align-items: center;
    margin: 50px 0;
}

.auth-form {
    flex: 1;
    max-width: 500px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.auth-form h2 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.forgot-password {
    text-align: right;
    margin-top: 5px;
}

.forgot-password a {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
}

.auth-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.file-info {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-top: 5px;
}

/* Profile Page */
.profile-container {
    margin: 30px auto;
}

.profile-header {
    display: flex;
    margin-bottom: 30px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.profile-avatar {
    margin-right: 30px;
    text-align: center;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid var(--light-color);
}

.avatar-upload input {
    display: none;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin-bottom: 5px;
}

.profile-email {
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.profile-joined {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.profile-content {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.user-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Upload Page */
.upload-container {
    max-width: 800px;
    margin: 30px auto;
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.upload-container h1 {
    margin-bottom: 30px;
}

.upload-form .form-group {
    margin-bottom: 20px;
}

.upload-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-form input,
.upload-form textarea,
.upload-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.upload-form input:focus,
.upload-form textarea:focus,
.upload-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.upload-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Admin Panel */
.admin-container {
    display: flex;
    min-height: calc(100vh - 100px);
}

.admin-sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: var(--white);
    padding: 20px 0;
}

.admin-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo a {
    display: flex;
    align-items: center;
    color: var(--white);
}

.admin-logo i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary-color);
}

.admin-logo span {
    font-weight: 700;
}

.admin-nav {
    padding: 20px 0;
}

.admin-nav ul {
    display: flex;
    flex-direction: column;
}

.admin-nav li {
    margin-bottom: 5px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    transition: var(--transition);
    color: var(--gray-color);
}

.admin-nav a:hover,
.admin-nav li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background-color: var(--light-color);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 1.8rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 15px;
    padding-right: 35px;
    border-radius: 20px;
    border: 1px solid var(--gray-color);
    width: 250px;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
}

.welcome-message {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--white);
    font-size: 1.2rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-color);
}

.admin-table th {
    background-color: var(--white);
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.action-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--dark-gray);
    margin-right: 5px;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--white);
}

.view-btn:hover {
    background-color: var(--secondary-color);
}

.edit-btn:hover {
    background-color: #3498db;
}

.delete-btn:hover {
    background-color: var(--primary-color);
}

.user-cell {
    display: flex;
    align-items: center;
}

.user-cell img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.text-center {
    text-align: center;
}

.admin-actions {
    margin-bottom: 20px;
}

.admin-form-section {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.admin-form-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.admin-form {
    max-width: 600px;
}

.inline-form {
    display: inline;
}

.categories-list h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--box-shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.modal-body {
    padding: 20px;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-section p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray-color);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-in-down {
    animation: slideInDown 0.5s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.verified-badge {
    color: #1da1f2; /* Twitter-like blue, or use #28a745 for green */
    margin-left: 5px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* For the admin switch */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}