/* Define CSS Variables */
:root {
    --primary-color: #E04B29;
    --background-light: #ffffff;
    --background-dark: #343a40;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-radius: 8px;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #212529;
    margin: 0;
    padding: 20px;
}

.container {
    display: flex;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px 0 0 10px;
    transition: width 0.3s ease;
}

.sidebar h2 {
    margin-bottom: 20px;
    color: #212529;
    font-size: 1.5em;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #212529;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.sidebar ul li a:hover, 
.sidebar ul li a.active {
    background-color: #fef0ed;
    color: #E04B29;
}

.sidebar ul li a i {
    margin-right: 10px;
    font-size: 20px;
    min-width: 25px;
    text-align: center;
    color: #E04B29;
}

.back-link {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #212529;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #E04B29;
}

.back-link i {
    margin-right: 10px;
    font-size: 20px;
    color: #E04B29;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .menu-text,
.sidebar.collapsed h2,
.sidebar.collapsed .back-link span {
    display: none;
}

.sidebar.collapsed ul li a {
    justify-content: center;
}

.sidebar.collapsed ul li a i {
    margin-right: 0;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #E04B29;
    color: white;
}

/* Button Styles */
button {
    padding: 10px 15px;
    background-color: #E04B29;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #c73f22;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Specific button styles for actions */
.edit {
    background-color: #28a745;
}

.delete {
    background-color: #dc3545;
}

.edit:hover {
    background-color: #218838;
}

.delete:hover {
    background-color: #c82333;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Ensure it's on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for the overlay */
    justify-content: center;
    align-items: center; /* Center vertically */
}

.modal-content {
    position: relative;
    background-color: white; /* Non-transparent white background */
    padding: 20px;
    width: 350px; /* Adjust width for better spacing */
    max-width: 90%; /* Ensure responsiveness on smaller screens */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow for emphasis */
    border-radius: 10px;
}

/* Container */
.container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Main Content */
.main-content {
    width: 75%;
    padding: 20px;
    background-color: #fff;
    border-left: 1px solid #dee2e6;
}

/* Input Styles */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

/* Chat Styles */
.chat-container {
    width: 100%;
    height: 300px; /* Increased height for better usability */
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.3s;
}

.subheader {
    font-size: 14px;
    color: black;
    margin-bottom: 10px;
    padding: 0 10px;
}

#minimizeChat {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
}

.center-text {
    margin: 0;
    flex-grow: 1;
    font-size: 14px;
    color: #495057;
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
    .main-content {
        width: 100%;
    }
}

.center-text {
    text-align: center;
}

/* Sidebar for video and course selection */
.sidebar h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.video-list {
    list-style: none;
    padding: 0;
}

.video-list li {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 44px; /* Add minimum height */
}

.video-item:hover {
    background-color: #e9ecef;
}

.video-title {
    font-size: 16px;
    color: #333;
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px; /* Add minimum width */
}

.status i {
    font-size: 16px; /* Consistent icon size */
    line-height: 1; /* Add line height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-list li.open .status i {
    color: #28a745;
}

.video-list li.closed .status i {
    color: #dc3545;
}

.video-list li.selected .video-item {
    background-color: #007bff;
    color: #fff;
}

.video-list li.selected .video-title {
    color: #fff;
}

/* Dropdown content */
.dropdown-content {
    display: none;
    padding: 10px 15px;
}

.dropdown-content.show {
    display: block;
    max-height: 1000px;
    border: none;
    outline: none;
}

.dropdown-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    min-height: 36px; /* Add minimum height */
}

.dropdown-content a:hover {
    color: #0056b3;
}

/* Login section styles */
.login-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.login-section p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #6c757d;
}

.login-button {
    padding: 8px 16px;
    background-color: #d58f7f;
    border: none;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #c73f22;
}

/* Main content area (video and chat stacked) */
.video-container {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.video-container img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

/* Chat Styles */
.chat-container {
    width: 100%;
    height: 300px; /* Increased height for better usability */
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.3s;
}

.subheader {
    font-size: 14px;
    color: black;
    margin-bottom: 10px;
    padding: 0 10px;
}

.chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: var(--background-light);
    text-align: left;
    font-size: 14px;
}

.chat-box .message.ai {
    color: #212529;
    margin-bottom: 15px;
    line-height: 1.5;
}

.chat-box .message.ai pre {
    background-color: #f4f4f4;
    border-radius: 5px;
    padding: 10px;
    overflow-x: auto;
}

.chat-box .message.ai code {
    font-family: 'Courier New', Courier, monospace;
}

.chat-box .message.ai p {
    margin-bottom: 10px;
}

.chat-box .message.ai ul, .chat-box .message.ai ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.chat-box .message.error {
    color: #d9534f;
}

.chat-box .message.user {
    color: #E04B29;
    margin-bottom: 10px;
}

/* Input Styles */
.input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

#messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    margin-right: 10px;
}

button {
    padding: 10px 15px;
    background-color: #E04B29;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button.new-chat {
    background-color: #d58f7f;
    margin-left: 10px;
}

button.new-chat:hover {
    background-color: #c82333;
}

/* Modal Styles - Centered and Hidden by Default */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Ensure it's on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Darken background for focus */
    justify-content: center;
    align-items: center; /* Center vertically */
}

/* Modal Content */
.modal-content {
    padding: 20px;
    width: 350px; /* Adjust width for better spacing */
    max-width: 90%; /* Ensure responsiveness on smaller screens */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow for emphasis */
    border-radius: 10px;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #212529;
}

.modal-content label {
    font-size: 14px;
    color: #212529;
    margin-bottom: 5px; /* Reduced margin for labels */
    display: block;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"] { /* Added input[type="email"] */
    width: 100%;
    padding: 8px; /* Consistent padding */
    margin: 5px 0; /* Consistent margin */
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-sizing: border-box; /* Ensure the width includes padding */
}

.modal-content .close {
    color: #333;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px; /* Adjust size as needed */
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close:hover {
    color: #E04B29; /* Change color on hover */
}

/* Style the login button (always visible) */
.modal-content button {
    width: 100%;
    padding: 10px; /* Adjust button padding if needed */
    background-color: #E04B29;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content button:hover {
    background-color: #c73f22; /* A darker hover color */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Add a subtle shadow on hover */
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) {
    .modal-content {
        width: 90%; /* Allow modal to shrink to fit smaller screens */
    }

    .sidebar {
        width: 100%; /* Sidebar takes full width on small screens */
        box-shadow: none;
    }

    .main-content {
        width: 100%; /* Main content takes full width on small screens */
    }
}
/* Add these styles to your existing CSS */
.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.video-title {
    flex-grow: 1;
}

.dropdown-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.video-list li.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    padding-left: 20px;
    list-style: none;
}

.dropdown-content.show {
    display: block;
    max-height: 1000px;
    border: none;
    outline: none;
}

/* Update these existing styles */
.video-list li {
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.video-list li:hover {
    background-color: #fef0ed;
}

.video-list li.selected {
    background-color: #fef0ed;
    border: 2px solid #E04B29;
}

/* Add these styles to your existing CSS */
.dropdown-content li {
    margin-bottom: 5px;
}

.dropdown-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-content a:hover {
    color: #E04B29;
    background-color: #fef0ed;
}

.sub-asset-title {
    flex-grow: 1;
    margin-left: 20px; /* Adjust this value as needed for alignment */
}

.dropdown-content .status {
    margin-left: 10px;
}

.dropdown-content .status i {
    font-size: 14px;
}

.dropdown-content li.open .status i {
    color: #28a745;
}

.dropdown-content li.closed .status i {
    color: #dc3545;
}

.user-management {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-management h3 {
    margin-bottom: 15px;
    color: #212529;
    font-size: 1.2em;
    font-weight: bold;
}

.user-management table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-management th, .user-management td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 0.9em;
}

.user-management th {
    background-color: #E04B29;
    color: white;
    font-weight: bold;
}

.user-management td input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.user-management td select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.user-management button.edit {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-management button.edit:hover {
    background-color: #218838;
}

.user-management button.delete {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-management button.delete:hover {
    background-color: #c82333;
}

#addUserForm {
    display: flex;
    gap: 10px;
    align-items: center;
}

#addUserForm input, #addUserForm button {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#addUserForm button {
    background-color: #E04B29;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#addUserForm button:hover {
    background-color: #c73f22;
}

.sidebar {
    width: 25%;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px 0 0 10px;
}

.sidebar h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #0056b3;
}

.admin-button {
    margin-top: 10px;
    /* Add any other styling to match your site's design */
}

.send-button, .new-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #d58f7f;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-button:hover, .new-chat:hover {
    background-color: #c73f22; /* Darker shade on hover */
}

.chat-container.minimized {
    height: 50px; /* Adjust height as needed */
    overflow: hidden; /* Hide overflow when minimized */
    transition: height 0.3s ease; /* Smooth transition */
}

/* Add these styles to your existing CSS */
.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.content-list li:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.content-list li.selected {
    background-color: rgba(0, 123, 255, 0.1);
    border: none;
}

.content-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.content-item:hover {
    background-color: #e9ecef;
}

.content-title {
    font-size: 16px;
    color: #333;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.content-list li.open .dropdown-icon {
    transform: rotate(90deg);
}

.dropdown-content {
    display: none;
    padding: 10px 15px 10px 30px;
    background-color: #fff;
    transition: max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
    max-height: 1000px;
    border: none;
    outline: none;
}

.dropdown-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-content a:hover {
    color: #0056b3;
}

.status i {
    font-size: 18px;
    margin-left: 10px;
}

.content-menu {
    margin-top: 20px;
}

.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.content-item:hover {
    background-color: #e9ecef;
}

.content-title {
    font-size: 16px;
    color: #333;
}

.dropdown-icon {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.content-list li.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    padding: 10px 15px 10px 30px;
    background-color: #fff;
    transition: max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
    max-height: 1000px;
    border: none;
    outline: none;
}

.dropdown-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.dropdown-content a:hover {
    background-color: #f1f3f5;
}

.dropdown-content a.selected {
    font-weight: bold;
    color: #007bff;
}

.status i {
    font-size: 14px;
    margin-left: 10px;
}

.sub-asset-title {
    flex-grow: 1;
}

/* Add this to your styles.css */
.narrow-modal {
    max-width: 300px; /* Set the desired width */
    width: 100%; /* Ensure it takes full width up to max-width */
    margin: auto; /* Center the modal */
}

.pricing-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.pricing-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    background-color: #ffffff;
    border: 2px solid #E04B29;
}

.pricing-card h2 {
    color: #E04B29;
}

.pricing-card .price {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.pricing-card ul {
    list-style-type: none;
    padding: 0;
}

.pricing-card li {
    margin: 10px 0;
}

.pricing-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.pricing-link:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#registrationForm input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

footer {
    background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-content ul li {
    display: inline;
    margin: 0 15px;
}

.footer-content ul li a {
    text-decoration: none;
    color: #007bff;
}

.footer-content ul li a:hover {
    text-decoration: underline;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .sidebar {
    background-color: #2c2c2c;
}

body.dark-mode .main-content {
    background-color: #1a1a1a;
}

body.dark-mode .content-item {
    background-color: #2c2c2c;
}

body.dark-mode .content-item:hover {
    background-color: #3c3c3c;
}

body.dark-mode .dropdown-content {
    background-color: #2c2c2c;
}

body.dark-mode .dropdown-content a {
    color: #f0f0f0;
}

body.dark-mode .dropdown-content a:hover {
    background-color: #3c3c3c;
}

body.dark-mode .modal-content {
    background-color: #2c2c2c;
    color: #f0f0f0;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"] {
    background-color: #3c3c3c;
    color: #f0f0f0;
    border-color: #4c4c4c;
}

body.dark-mode button {
    background-color: #4c4c4c;
    color: #f0f0f0;
}

body.dark-mode button:hover {
    background-color: #5c5c5c;
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dark-mode-toggle:hover {
    background-color: #0056b3;
}

.sidebar.collapsed {
    width: 60px; /* Adjust width when collapsed */
}

.sidebar.collapsed h2,
.sidebar.collapsed ul {
    display: none; /* Hide title and menu items when collapsed */
}

.sidebar ul li a {
    display: flex;
    align-items: center;
}

.sidebar ul li a i {
    margin-right: 10px; /* Space between icon and text */
}

th {
    color: black; /* Set table header text color to black */
}

.admin-content th {
    color: black; /* Set table header text color to black for admin tables */
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px; /* Max width for the modal */
    border-radius: 5px; /* Rounded corners */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.access-control-container {
    display: flex;
    gap: 20px;
}

.users-groups-section, .assets-section {
    flex: 1;
}

.selectable-list, .asset-list {
    list-style-type: none;
    padding: 0;
}

.selectable-list li, .asset-list li {
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f0f0f0;
    cursor: pointer;
}

.selectable-list li.selected {
    background-color: #007bff;
    color: white;
}

.asset-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-icon {
    cursor: pointer;
    color: #28a745;
}

.add-icon:hover {
    color: #218838;
}

.has-access {
    background-color: #c3e6cb; /* Slightly darker green for better visibility */
    border: 2px solid #155724; /* Dark green border for contrast */
    color: #155724; /* Dark green text color */
    font-weight: bold; /* Make text bold */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    transition: background-color 0.3s ease, border 0.3s ease; /* Smooth transition */
}

/* Add this to your styles.css */
#contentTable {
    width: 100%; /* Make the table take full width */
    table-layout: fixed; /* Use fixed layout for better control over column widths */
}

#contentTable th, #contentTable td {
    padding: 10px; /* Add some padding for better spacing */
    text-align: left; /* Align text to the left */
}

#contentTable th:nth-child(3) {
    width: 5%; /* Ensure the visible column is narrow */
}

#contentTable th:nth-child(4) {
    width: 15%; /* Ensure the actions column has more space */
}

.status-icon {
    font-size: 1.5em; /* Increase icon size */
    cursor: default; /* Change cursor to default for better UX */
}

/* Container for list items */
.content-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    position: relative;
    min-height: 40px;
    box-sizing: border-box;
}

/* Title styling */
.sub-asset-title {
    flex: 1;
    padding-right: 30px; /* Fixed space for the icon */
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0; /* Allows flex item to shrink below content size */
}

/* Status icon container */
.status {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon styling */
.status i {
    font-size: 16px;
    display: block;
    line-height: 1;
}

/* Content item styling (for parent items) */
.content-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    position: relative;
    min-height: 40px;
    box-sizing: border-box;
}

/* Content title styling */
.content-title {
    flex: 1;
    padding-right: 30px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0; /* Allows flex item to shrink below content size */
}

/* Content Title Styles */
h1, h2, h3, h4, h5, h6 {
    color: #212529;
}

/* Content List Styles */
.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.content-list li:hover {
    background-color: #fef0ed;
}

.content-list li.selected {
    background-color: #fef0ed;
    border: none;
}

.content-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.content-item:hover {
    background-color: #fef0ed;
}

.content-title {
    font-size: 16px;
    color: #212529;
}

/* Content Status Icons */
.status i {
    font-size: 18px;
    color: #E04B29;
}

.content-list li.open .status i {
    color: #28a745;
}

.content-list li.closed .status i {
    color: #dc3545;
}

.content-list li.selected .content-item {
    background-color: #fef0ed;
    color: #212529;
}

.content-list li.selected .content-title {
    color: #212529;
}

/* Dropdown Content Styles */
.dropdown-content {
    display: none;
    padding: 10px 15px;
    background-color: #ffffff;
}

.dropdown-content.show {
    display: block;
    max-height: 1000px;
    border: none;
    outline: none;
}

.dropdown-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    color: #E04B29;
    background-color: #fef0ed;
}

.sub-asset-title {
    color: #212529;
}

.file-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.file-icon {
    margin-right: 10px;
    font-size: 20px;
}

.file-icon.pdf { color: #dc3545; }
.file-icon.pptx { color: #fd7e14; }
.file-icon.doc, .file-icon.docx { color: #0d6efd; }
.file-icon.xls, .file-icon.xlsx { color: #198754; }

.file-input-group {
    margin-bottom: 10px;
    width: 100%;
}

.file-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.file-input-row input {
    flex: 1;
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.file-input-row .btn-danger {
    padding: 6px 12px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#additionalFilesContainer {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#additionalFilesContainer {
    width: 100%;
    margin-bottom: 15px;
}

.file-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.file-url-input,
.file-name-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;
}

.delete-file-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

.delete-file-btn:hover {
    background-color: #c82333;
}

.add-file-btn {
    width: 100%;
    padding: 10px;
    background-color: #E04B29;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-file-btn:hover {
    background-color: #c73e1d;
}

.files-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 15px 0;
    background-color: #f8f9fa;
}

#additionalFilesContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.file-entry {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.file-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.file-url-input,
.file-name-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.remove-file {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-file-button {
    width: 100%;
    padding: 12px;
    background-color: #E04B29;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.additional-files {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    position: relative;
}

.file-item:hover {
    background-color: #f8f9fa;
}

.file-icon {
    margin-right: 10px;
    font-size: 1.2em;
    color: #6c757d;
}

.file-item span {
    flex-grow: 1;
}

.download-icon {
    margin-left: 10px;
    color: #E04B29;
    cursor: pointer;
    font-size: 1.2em;
    transition: color 0.2s;
}

.download-icon:hover {
    color: #c73f22;
}

.additional-files {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.additional-files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.file-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    padding: 10px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    position: relative;
}

.file-icon-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.file-icon-item .file-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.file-icon-item .file-name {
    font-size: 12px;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.file-icon-item .download-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 14px;
    color: #E04B29;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-icon-item:hover .download-icon {
    opacity: 1;
}

/* File type specific colors */
.file-icon-item .file-icon.bi-file-pdf { color: #dc3545; }
.file-icon-item .file-icon.bi-file-ppt { color: #fd7e14; }
.file-icon-item .file-icon.bi-file-word { color: #0d6efd; }
.file-icon-item .file-icon.bi-file-excel { color: #198754; }
.file-icon-item .file-icon.bi-file-image { color: #20c997; }
.file-icon-item .file-icon.bi-file-play { color: #6610f2; }

/* Mobile-friendly container adjustments */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        flex-direction: column;
        margin: 0;
        box-shadow: none;
    }

    .main-content {
        width: 100%;
        padding: 15px;
        border-left: none;
    }

    /* Mobile sidebar styling */
    .sidebar {
        width: 100%;
        padding: 10px;
    }

    .back-link {
        margin: 10px 0;
        padding: 8px;
    }

    /* Mobile-friendly form elements */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
        font-size: 16px; /* Better for mobile touch targets */
    }

    /* Mobile-friendly pricing cards */
    .pricing-container {
        flex-direction: column;
        padding: 10px;
    }

    .pricing-card {
        width: 100%;
        margin: 10px 0;
    }

    /* Mobile-friendly typography */
    h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 20px;
        margin: 15px 0;
    }

    p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Mobile-friendly buttons */
    .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        margin: 10px 0;
    }

    /* Mobile-friendly lists */
    ul {
        padding-left: 20px;
    }

    li {
        margin-bottom: 10px;
    }

    /* Footer adjustments for mobile */
    footer {
        padding: 15px;
    }

    .footer-content ul li {
        display: block;
        margin: 10px 0;
    }
}

/* Additional mobile optimizations */
@media screen and (max-width: 480px) {
    .container {
        padding: 0;
    }

    .main-content {
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }

    /* Ensure touch targets are at least 44px */
    button,
    .back-link,
    input[type="submit"] {
        min-height: 44px;
    }
}
