/* General Styles */
body {
    margin: 0;
    background-color: #f6f7fb;
    color: #222222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Form Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    font-weight: 500;
}

/* Image Text Fields Styles */
.image-text-fields {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.image-text-fields h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.image-text-fields .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.image-text-fields .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.image-text-fields .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.image-text-fields textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Image Text Content Display Styles */
.image-text-content {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.image-headline {
    color: #212529;
    font-weight: 600;
    margin-bottom: 4px;
}

.image-body-copy {
    color: #6c757d;
    line-height: 1.4;
}

.image-cta-copy {
    color: #0d6efd;
    font-weight: 600;
    margin-top: 4px;
}

/* Responsive adjustments for image text content */
@media (max-width: 768px) {
    .image-text-content {
        padding: 8px;
        font-size: 0.875rem;
    }
}



/* Full View Modal Styles */
#fullViewContent {
    max-height: 80vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullViewContent img,
#fullViewContent video {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ensure modal body doesn't overflow */
.modal-body {
    overflow: hidden;
}

.char-counter {
    font-size: 0.875em;
    color: #6c757d;
    margin-top: 0.25rem;
    font-weight: 500;
}

.char-counter.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

.char-counter.text-warning {
    color: #ffc107 !important;
    font-weight: 600;
}

.form-field-group {
    position: relative;
}

.form-field-group .invalid-feedback {
    position: absolute;
    bottom: -20px;
    left: 0;
    z-index: 10;
}

/* Login Page */
.login-container {
    display: flex;
    height: 100vh;
}
.login-left {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 40px 0;
}
.login-logos {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}
.login-logos img {
    max-width: 110px;
}
.vertical-logos-divider{
    width: 1px;
    height: 70px;
    background-color: #e0e0e0;
}
.login-form {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-form > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}
.login-form label {
    margin-bottom: 7px;
}
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #222;
    transition: box-shadow 0.2s, border 0.2s;
    outline: none;
    box-shadow: none;
}
.login-form input[type="email"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: #b0b6c1;
    opacity: 1;
}
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #b0b6c1;
    box-shadow: 0 2px 8px rgba(26,74,185,0.07);
    background: #fff;
}
.login-form button {
    padding: 12px;
    background: #1a4ab9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.login-form button:hover {
    background: #163a8a;
}
.login-right {
    width: 40%;
    background: url('../images/bg.jpg') center center/cover no-repeat;
    position: relative;
    min-height: 100vh;
}
.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,106,57,0.8), rgba(26,74,185,0.8));
}
.login-right-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    z-index: 2;
}
.login-right-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.login-right-content p {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .login-container { flex-direction: column; }
    .login-left, .login-right { width: 100%; min-height: 50vh; }
}

/* Main Layout */
.main-container {
    display: flex;
    background-color: #f6f7fb;
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

.container-fluid {
    padding: 0;
    height: 100%;
}

/* Sidebar Styles */
.sidebar-wrapper {
    position: sticky;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    min-width: 300px;
    max-width: 300px;
    background: white;
    transition: all 0.3s;
    border-right: 1px solid #e6e9ef;
    z-index: 999;
}

.sidebar-wrapper.collapsed {
    min-width: 48px;
    max-width: 48px;
    overflow: visible;
}

.sidebar {
    width: auto;
    min-width: 200px;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    height: 100%;
    padding: 1rem;
}

/* Collapse Button */
.sidebar-collapse-btn {
    position: absolute;
    right: -15px;
    top: 40px;
    width: 30px;
    height: 30px;
    background: rgb(240 240 241);
    border: 1px solid #e6e9ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333333;
    z-index: 100;
    transition: transform 0.3s;
    overflow: visible;
}

.sidebar-wrapper.collapsed .sidebar-collapse-btn {
    transform: rotate(180deg);
    right: -12px;
}

/* Hide only the sidebar content when collapsed */
.sidebar-wrapper.collapsed .sidebar {
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
}

/* Navigation Menu */
.sidebar .nav-item {
    margin-bottom: 2px;
    width: 100%;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(103, 104, 121, 0.1);
    color: #323338;
}

.sidebar .nav-link.active {
    background-color: rgba(103, 104, 121, 0.1);
    color: #1a4ab9;
}

.sidebar .nav-link svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.sidebar .nav-text {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Sections */
.sidebar-section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: 14px;
    font-weight: 500;
    color: #676879;
}

.section-actions {
    display: flex;
    gap: 4px;
}

.icon-button {
    background-color: rgba(103, 104, 121, 0.1);
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background-color: rgba(103, 104, 121, 0.3);
}

/* Workspace List */
.workspace-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.workspace-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding: 8px;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.workspace-item:hover {
    background-color: rgba(103, 104, 121, 0.1);
}

.workspace-item.active {
    background-color: rgba(103, 104, 121, 0.1);
}

.workspace-item.active > .workspace-row {
    border-radius: 6px;
    font-weight: 500;
}

.workspace-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.workspace-icon {
    width: 20px;
    height: 20px;
    font-size: 13px;
    background-color: #1a4ab9;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.workspace-name {
    color: #333333;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.kebab-menu-btn {
    background: transparent;
    border: none;
    padding: 0 2px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    height: 24px;
    width: 24px;
}

/* Main Content Area */
.main-content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100vh;
    padding: 32px 24px;
    background: #f7f8fa;
    box-sizing: border-box;
    position: relative;
    transition: margin-left .3s;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-content {
    flex-grow: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    color: #323338;
}

.page-subtitle {
    color: #676879;
    font-size: 14px;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-sort {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #c3c6d4;
    border-radius: 4px;
    background: white;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header-btn:hover {
    background-color: #f5f6f8;
}

.filter-label, .sort-label {
    color: #0073ea;
    font-weight: 500;
}

.btn-new-project {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #0073ea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-new-project:hover {
    background-color: #0060c7;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.project-card {
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-2px);
}

.project-top{
    padding: 10px 20px;
}

.project-card-gradient {
    position: relative;
    background: linear-gradient(135deg, #FF6A39, #1a4ab9);
    padding: 20px;
    height: 200px;
    border-radius: 8px;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.project-title {
    color: white;
    font-size: 20px;
    margin: 0;
    font-weight: 500;
}

.project-menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
}

.project-menu-btn svg{
    width: 32px!important;
    height: 32px!important;
}

.project-menu-btn:hover {
    color: #fff!important;
    opacity: 1;
}

.project-body p{
    font-size: 14px;
    color: #ffffff;
}

.project-info {
    position: absolute;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    font-weight: 500;
}

.project-size {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

/* New Project Card */
.new-project {
    border: 2px dashed #c3c6d4;
    background: transparent;
    box-shadow: none;
}

.new-project-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #676879;
    gap: 8px;
}

.plus-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(103, 104, 121, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-project:hover {
    border-color: #0073ea;
    color: #0073ea;
}

.new-project:hover .plus-icon {
    background: #e5f0ff;
    color: #0073ea;
}

/* Table Styles */
.dashboard-table-view {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    padding: 16px;
    text-align: left;
    color: #676879;
    font-weight: 500;
    border-bottom: 1px solid #e6e9ef;
}

.dashboard-table td {
    padding: 16px;
    border-bottom: 1px solid #e6e9ef;
    color: #323338;
}

/* Status and Priority Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-in-progress {
    background-color: #fdab3d1f;
    color: #fdab3d;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.priority-high {
    background-color: #e2445c1f;
    color: #e2445c;
}

/* Dashboard Buttons */
.dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-btn-primary {
    background-color: #0073ea;
    color: white;
    border: none;
}

.dashboard-btn-primary:hover {
    background-color: #0060c7;
}

.dashboard-btn-light {
    background-color: white;
    color: #323338;
    border: 1px solid #c3c6d4;
}

.dashboard-btn-light:hover {
    background-color: #f5f6f8;
}

.dashboard-btn-icon {
    padding: 4px 8px;
    background: none;
    border: none;
    color: #676879;
}

.dashboard-btn-icon:hover {
    background-color: #f5f6f8;
    border-radius: 4px;
}

/* Dashboard Avatar */
.dashboard-avatar {
    width: 28px;
    height: 28px;
    background-color: #6b69d6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
}

/* Dashboard Checkbox */
.dashboard-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-checkbox-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* Navbar styles */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    padding: 0 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.vertical-divider {
    width: 1px;
    height: 40px;
    background-color: #e0e0e0;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.header-icon-item {
    width: 33px;
    height: 33px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    background-color: rgba(103, 104, 121, 0.1);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.header-icon-item:hover {
    background-color: rgba(103, 104, 121, 0.3);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #0073ea;
    color: white;
    font-size: 11px;
    font-weight: 500;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Invite Button */
.btn-dark {
    background-color: #333;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-dark:hover {
    background-color: #444;
}

.btn-dark i {
    font-size: 12px;
}

/* Profile section spacing */
.dropdown.ms-3 {
    margin-left: 12px !important;
}

/* Profile styles */
.dropdown {
    position: relative;
}

.user-profile-circle {
    width: 32px;
    height: 32px;
    background-color: #FF6A39;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
}

.user-profile-circle:hover,
.user-profile-circle:focus,
.user-profile-circle:active {
    background-color: #e64444;
    color: white;
}

.user-profile-circle::after {
    display: none !important;
}

.profile-initial {
    font-size: 14px;
}

/* Profile Dropdown Styles */
.profile-dropdown {
    width: 280px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 8px !important;
    right: 0 !important;
    left: auto !important;
    position: absolute;
    z-index: 1000;
    background: white;
    transform-origin: top right;
}

.profile-dropdown-header {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-dropdown-header .d-flex {
    margin-bottom: 2px !important;
}

.profile-info {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.profile-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.profile-email {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 250px;
}

.settings-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.settings-link:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.profile-dropdown-section {
    padding: 16px;
}

.section-title {
    color: #666;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.team-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-link:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
}

.team-icon {
    min-width: 24px;
    height: 24px;
    background-color: #ff4b4b;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 8px;
}

.profile-dropdown-footer {
    padding: 10px;
}

.sign-out-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sign-out-link:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.change-password-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    margin-bottom: 4px;
}

.change-password-link:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
}

/* Password toggle button styles */
.input-group {
    position: relative;
}

.input-group .btn-outline-secondary {
    border-left: 0;
    border-color: #ced4da;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0;
}

.input-group .btn-outline-secondary:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #495057;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.input-group .form-control {
    height: 38px;
    border-right: 0;
}

.input-group .form-control:focus {
    border-right: 0;
    box-shadow: none;
    z-index: 1;
}

.input-group .form-control:focus + .btn-outline-secondary {
    border-color: #86b7fe;
    z-index: 2;
}

.input-group .btn-outline-secondary i {
    font-size: 14px;
    line-height: 1;
}

/* Dropdown divider */
.dropdown-divider {
    margin: 0;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .btn-dark span {
        display: none;
    }
    
    .btn-dark {
        padding: 6px 8px;
    }
    
    .header-icon-item {
        width: 28px;
        height: 28px;
        margin: 0 1px;
    }
    
    .header-icon-item i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header-icons > div:nth-child(3),
    .header-icons > div:nth-child(6) {
        display: none;
    }
    
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 20px;
    }
    
    .campaign-item:hover {
        transform: none;
    }
    
    .channel-card:hover {
        transform: none;
    }
    
    .awaiting-text {
        display: none;
    }
    
    .header-icon-item {
        padding: 6px;
    }
    
    .vertical-divider {
        height: 30px;
    }
    
    .user-profile-circle {
        width: 28px;
        height: 28px;
    }
    
    .profile-initial {
        font-size: 12px;
    }
    
    .profile-dropdown {
        width: 280px;
    }
    
    .profile-email {
        max-width: 160px;
    }
    
    .profile-dropdown-header,
    .profile-dropdown-section,
    .profile-dropdown-footer {
        padding: 10px;
    }
}

/* Main navigation section */
.main-nav {
    padding: 4px 0;
    margin-bottom: 16px;
}

.main-nav .nav-item:first-child {
    margin-top: 4px;
}

.secondary-nav{
    position: absolute;
    bottom: 0;
    margin: auto;
}

.nav-divider {
    display: block;
    height: 1px;
    background-color: #e0e0e0;
    border: none;
}

.kebab-menu-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.kebab-menu-btn:hover {
    color: #333;
}

.kebab-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 28px;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 4px;
    z-index: 9999;
    flex-direction: column;
    padding: 8px 0;
    word-break: break-word;
}

.dropdown-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 18px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.workspace-item.has-children {
    flex-direction: column;
    align-items: stretch;
}

.workspace-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
}

.expand-icon {
    width: 20px;
    height: 20px;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    color: #888;
    transition: transform 0.2s;
}

.workspace-item.expanded .expand-icon {
    transform: rotate(90deg);
}

.channel-list {
    display: none;
    flex-direction: column;
    margin: 10px 0;
    gap: 2px;
}

.workspace-item.expanded .channel-list {
    display: flex;
}

.channel-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 4px 4px;
    font-size: 13px;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.channel-item:last-child {
    margin-bottom: 0;
}

.channel-item.active .channel-link {
    color: #1a4ab9;
    font-weight: 500;
    text-decoration: underline;
}

.channel-item.active .channel-icon {
    background-color: #1a4ab9;
}

.channel-link {
    display: flex;
    align-items: center;
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 4px 0;
    border-radius: 4px;
    transition: background-color 0.2s;
    gap: 8px;
}

.channel-icon {
    width: 20px;
    height: 20px;
    background-color: #1a4ab9;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
}

.channel-name {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    flex: 1 1 auto;
    cursor: pointer;
    z-index: 1;
}

.workspace-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.workspace-name {
    flex: 1 1 auto; /* Take up remaining space */
    min-width: 0;
}

.channel-kebab-btn {
    background: transparent;
    border: none;
    padding: 0 2px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    height: 24px;
    width: 24px;
}

.channel-kebab-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.channel-kebab-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 28px;
    min-width: 140px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 6px;
    z-index: 9999;
    flex-direction: column;
    padding: 6px 0;
    word-break: break-word;
}

.channel-kebab-dropdown .dropdown-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0;
}

.channel-kebab-dropdown .dropdown-item:hover {
    background: #f5f5f5;
}

.channel-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.channel-table-container {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e0e0e0;
}

.channel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.channel-table th, .channel-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.channel-table th {
    background: #f7f8fa;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: #e0e7ef;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.add-task-link {
    color: #1a4ab9;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.add-task-link:hover {
    text-decoration: underline;
}

.channel-table-group {
    margin-top: 32px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0 0 24px 0;
}

.table-group-header {
    display: flex;
    align-items: center;
    padding: 18px 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #666;
    gap: 16px;
}

.group-title {
    font-size: 20px;
    font-weight: 600;
}

.group-count {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    margin-left: 8px;
}

.channel-table.monday-style {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.channel-table.monday-style thead{
    text-align: center;
}

.channel-table.monday-style thead th:nth-child(1){
    width: 60%;
}

.channel-table.monday-style thead th:nth-child(2){
    width: 18%;
}

.channel-table.monday-style thead th:nth-child(3){
    width: 18%;
}

.channel-table.monday-style thead th:nth-child(4){
    width: 4%;
}

.channel-table.monday-style th, .channel-table.monday-style td {
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    vertical-align: middle;
}

.channel-table.monday-style th {
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    color: #222;
}

.channel-table.monday-style td{
    padding: 0px 16px;
}

.channel-table.monday-style tbody tr:last-child .add-task-link{
    line-height: 45px;
}

.task-cell {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    padding: 0;
}

/* The span (not editing) */
.editable-task {
    width: 100%;
    display: block;
    cursor: pointer;
    font-size: 16px;
    color: #222;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 44px;
}

/* The input (editing) */
.editable-input {
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-family: inherit;
    color: #222;
    background: #fff;
    border: 1.5px solid #1a4ab9;
    border-radius: 6px;
    padding: 0 8px;
    box-sizing: border-box;
    outline: none;
    line-height: 44px;
    margin: 0;
    display: block;
    transition: border 0.2s;
}

.editable-input:focus {
    border-color: #0056d6;
    box-shadow: 0 0 0 2px #e8f0fe;
}

/* Hide the default checkbox */
.approval-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #cfd8dc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    vertical-align: middle;
    margin: 0;
    box-shadow: 0 1px 2px rgba(60,60,60,0.03);
}

/* Checked state */
.approval-checkbox:checked {
    background: #1a4ab9;
    border-color: #1a4ab9;
}

/* Custom checkmark */
.approval-checkbox:checked::after {
    content: '';
    display: block;
    position: absolute;
    left: 4px;
    top: 0;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    pointer-events: none;
}

/* Add vertical line after Task and Version columns */
.channel-table.monday-style th:not(:last-child),
.channel-table.monday-style td:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

/* Optional: Remove double border at table edge */
.channel-table.monday-style th,
.channel-table.monday-style td {
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    vertical-align: middle;
}

.comment-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-left: 16px;
}

.comment-divider {
    display: flex;
    height: 100%;
  }
  
  .comment-divider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    background: #e0e0e0;
  }

.task-comments {
    cursor: pointer;
    padding-left: 12px;
}

.task-comments svg {
    color: #666666;
}

.comment-count {
    position: absolute;
    bottom: 7px;
    right: 7px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
    color: rgb(255, 255, 255);
    display: inline-block;
    border-radius: 50%;
    background: rgb(26, 74, 185);
}

.group-row {
    margin-top: 30px;
}

.group-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 16px;
    font-size: 20px;
    font-weight: 600;
    color: #222;
    gap: 16px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    user-select: none;
}

.group-header-left{
    display: flex;
    align-items: center;
    gap: 16px;
}

.group-toggle-icon {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.group-row.collapsed .group-toggle-icon {
    transform: rotate(-90deg);
}

.group-table-wrapper {
    transition: max-height 0.3s, opacity 0.3s;
    overflow: hidden;
}

.group-row.collapsed .group-table-wrapper {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.task-name {
    width: 100%;
    display: block;
    overflow: visible;
    text-overflow: unset;
    direction: ltr;
    text-align: left;
    cursor: text;
    font-size: 15px;
    color: #222;
    background: transparent;
    padding: 5px 8px;
    height: auto;
    outline: none;
    border: 1px solid #1a4ab900;
    border-radius: 2px;
    transition: box-shadow 0.2s, border 0.2s;
    position: relative;
    margin: 5px 0;
}

.task-name:hover{
    cursor: text;
    border: 1px solid #e0e0e0;
    background-color: rgba(0, 123, 255, 0.05);
}

/* Add a small edit icon on hover */
.task-name:hover::before {
    content: "";
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 20 20" fill="currentColor" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M13.8876 3.06729C14.1525 3.06729 14.4065 3.17252 14.5962 3.36225L16.6377 5.40374C17.0171 5.78319 17.0171 6.39457 16.6377 6.77402L8.94535 14.4663L5.35284 15.1549C4.9326 15.2337 4.55784 14.8589 4.63659 14.4387L5.32517 10.8462L13.0175 3.15386C13.2072 2.96413 13.4612 2.85889 13.7261 2.85889L13.8876 3.06729ZM6.57743 11.1873L6.11391 13.6776L8.60416 13.2141L15.7831 6.03509L13.8876 4.13956L6.57743 11.1873Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"/></svg>');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
    display: inline-block;
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 10px;
    opacity: 0.7;
    pointer-events: none;
}

.task-name[contenteditable="true"] {
    width: 100%;
    display: block;
    background: #fff;
    border: 1.5px solid #1a4ab9;
    border-radius: 2px;
    outline: none;
    box-sizing: border-box;
    overflow-x: auto;
    text-overflow: unset;
    cursor: text;
    scrollbar-width: none;
    box-shadow: 0 0 0 2px rgba(26, 74, 185, 0.2);
    position: relative;
    margin-bottom: 4px;
}

.task-name[contenteditable="true"]::after {
    content: "Editing...";
    position: absolute;
    top: -20px;
    right: 0;
    background: #1a4ab9;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    opacity: 0.8;
}
.task-name[contenteditable="true"]::-webkit-scrollbar {
    display: none;
}

/* Character counter display for existing ads */
.char-counter-display {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-weight: normal;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.char-counter-display .char-count {
    color: #333;
}

.char-counter-display .char-limit {
    color: #666;
}

/* Character counter for editing mode */
.task-name[contenteditable="true"] + .char-counter-edit {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-weight: normal;
    position: relative;
    z-index: 10;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.char-counter-edit .char-count {
    color: #333;
}

.char-counter-edit .char-limit {
    color: #666;
}

.char-counter-edit .char-count.warning {
    color: #ff6b35;
}

.char-counter-edit .char-count.danger {
    color: #dc3545;
}

.char-counter-edit .char-count.warning {
    color: #ff6b35;
}

/* LinkedIn Edit Modal Character Counter */
#linkedinEditModal .form-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

#linkedinEditModal .form-text #charCount {
    color: #333;
}

#linkedinEditModal .form-text #charCount.warning {
    color: #ff6b35;
}

#linkedinEditModal .form-text #charCount.danger {
    color: #dc3545;
}
.task-name-input {
    width: 100%;
    font-size: 16px;
    font-family: inherit;
    color: #222;
    background: #fff;
    border: 1.5px solid #1a4ab9;
    border-radius: 2px;
    padding: 0 8px;
    box-sizing: border-box;
    outline: none;
    line-height: 44px;
    margin: 0;
    display: block;
    transition: border 0.2s;
}

/* Version info styles */
.version-info {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.version-info:hover {
    background-color: rgba(26, 74, 185, 0.1);
    color: #1a4ab9;
}

.version-info small {
    font-size: 10px;
    opacity: 0.7;
}

/* Version History Modal Styles */
.version-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.version-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.version-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.version-item.latest-version {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.version-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.version-number {
    font-weight: 600;
    color: #1a4ab9;
    font-size: 14px;
}

.version-date {
    font-size: 12px;
    color: #666;
}

.version-content {
    margin-top: 10px;
}

.version-text {
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
}

.version-image {
    margin-top: 10px;
    text-align: center;
}

.version-image img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom: Increase Bootstrap tooltip padding */
.tooltip .tooltip-inner {
    max-width: 400px !important;
    padding: 10px 15px !important;
}
.delete-task-btn{
    background: none; 
    border: none; 
    padding: 0; 
    cursor: pointer;
}
.delete-task-btn svg{
    color: #666666;
}
.add-group-btn{
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 16px; 
    padding: 10px 24px; 
    border-radius: 8px; 
    border: 1px solid #d1d5db; 
    background: #fff; 
    color: #222; 
    box-shadow: 0 1px 2px rgba(60,60,60,0.03);
}

.adset-tabs {
  border-bottom: 1.5px solid #e0e0e0;
  padding-bottom: 0;
  position: relative;
  margin-bottom: 8px;
  gap: 2px !important;
}

.adset-tab {
  padding: 10px 22px;
  font-size: 16px;
  color: #222;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  font-weight: 500;
  border-radius: 0;
  border: none !important;
  background: none !important;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.adset-tab:not(.active):hover {
  color: #1a4ab9;
}

.adset-tab.active {
  color: #1a4ab9;
  font-weight: 600;
}

.adset-tab.active::after {
  content: "";
  display: block;
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 1px;
  height: 2px;
  background: #1a4ab9;
  z-index: 2;
}
.adset-badge{
    background-color: #6c757d;
    border-radius: 2px;
    color: #ffffff;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
}

.tab-menu-btn {
    background: none;
    border: none;
    padding: 0 0 0 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    z-index: 2;
    position: relative;
}

.adset-tab {
    position: relative;
}

/* Users Page Styles */
.users-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 36px 32px 32px 32px;
}
.users-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #1a4ab9;
    text-align: left;
}
.users-table-wrapper {
    overflow-x: auto;
}
.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: #fff;
}
.users-table th, .users-table td {
    padding: 14px 18px;
    text-align: left;
}
.users-table th {
    background: #f6f7fa;
    color: #222;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}
.users-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.users-table tr:last-child {
    border-bottom: none;
}
.users-table td {
    color: #333;
}
.users-table td:last-child {
    font-weight: 600;
}
.users-table td.status-active {
    color: #1aaf5d;
}
.users-table td.status-inactive {
    color: #e05a47;
}

/* Action Buttons */
.actions-cell {
    white-space: nowrap;
    text-align: right;
}

.action-btn {
    background: transparent;
    border: none;
    padding: 6px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #f5f5f5;
}

.action-btn svg {
    display: block;
    color: #333333;
}

.edit-btn:hover svg path {
    fill: #1a4ab9;
}

.delete-btn:hover svg path {
    fill: #e05a47;
}

/* Users Table Styles (copied from channel-table, but with users-table- prefix) */
.users-table-group {
    margin-top: 32px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.users-table-header {
    display: flex;
    padding: 18px 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #666;
    gap: 16px;
}

.users-table-wrapper {
    transition: max-height 0.3s, opacity 0.3s;
    overflow: hidden;
}

.users-table-main {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
}

.users-table-main th, .users-table-main td {
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    vertical-align: middle;
}

.users-table-main th {
    padding: 16px 20px;
    font-weight: 600;
    color: #222;
}

.users-table-main th:last-child {
    width: 10%;
}

.users-table-main td{
    padding: 0px 16px;
}

.users-table-main th:not(:last-child),
.users-table-main td:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.users-task-cell {
    display: flex;
    align-items: center;
    width: 100%;
    height: 45px;
    justify-content: flex-start;
    position: relative;
    padding: 0;
}

.users-editable-task {
    width: 100%;
    display: block;
    cursor: pointer;
    font-size: 16px;
    color: #222;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 44px;
}

.users-status-active {
    color: #1aaf5d;
}

.users-status-inactive {
    color: #e05a47;
}

.users-actions-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 45px;
}

.users-table-container {
    border-radius: 10px;
    overflow: hidden;
}

.users-table-main tbody tr:last-child {
    line-height: 45px;
}

.asset-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fafbfc;
}

.content-type-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    min-width: 180px;
    padding: 8px 0;
}
.content-type-menu.show {
    display: block;
}
.content-type-option {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    font-weight: 400;
    transition: background 0.2s;
    white-space: nowrap;
}
.content-type-option:hover {
    background: #f5f7fa;
}

.content-type-option svg {
    margin-right: 10px;
    vertical-align: text-top;
    color: #333333;
}
.addAdSetBtnclass{
    border-radius: 4px;
    border: none;
}
.addAdSetBtnclass:hover{
    background: rgba(103, 104, 121, 0.3);
}

/* LinkedIn Ad Display Styles */
.linkedin-ad-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.linkedin-component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.edit-linkedin-component {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.edit-linkedin-component:hover {
    opacity: 1;
}

.edit-linkedin-component svg {
    width: 10px;
    height: 10px;
}

.linkedin-image-container {
    position: relative;
    display: inline-block;
    max-width: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fafbfc;
}

.linkedin-preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.linkedin-preview-image:hover {
    transform: scale(1.05);
}

.linkedin-image-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.linkedin-image-container:hover .linkedin-image-actions {
    opacity: 1;
}

.linkedin-image-actions .btn {
    padding: 2px 4px;
    font-size: 10px;
    border-radius: 4px;
}

.linkedin-text-components {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.linkedin-headline,
.linkedin-caption {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.linkedin-label {
    padding: 10px 10px 0;
    font-weight: 700;
    text-decoration: underline;
}

.linkedin-content {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 100%;
}

.linkedin-headline .linkedin-content {
    font-weight: 600;
    color: #1a4ab9;
}

.linkedin-caption .linkedin-content {
    color: #555;
    font-size: 13px;
}

/* Task Input Styles */
.task-input-row {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin: 4px 0;
}

.task-input-form {
    width: 100%;
}

.task-input-container {
    padding: 12px 0px;
}

.task-input-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Text Input Styles */
.task-text-input {
    border: 2px solid #e9ecef;
    background: #fff;
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    width: 100%;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.task-text-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.input-group {
    display: flex;
    align-items: center;
}

/* Character Counter */
.char-counter {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    min-width: 50px;
    justify-content: center;
    padding: 13px 16px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.char-counter.warning {
    color: #ffc107;
    background: #fff3cd;
    border-color: #ffeaa7;
}

.char-counter.danger {
    color: #dc3545;
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.file-input-wrapper {
    position: relative;
}

.task-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.upload-icon {
    color: #6c757d;
    margin-bottom: 4px;
}

.upload-text {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 2px;
}

.file-types {
    font-size: 11px;
    color: #6c757d;
}

/* Selected File Info */
.selected-file-info {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
}

.selected-file-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-icon {
    color: #007bff;
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-size: 13px;
    color: #495057;
    word-break: break-all;
}

.remove-file-btn {
    padding: 2px 6px;
    border: none;
    background: none;
    color: #dc3545;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.remove-file-btn svg{
    vertical-align: initial;
}

/* Task Input Actions */
.task-input-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    padding-top: 12px;
}

.save-task-btn,
.cancel-task-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    text-decoration: none;
}

.save-task-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.save-task-btn svg,
.cancel-task-btn svg {
    width: 16px;
    height: 16px;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #dc3545;
}

.task-input-row .is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Responsive styles for task input */
@media (max-width: 768px) {
    .task-input-container {
        padding: 8px;
    }
    
    .task-input-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .save-task-btn,
    .cancel-task-btn {
        width: 100%;
        justify-content: center;
    }
    
    .file-upload-area {
        padding: 12px;
    }
    
    .upload-text {
        font-size: 13px;
    }
    
    .file-types {
        font-size: 10px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 6px;
    }
    
    .char-counter {
        align-self: flex-end;
    }
}

/* Animation for task input appearance */
.task-input-row {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drag and drop visual feedback */
.file-upload-area.drag-over {
    border-color: #007bff;
    background: #e3f2fd;
    transform: scale(1.02);
}

/* Loading state for upload button */
.save-task-btn.loading {
    position: relative;
    color: transparent;
}

.save-task-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Comment Sidebar Styles */
.comment-sidebar {
    position: fixed;
    bottom: 0;
    right: -500px;
    width: 500px;
    height: calc(100vh - 60px);
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
}
.comment-sidebar.is-open {
    right: 0;
}
.comment-sidebar-header {
    display: flex;
    padding: 20px;
}

/* Comment Sidebar Media Preview */
.comment-sidebar-media {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.comment-sidebar-media .media-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-sidebar-image {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-sidebar-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.comment-sidebar-video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}
.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    padding: 0 8px 0 0;
    line-height: 1;
}
.comment-sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.comment-author-info {
    display: flex;
    align-items: center;
}
.comment-avatar {
    width: 35px;
    height: 35px;
    background-color: #ff4b4b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    border: none;
    padding: 0;
    margin-right: 10px;
}
.comment-author-details {
    display: flex;
    flex-direction: column;
}
.comment-author {
    font-weight: 500;
    color: #333;
}
.comment-date {
    font-size: 0.8rem;
    color: #888;
}
.comment-item-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    padding-top: 5px;
}
.comment-action-btn {
    display: flex;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
}
.comment-action-btn:hover {
    color: #333;
}
.comment-version-info{
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: rgba(26, 74, 185, 0.1);
}
.comment-version-info:hover{
    color: #333;
}
.comment-actions{
    background: none;
    font-size: 14px;
    border: none;
}
.comment-replies {
    list-style: none;
    margin: 15px 0 0 40px;
    padding: 0;
}
.reply-box {
    margin-left: 40px;
    margin-top: 8px;
}
.reply-input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 4px;
}
.reply-input:focus, .reply-input:focus-visible {
    border-color: #b0b6c1;
    box-shadow: 0 2px 8px rgba(26, 74, 185, 0.07);
    outline: none;
}
.add-reply-btn {
    background: #1a4ab9;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    cursor: pointer;
    font-weight: 600;
}

.comment-sidebar-footer {
    display: block;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
}
.comment-input {
    width: 100%;
    min-height: 40px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px;
    font-size: 1rem;
}
.comment-input:focus, .comment-input:focus-visible {
    border-color: #b0b6c1;
    box-shadow: 0 2px 8px rgba(26, 74, 185, 0.07);
    outline: none;
}
.add-comment-btn {
    background: #1a4ab9;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    display: none;
}

.add-comment-btn.active {
    display: inline-block;
}

.comment-footer-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.add-comment-btn[data-comment-type="client"] {
    background: #FF6A39;
}

.add-comment-btn[data-comment-type="internal"] {
    background: #1a4ab9;
}

.resolved-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.resolved-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.resolved-details {
    text-align: right;
    font-size: 11px;
    line-height: 1.2;
}

.resolved-by {
    color: #28a745;
    font-weight: 500;
}

.resolved-time {
    color: #6c757d;
    font-size: 10px;
}

.no-comments {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.message-toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Reply mode styling */
.comment-input.reply-mode {
    border-color: #1a4ab9;
    background-color: #f8f9ff;
}

/* Reply styling */

.reply-indicator {
    font-size: 11px;
    color: #6c757d;
    margin-left: 8px;
    font-style: italic;
}

/* Comment group styling */
.comment-group {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 10px;
}

.comment-group .comment-item:not(:first-child) {
    margin-top: 10px;
}

/* Delete modal styling */
.ad-details {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    border-left: 3px solid #dc3545;
}

.ad-details strong {
    color: #495057;
}

#adTextToDelete {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-style: italic;
    word-wrap: break-word;
}

/* Resolve comment modal styling */
.comment-details {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    border-left: 3px solid #28a745;
}
.comment-details strong,
.comment-author-details strong {
    color: #495057;
}

#commentTextToResolve {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-style: italic;
    word-wrap: break-word;
}

#commentAuthorToResolve {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-weight: 500;
}

/* Comment Sidebar Tabs */
.comment-sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
}

.comment-tab {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px; /* Overlap the main border */
}

.comment-tab.active {
    color: #1a4ab9;
    font-weight: 600;
    border-bottom-color: #1a4ab9;
}

.tab-divider {
    width: 1px;
    background-color: #e0e0e0;
    height: 20px;
    align-self: center;
}

.comment-tab-content {
    display: none;
}

.comment-tab-content.active {
    display: block;
}

.comment-replies {
  list-style: none;
  margin: 15px 0 0 40px;
  padding-left: 15px;
  border-left: 2px solid #eef0f3;
}

.reply-box {
  margin-left: 40px;
  margin-top: 10px;
}
.reply-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 4px;
}

/* Media Asset Display Styles */
.media-asset-display {
    position: relative;
    display: inline-block;
}

.image-preview-container,
.video-preview-container {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 8px;
}

.media-preview-image {
    width: 80px;
    height: 80px;
    padding: 5px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.media-preview-video {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}
.visual-custom{
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.media-actions {
    position: relative;
    opacity: 0;
}

.image-preview-container:hover .media-actions,
.video-preview-container:hover .media-actions {
    opacity: 1;
}

.image-preview-container:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgb(0 0 0 / 30%);
    opacity: 0;
    pointer-events: none;
    border-radius: 6px;
    transition: opacity 0.25s;
    z-index: 2;
}
.image-preview-container:hover:after {
    opacity: 1;
}

.video-preview-container:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgb(0 0 0 / 30%);
    opacity: 0;
    pointer-events: none;
    border-radius: 6px;
    transition: opacity 0.25s;
    z-index: 2;
}
.video-preview-container:hover:after {
    opacity: 1;
}

.view-full-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    color: #333 !important;
    padding: 6px !important;
    font-size: 12px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.view-full-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1);
    color: #1a4ab9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.view-full-btn svg {
    width: 12px;
    height: 12px;
}

/* Overlay styles handled by hover states */

.image-preview-container:hover .media-upload-overlay,
.video-preview-container:hover .media-upload-overlay {
    opacity: 1;
}

.media-preview-actions {
    position: relative;
    opacity: 0;
}

.image-preview-container:hover .media-preview-actions,
.video-preview-container:hover .media-preview-actions {
    opacity: 1;
}

.upload-new-version-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    color: #1a4ab9 !important;
    padding: 6px !important;
    font-size: 12px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.upload-new-version-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.upload-new-version-btn svg {
    width: 14px;
    height: 14px;
}

/* Media Upload Modal Styles */
.media-upload-modal .modal-body {
    padding: 20px;
}

.media-upload-preview {
    max-width: 100%;
    max-height: 300px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.media-upload-preview img,
.media-upload-preview video {
    width: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

/* No Media Container Styles */
.no-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    width: 80px;
}

.upload-first-version-btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    border: 1px dashed #ccc !important;
    background: #f8f9fa !important;
    color: #6c757d !important;
    transition: all 0.2s ease;
}

.upload-first-version-btn:hover {
    border-color: #1a4ab9 !important;
    background: #e3f2fd !important;
    color: #1a4ab9 !important;
    transform: scale(1.02);
}

.upload-first-version-btn svg {
    width: 14px;
    height: 14px;
}

/* Full View Modal Styles */
#fullViewModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

#fullViewModal .modal-body {
    background: #000;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

#fullViewContent {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullViewContent img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#fullViewContent video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Media preview hover effect */
.media-preview-image:hover,
.media-preview-video:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Add a subtle indicator that the image is clickable */
.media-preview-image::after,
.media-preview-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 6px;
    pointer-events: none;
}

.media-preview-image:hover::after,
.media-preview-video:hover::after {
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.empty-state-icon {
    margin-bottom: 24px;
    color: #d1d5db;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
}

.empty-state-description {
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}
.filter-dropdown {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #c3c6d4;
    font-size: 14px;
    color: #333333;
    background: #fff;
    width: 100%;
    max-width: 200px;
    height: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
}
.filter-dropdown:focus {
    outline: 0px solid #1a4ab9;
    border-color: #1a4ab9;
}
.download-btn{
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 15px;
    background: #1a4ab9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.download-btn:hover {
    background: #163a8a;
}
.form-control{
    width: 100%;
    box-sizing: border-box;
    padding: 11px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #222;
    transition: box-shadow 0.2s, border 0.2s;
    outline: none;
    box-shadow: none;
}

.form-control::placeholder {
    color: #b0b6c1;
    opacity: 1;
}

.form-control:focus {
    border-color: #b0b6c1;
    box-shadow: 0 2px 8px rgba(26,74,185,0.07);
    background: #fff;
}
.form-select{
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #222;
    transition: box-shadow 0.2s, border 0.2s;
    outline: none;
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.15rem center;
    background-size: 12px 12px;
}
.form-select:focus {
    border-color: #b0b6c1;
    box-shadow: 0 2px 8px rgba(26,74,185,0.07);
}
/* .input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3), .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control, .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select, .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
} */
.btn-primary{
    padding: 8px 15px;
    background: #1a4ab9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover{
    background: #163a8a;
}
.btn-secondary{
    padding: 8px 15px;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-danger{
    padding: 8px 15px;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-close:focus{
    box-shadow: none;
}

/* LinkedIn Composite Form Styles */
.linkedin-composite-row {
    background-color: #f8f9fa;
    border-left: 4px solid #0077b5;
}

.linkedin-components {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.linkedin-header {
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 16px;
}

.linkedin-header h6 {
    color: #0077b5;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 18px;
}

.linkedin-header p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

.linkedin-component {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.linkedin-component:hover {
    border-color: #0077b5;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.1);
}

.linkedin-component:last-child {
    margin-bottom: 0;
}

.linkedin-visual-asset{
    position: absolute;
    opacity: 0;
}

.component-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.linkedin-component .input-group {
    position: relative;
}

.linkedin-component .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.linkedin-component .form-control:focus {
    border-color: #0077b5;
    box-shadow: 0 0 0 0.2rem rgba(0, 119, 181, 0.25);
    outline: none;
}

.linkedin-component .char-counter {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6c757d;
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.linkedin-component textarea + .char-counter {
    top: 12px;
    transform: none;
}

.linkedin-component .file-upload-area {
    border: 2px dashed #ced4da;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background: white;
    transition: border-color 0.2s, background-color 0.2s;
}

.linkedin-component .file-upload-area:hover {
    border-color: #0077b5;
    background-color: #f8f9fa;
}

.linkedin-component .file-upload-area.drag-over {
    border-color: #0077b5;
    background-color: #e3f2fd;
}

.linkedin-component .file-input-wrapper {
    display: block;
}

.linkedin-component .file-input-label {
    cursor: pointer;
    display: block;
}

.linkedin-component .file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.linkedin-component .upload-icon {
    color: #0077b5;
    width: 32px;
    height: 32px;
}

.linkedin-component .upload-text {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.linkedin-component .file-types {
    color: #6c757d;
    font-size: 12px;
}

.linkedin-component .selected-file-info {
    display: none;
    margin-top: 12px;
}

.linkedin-component .selected-file-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 4px;
    border: 1px solid #bbdefb;
}

.linkedin-component .file-icon {
    color: #0077b5;
    flex-shrink: 0;
}

.linkedin-component .file-name {
    flex: 1;
    font-size: 14px;
    color: #495057;
    word-break: break-all;
}

.linkedin-component .remove-file-btn {
    background: none;
    border: none;
    color: #dc3545;
    padding: 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.linkedin-component .remove-file-btn:hover {
    background-color: #f8d7da;
}

.save-linkedin-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    text-decoration: none;
}
.save-linkedin-btn:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.save-linkedin-btn.loading {
    position: relative;
    color: transparent;
}

.save-linkedin-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive adjustments for LinkedIn form */
@media (max-width: 768px) {
    .linkedin-components {
        padding: 16px;
    }
    
    .linkedin-component {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .linkedin-header h6 {
        font-size: 16px;
    }
    
    .linkedin-component .file-upload-area {
        padding: 16px;
    }
    
    .linkedin-component .upload-text {
        font-size: 13px;
    }
    
    .linkedin-component .file-types {
        font-size: 11px;
    }
}

/* LinkedIn Version Display in Version History Modal */
.linkedin-version-display {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.linkedin-version-display .linkedin-component {
    margin-bottom: 8px;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
    border-left: 3px solid #0077b5;
}

.linkedin-version-display .linkedin-component:last-child {
    margin-bottom: 0;
}

.linkedin-version-display .linkedin-component strong {
    color: #0077b5;
    font-weight: 600;
    margin-right: 8px;
}

.linkedin-version-display .linkedin-component:first-child strong {
    color: #0077b5;
}

.linkedin-version-display .linkedin-component:last-child strong {
    color: #0077b5;
}

/* Version History Modal Improvements */
.version-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.version-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: white;
}

.version-item.latest-version {
    border-color: #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
}

.version-header {
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-content {
    padding: 16px;
}

.version-text {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #495057;
}

.version-image {
    margin-top: 12px;
    text-align: center;
}

.version-image img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-version-icon {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.comment-version-icon svg {
    vertical-align: middle;
}

.comment-kebab-menu-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: background 0.2s;
}
.comment-kebab-menu-btn:hover, .comment-kebab-menu-btn:focus {
    color: #333;
}
.comment-kebab-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 28px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 4px;
    z-index: 10;
    min-width: 120px;
    flex-direction: column;
}
.comment-kebab-dropdown.show {
    display: flex;
}
.comment-kebab-dropdown button {
    background: none;
    border: none;
    padding: 8px 16px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.comment-kebab-dropdown button:hover {
    background: #f5f5f5;
}

/* Content Type Badges */
.content-type-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
}

.content-type-badge.text {
    background-color: #e3f2fd;
    color: #1976d2;
}

.content-type-badge.headline {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.content-type-badge.description {
    background-color: #fff3e0;
    color: #f57c00;
}

.content-type-badge.image {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.content-type-badge.visual-asset {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.content-type-badge.caption {
    background-color: #e1f5fe;
    color: #0277bd;
}

.content-type-badge.video {
    background-color: #fff3e0;
    color: #f57c00;
}

.content-type-badge.carousel {
    background-color: #e8f5e8;
    color: #388e3c;
}

.content-type-badge.linkedin {
    background-color: #e3f2fd;
    color: #1565c0;
}

.content-type-badge.thumbnail {
    background-color: #fce4ec;
    color: #c2185b;
}

.content-type-badge.document {
    background-color: #fce4ec;
    color: #c2185b;
}

.char-count {
    font-size: 10px;
    color: #666;
    font-weight: 400;
}

/* Approval Stage Badges */
.approval-stage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
    text-align: center;
}

.approval-stage-badge.internal-qa {
    background-color: #fff3cd;
    color: #856404;
}

.approval-stage-badge.internal-2-qa {
    background-color: #d1ecf1;
    color: #0c5460;
}

.approval-stage-badge.client-sign-off {
    background-color: #d4edda;
    color: #155724;
}

.approval-stage-badge.fully-approved {
    background-color: #dcfce7;
    color: #166534;
}

/* Last approval information styles */
.last-approval-info {
    margin-top: 4px;
    text-align: center;
}

.last-approval-info small {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.2;
}

/* Download Assets Page Styles */
.approved-asset-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-asset-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-asset-link:hover {
    background-color: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

.download-asset-link svg {
    width: 14px;
    height: 14px;
}

/* Content type badges for download assets */
.content-type-badge.headline {
    background-color: #dbeafe;
    color: #1e40af;
}

.content-type-badge.description {
    background-color: #fef3c7;
    color: #d97706;
}

.content-type-badge.image {
    background-color: #dcfce7;
    color: #166534;
}

.content-type-badge.visual-asset {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.content-type-badge.caption {
    background-color: #fce7f3;
    color: #be185d;
}

.content-type-badge.video {
    background-color: #fef2f2;
    color: #dc2626;
}

.content-type-badge.carousel {
    background-color: #ecfdf5;
    color: #059669;
}

.content-type-badge.linkedin {
    background-color: #eff6ff;
    color: #2563eb;
}

.content-type-badge.thumbnail {
    background-color: #fef7cd;
    color: #a16207;
}

.content-type-badge.document {
    background-color: #f3f4f6;
    color: #374151;
}

/* Empty state for download assets */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
}

.empty-state-icon {
    margin-bottom: 16px;
    color: #d1d5db;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.empty-state-description {
    font-size: 14px;
    color: #6b7280;
    max-width: 400px;
    line-height: 1.5;
}

/* Responsive adjustments for download assets */
@media (max-width: 768px) {
    .approved-asset-cell {
        flex-direction: column;
        gap: 4px;
    }
    
    .download-asset-link {
        width: 20px;
        height: 20px;
    }
    
    .download-asset-link svg {
        width: 12px;
        height: 12px;
    }
    
    .content-type-cell {
        text-align: center;
    }
    
    .char-count {
        display: block;
        margin-top: 2px;
    }
}

.char-count {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Approval History Styles */
.approval-history-cell {
    padding: 8px 12px;
    max-width: 300px;
}

.approval-stages {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.approval-stage {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.stage-label {
    font-weight: 600;
    color: #374151;
    min-width: 80px;
}

.stage-info {
    color: #6b7280;
    flex: 1;
}

.download-cell {
    text-align: center;
    padding: 8px 12px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-link:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
}

.no-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .approval-history-cell {
        max-width: 200px;
    }

    .approval-stage {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .stage-label {
        min-width: auto;
    }

    .download-cell {
        padding: 4px 8px;
    }

    .download-link,
    .no-download {
        width: 28px;
        height: 28px;
    }
}

.version-meta {
    margin: 8px 0;
    padding: 0 16px;
}

.version-meta small {
    color: #6c757d;
    font-size: 12px;
}

.version-media {
    margin: 10px 0;
    position: relative;
    display: inline-block;
}

.version-image,
.version-video {
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.version-image:hover,
.version-video:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #1a4ab9;
}

.version-media::after {
    content: '🔍 Click to expand';
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.version-media:hover::after {
    opacity: 1;
}

.rotated {
    transform: rotate(-90deg);
}

.unrotated {
    transform: rotate(0deg);
}

.channels-styling {
    text-align: center; 
    padding: 10px; 
    color: #6c757d;
}

.channels-error {
    text-align: center; 
    padding: 10px; 
    color: #dc3545;
}

.version-styling{
    max-width: 200px; 
    max-height: 150px; 
    cursor: pointer;
}

/* Grouped Platform Styles */
.grouped-platform-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grouped-form-header {
    margin-bottom: 24px;
    text-align: center;
}

.grouped-form-header h3 {
    color: #222;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.grouped-form-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.grouped-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.grouped-content-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #222;
    font-size: 14px;
}

.field-icon {
    display: flex;
    align-items: center;
}

.field-icon svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.char-limit-info {
    color: #666;
    font-weight: 400;
    font-size: 12px;
}

.content-textarea {
    min-height: 80px;
    resize: vertical;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.content-textarea:focus {
    border-color: #1a4ab9;
    box-shadow: 0 0 0 3px rgba(26, 74, 185, 0.1);
    outline: none;
}

.char-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.char-counter.text-danger {
    color: #dc2626;
}

.char-counter.text-warning {
    color: #ff6b35;
}

.file-upload-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-input {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
}

.file-input:hover {
    border-color: #1a4ab9;
    background: #f0f4ff;
}

.file-input:focus {
    border-color: #1a4ab9;
    background: #fff;
    outline: none;
}

.file-upload-preview {
    min-height: 80px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.file-upload-preview:empty::before {
    content: "No file selected";
    color: #999;
    font-style: italic;
}

.file-upload-preview img,
.file-upload-preview video {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
}

.file-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.file-preview-item img,
.file-preview-item video {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 8px;
}

.file-info {
    text-align: center;
    width: 100%;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
    font-size: 14px;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.file-upload-info {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.existing-files {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.existing-files-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.existing-file {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.existing-file img {
    border-radius: 2px;
    border: 1px solid #e9ecef;
}

.existing-files-note {
    font-size: 11px;
    color: #dc3545;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

/* Content display styles */
.content-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.content-type-name {
    color: #495057;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.file-item {
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    background: #f8f9fa;
}

.file-item img,
.file-item video {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.expandable-image {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expandable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.expanded-image {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.file-name {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    word-break: break-word;
}

.text-content {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border-left: 4px solid #007bff;
}

.text-content p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

.file-info {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.submit-grouped-content,
.save-draft-grouped {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-grouped-content {
    background: #1a4ab9;
    color: white;
}

.submit-grouped-content:hover {
    background: #153d9a;
}

.submit-grouped-content:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.save-draft-grouped {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.save-draft-grouped:hover {
    background: #e5e7eb;
}

.existing-submission-display {
    margin-top: 32px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.existing-submission-display h4 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.submission-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submission-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.submission-item strong {
    color: #374151;
    font-size: 14px;
}

.submission-text {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.submission-file {
    display: flex;
    align-items: center;
    gap: 8px;
}

.submission-preview {
    max-width: 100px;
    max-height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.file-name {
    color: #6b7280;
    font-size: 14px;
}

.submission-status {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.draft {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.submitted {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.no-grouped-content {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-grouped-content p {
    margin: 0;
    font-size: 16px;
}

/* Responsive adjustments for grouped platform */
@media (max-width: 768px) {
    .grouped-platform-container {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .submit-grouped-content,
    .save-draft-grouped {
        width: 100%;
    }
    
    .existing-submission-display {
        margin-top: 24px;
        padding: 16px;
    }
}

/* Comment action buttons styling */
.comment-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-buttons-group {
    display: flex;
    gap: 8px;
}

.comment-action-buttons {
    display: flex;
    gap: 8px;
}

.comment-action-btn {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.comment-action-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.comment-action-btn:hover {
    background: #f8f9fa;
}

.comment-action-btn.active:hover {
    background: #0056b3;
}

/* Comment action radio group styling */
.comment-action-radio-group {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
}

.comment-action-radio-group.required {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background-color: #fff5f5;
}

.comment-action-radio-group .form-check {
    margin-right: 16px;
    margin-bottom: 0;
}

.comment-action-radio-group .form-check-input {
    margin-right: 6px;
}

.comment-action-radio-group .form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.comment-action-radio-group .form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 600;
}

/* Unresolved comment count styling */
.comment-count.unresolved {
    background: #dc3545;
    color: white;
}

/* Grouped Content Version History Styles */
.grouped-content-version-display {
    margin-top: 15px;
}

.content-type-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.content-type-name {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-content .files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.file-content .file-item {
    text-align: center;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
}

.file-content .file-item img,
.file-content .file-item video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-content .file-name {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    word-break: break-word;
}

.text-content {
    margin-top: 10px;
}

.text-content .version-text {
    background-color: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
}

/* Version History Modal Styles */
.version-history-list {
    max-height: 70vh;
    overflow-y: auto;
}

.version-item {
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.version-item.latest-version {
    border-color: #28a745;
    border-width: 2px;
}

.version-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.version-number {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

.version-date {
    color: #6c757d;
    font-size: 14px;
}

.version-meta {
    padding: 8px 15px;
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.version-content {
    padding: 15px;
    background-color: white;
}

.version-image.version-styling {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.version-image.version-styling:hover {
    transform: scale(1.05);
}

/* Role filter styling */
.role-filter-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.role-filter-container .form-label {
    margin-bottom: 8px;
    color: #495057;
}

.role-filter-container .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

.role-filter-container .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Clickable Version Icon Styles */
.clickable-version {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 2px 4px;
}

.clickable-version:hover {
    background-color: #e3f2fd;
    transform: scale(1.05);
}

.clickable-version:active {
    transform: scale(0.95);
}

/* Target Version Highlight in Version History */
.target-version {
    background-color: #fff3cd !important;
    border: 2px solid #ffc107 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin: 5px 0 !important;
    transition: all 0.3s ease;
}