﻿.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.top-bar h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 500;
}

.top-bar-left-group {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: url(../img/menu-ico.svg) 50% 50% no-repeat;
    background-size: 30px auto;
    display: block;
    width: 30px;
    height: 30px;
    border: none;
    cursor: pointer;
    margin-right: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    cursor: pointer;
    padding: 0;
}

.user-info.user-info-list {
    display: block;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #0003E0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 10px;
}

/* Osnovni stil za dropdown */
.user-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown .primary-btn {
    width: 100%;
    padding: 5px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info .arrow {
    position: relative;
    margin: 0 0 0 10px;
    transition: transform 0.3s ease;
    width: 12px;
    height: 6px;
    display: inline-block;
    background: url(../img/chevron-down.svg) 50% 50% no-repeat;
    background-size: 12px auto;
}

.user-info.active .arrow {
    transform: rotate(180deg);
}

/* --- SIDEBAR STYLES --- */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100% - 60px);
    background-color: #0d0e79;
    color: #ECF0F5;
    z-index: 999;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(-250px);
}

.sidebar.active {
    transform: translateX(0);
    /*transition: transform 0.3s ease;*/
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #ECF0F5;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-menu li a:hover {
    background-color: #0003E0;
}

.sidebar-menu li a.active {
    background-color: #ffffff;
    color: #000000;
}

.sidebar-menu .icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-menu .icon svg {
    max-width: 20px;
}

.sidebar-menu .icon path {
    fill: #fff;
}

.sidebar-menu .active .icon path {
    fill: #9b9cc1;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-thumbnail-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-card-body {
    padding: 15px;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.video-meta {
    font-size: 14px;
    color: #777;
    display: flex;
    justify-content: space-between;
}

.inline-form {
    display: inline;
}

.filter-row .form-control {
    min-width: 180px;
    width: auto;
    font-size: 15px;
}

.filter-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.video-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-meta-vertical {
    font-size: 12px;
    color: #777;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-meta-wrapper .views,
.video-meta-wrapper .bookmarks,
.video-meta-wrapper .reports {
    position: relative;
    padding: 0 0 0 20px;
}

.video-meta-wrapper .views::before,
.video-meta-wrapper .bookmarks::before,
.video-meta-wrapper .reports::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 15px;
    height: 100%;
    background: url(../img/eye-ico.svg) 50% 50% no-repeat;
    background-size: 15px auto;
}

.video-meta-wrapper .bookmarks::before {
    background: url(../img/bookmark-ico.svg) 50% 50% no-repeat;
    background-size: 10px auto;
}

.video-meta-wrapper .reports::before {
    background: url(../img/report-ico.svg) 50% 50% no-repeat;
    background-size: 10px auto;
}

/*.video-meta-vertical .category::before {
    background: url(../img/category-ico.svg) 50% 50% no-repeat;
    background-size: 15px auto;
}*/

.video-meta-wrapper .bookmarks {
    margin: 0 5px 0 0;
}

.bulk-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.video-thumbnail-wrapper {
    position: relative;
}

.video-thumbnail-wrapper::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 40px;
    height: 40px;
    display: block;
    background: url(../img/play-ico.svg) 50% 50% no-repeat;
    background-size: 40px auto;
    cursor: pointer;
}
/*.video-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}*/

.header-form-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* FILTER BAR */
.filter-form {
    background: #F9FAFB;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

.filter-group .form-control {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    padding: 0 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .filter-group .form-control:focus {
        border-color: #6366F1;
        box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
    }

    .filter-group .form-control::placeholder {
        color: #9CA3AF;
    }

.sortable-header {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .sortable-header:hover {
        color: #3B82F6;
    }

    .sortable-header.sorted {
        color: #3B82F6;
        font-weight: 600;
    }

.inactive-row {
    background-color: #FEF2F2;
    opacity: 0.8;
}

.user-info .username {
    font-weight: 600;
    color: #1F2937;
}

.user-info .full-name {
    font-size: 0.875rem;
    color: #6B7280;
    display: block;
    width: 100%;
}

.badge-premium {
    background-color: #F59E0B;
    color: white;
}

.badge-free {
    background-color: #6B7280;
    color: white;
}

.badge-company {
    background-color: #8B5CF6;
    color: white;
    margin-left: 5px;
}

.badge-info {
    background-color: #4547d7;
    color: white;
}

.results-summary {
    margin-bottom: 15px;
    padding: 10px 0 0 0;
    font-size: 14px;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.pagination-links {
    display: flex;
    gap: 5px;
}

.pagination-link {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination-link:hover {
    background-color: #F3F4F6;
    color: #1F2937;
}

.pagination-link.current {
    background-color: #4547d7;
    color: white;
    border-color: #4547d7;
}

/* Avatar Styles */
.avatar-initials {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s ease;
}

    .avatar-initials:hover {
        transform: scale(1.05);
    }

.user-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

    .user-avatar:hover {
        transform: scale(1.05);
    }

/* Badge Styles - Add these */
.badge-success, .badge-danger, .badge-premium, .badge-free, .badge-info {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: #10B981;
    color: white;
}

.badge-danger {
    background-color: #EF4444;
    color: white;
}

/* Action Button Styles */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: end;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.delete-btn {
    background-color: #df8989;
    color: #374151;
}

.delete-btn:hover {
    background-color: #EF4444;
}

/* Table Enhancements */
.data-table td {
    padding: 12px 16px;
    vertical-align: middle;
}

.avatar-cell {
    width: 60px;
    text-align: center;
}

.email-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions-cell {
    width: 17%;
}

.select2-search.select2-search--inline .select2-search__field {
    width: 200px !important;
}

.video-card-top {
    padding-bottom: 0;
}

.swal2-close {
   width:30px;
   height:30px;
}

.swal2-html-container video {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 70vh;
}

.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,.15);
    z-index: 9999;
}

.dropdown-item {
    color: #212529 !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000 !important;
}

.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0d0e79;
    color: #f4f1ec;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion__trigger:hover {
    background: #0003E0;
}

/* — Ikonica strelice — */
.accordion__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
    transform: rotate(180deg);
}

/* — Podmeni kontejner — */
.accordion__panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    background: #090a45;
    border-top: none;
}

.accordion__panel.is-open {
    max-height: 400px;
}

/* — Linkovi unutar panela — */
.accordion__link {
    display: block;
    padding: 12px 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #242599;
    transition: background 0.15s;
}

.accordion__link:hover {
    background: #f4f1ec;
}

.video_btns {
    display: flex;
    padding: 0 10px 10px 10px;
}

.sidebar-menu li .dropdown-menu .dropdown-item:hover {
    color: #fff!important;
}