/* Login Page Styles */
body.login-body {
    background: linear-gradient(135deg, #ffffff, #3c0cc0);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.login-header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.login-header-logo {
    max-width: 200px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.login-header-title {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #020202;
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.login-form-title {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}
.textjmuted{
    color: yellow !important;
}

/* Dashboard Layout */
body.dashboard-body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.active {
    left: 0;
}

@media (min-width: 992px) {
    .sidebar {
        left: 0;
    }
    
    .main-content {
        margin-left: 280px;
    }
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.user-info {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

.user-avatar {
    margin-right: 15px;
}

.user-avatar i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.8);
}

.user-details h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.user-role {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-item.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #fff;
}

.nav-item.active .nav-link {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left-color: #fff;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.logout-link:hover {
    background: rgba(220, 53, 69, 0.2);
    border-left-color: #dc3545;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.topbar {
    background: white;
    padding: 15px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3c72;
}

.topbar-actions .btn-link {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
}

.dashboard-content {
    padding: 25px;
}

/* Dashboard Specific Styles */
.welcome-section {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.welcome-section h2 {
    font-weight: 600;
    margin-bottom: 10px;
}

.welcome-icon {
    text-align: center;
}

.welcome-icon i {
    font-size: 4rem;
    opacity: 0.3;
}

.section-title {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 20px;
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.action-card .card-icon {
    text-align: center;
    margin-bottom: 20px;
}

.action-card .card-icon i {
    font-size: 3rem;
    color: #1e3c72;
}

.delete-card .card-icon i {
    color: #dc3545;
}

.view-card .card-icon i {
    color: #0d6efd;
}

.settings-card .card-icon i {
    color: #6c757d;
}

.action-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.action-card p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.stat-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Delete Form Styles */
.delete-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.delete-form-card .card-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 25px;
}

.delete-form-card .card-header h4 {
    margin: 0;
    font-weight: 600;
}

.delete-form-card .card-body {
    padding: 30px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.help-section {
    margin-top: 30px;
}

.help-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    height: 100%;
}

.help-card i {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.help-card h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.help-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Video Player Styles */
.video-file {
    background-color: rgba(13, 110, 253, 0.05);
}

.video-file:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.video-container {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70vh;
    min-height: 70vh;
    position: relative;
}

.video-info {
    background: #ffffff;
    border-top: 1px solid #dee2e6;
}

.video-info h6 {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 15px;
}

#videoPlayer {
    background: #000;
    border-radius: 0;
    width: 100%;
    height: 70vh;
    min-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-xl {
    max-width: 90%;
}

@media (max-width: 768px) {
    .modal-xl {
        max-width: 95%;
        margin: 10px;
    }
    
    .video-container {
        height: 50vh;
        min-height: 50vh;
    }
    
    #videoPlayer {
        height: 50vh !important;
        min-height: 50vh !important;
    }
}

/* Enhanced file table styles */
.table th:last-child,
.table td:last-child {
    width: 120px;
    text-align: center;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 991px) {
    .main-content {
        margin-left: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .table th:last-child,
    .table td:last-child {
        width: 80px;
    }
}

.card {
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: #ffffff;
    color: #333;
    width: 450px;
    padding: 25px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    color: #1e3c72;
}

label {
    font-weight: 500;
    color: #222;
}

.btn-danger {
    width: 100%;
    font-weight: 600;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.btn-primary {
    width: 100%;
    font-weight: 600;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2800da;
    transform: scale(1.05);
}

.btn-secondary {
    width: 100%;
    font-weight: 600;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #d6cccd;
    transform: scale(1.05);
}

.alert {
    border-radius: 10px;
    margin-top: 15px;
}

footer {
    text-align: center;
    color: #ddd;
    margin-top: 20px;
    font-size: 0.9em;
}
.login-card {
    width: 450px;
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-align: center;
}

.login-logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
}

.login-title {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 2rem;
}

.login-card h1 {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 20px;
}

/* View Storage Styles */
.view-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 25px;
    color: #333;
}

.view-card h1 {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 0;
}

.team-selector {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    height: fit-content;
}

.team-selector h5 {
    color: #1e3c72;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.team-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.team-item.active {
    background-color: #1e3c72;
    color: white;
}

.folder-content {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    min-height: 500px;
}

.breadcrumb {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.breadcrumb-item a {
    color: #1e3c72;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2a5298;
    text-decoration: underline;
}

.folder-contents {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.folder-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.folder-row:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.file-row:hover {
    background-color: #f8f9fa;
}

.table th {
    background-color: #1e3c72;
    color: white;
    border: none;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
    border-color: #e9ecef;
}

.folder-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #1e3c72;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .view-card {
        padding: 15px;
    }
    
    .team-selector, .folder-content {
        margin-bottom: 20px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
    }
    
    .d-flex.justify-content-between > div {
        text-align: center;
    }
}