/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ADMIN ONLY ELEMENTS ===== */
.admin-only {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: #fafafa;
    color: #0f0f0f;
    line-height: 1.5;
    font-size: 14px;
}

/* ===== APP LAYOUT ===== */
.app {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 32px;
    font-weight: 600;
    font-size: 16px;
    color: #0f0f0f;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #666666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-item:hover {
    background: #f5f5f5;
    color: #0f0f0f;
}

.nav-item.active {
    background: #0f0f0f;
    color: #ffffff;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ===== USER PROFILE SECTION ===== */
.user-profile {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #e5e5e5;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.user-name {
    font-weight: 600;
    color: #0f0f0f;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #666666;
    text-transform: capitalize;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #fcc;
    border-color: #c33;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
}

/* ===== BANNER SECTION ===== */
.banner-section {
    position: relative;
    height: 220px;
    width: calc(100% + 80px);
    overflow: hidden;
    margin: -40px -40px 2rem -40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: none;
    z-index: 10;
}

.banner-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

/* Fallback background in case image fails to load */
.banner-background {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(2px);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
    pointer-events: none;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', sans-serif;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2), 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Download Plugin Button */
.download-plugin-btn {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
}

.download-plugin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-plugin-btn:hover::before {
    left: 100%;
}

.download-plugin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #7c8ff0 0%, #8a5bb8 100%);
}

.download-plugin-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Glowing effect */
.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.download-plugin-btn:hover .btn-glow {
    opacity: 1;
}

.btn-text {
    position: relative;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Cairo', sans-serif;
}

/* ===== FOOTER ===== */
.footer {
    margin-left: 260px;
    padding: 24px 40px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
    width: calc(100vw - 260px);
}

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

.copyright {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.2px;
}



/* Custom cursor for button */
.download-plugin-btn {
    cursor: none;
}

.download-plugin-btn:hover {
    cursor: none;
}

/* Custom cursor circle */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    display: none;
}

.custom-cursor.active {
    display: block;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 8px;
}

.page-header p {
    color: #666666;
    font-size: 16px;
}

/* ===== STATISTICS SECTION ===== */
.stats-section {
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #0f0f0f;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
}

/* Make the unit (MB, KB, etc.) smaller */
.stat-number::after {
    content: attr(data-unit);
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    vertical-align: top;
    margin-left: 2px;
}

.stat-label {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
}

/* Bulk apply bar */
.bulk-apply-bar {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}
.bulk-title { font-weight: 600; color: #0f0f0f; margin-bottom: 8px; }
.bulk-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bulk-row select { padding: 10px 12px; border: 1px solid #e5e5e5; border-radius: 8px; font-size: 14px; background: #fff; }

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 4px;
}

.section-header p {
    color: #666666;
    font-size: 14px;
}

.drop-area {
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 24px;
}

.drop-area:hover,
.drop-area.drag-over {
    border-color: #0f0f0f;
    background: #fafafa;
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.drop-icon {
    font-size: 32px;
    color: #666666;
}

.drop-content p {
    color: #666666;
    font-size: 16px;
}

.browse-link {
    color: #0f0f0f;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.file-cards {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.file-card {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    align-items: flex-start;
}

/* Thumbnail preview box */
.preview {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 32px;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Inputs inside upload card */
.file-card input[type="text"],
.file-card select,
.file-card textarea {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.file-card input[type="text"],
.file-card select {
    max-width: 160px;
}

.file-card textarea {
    resize: vertical;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #ff4d4f;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}
.remove-btn:hover {
    color: #d9363e;
}

.upload-btn {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.3);
    margin-top: 16px;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #106ebe 0%, #005a9e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 120, 212, 0.4);
}

.upload-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Upload progress bar ===== */
/* Removed old inline progress bars - now using modal */

/* ===== ASSETS PAGE ===== */
.assets-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #0f0f0f;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 16px;
}

.filter-controls {
    display: flex;
    gap: 12px;
}

.filter-controls select {
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-controls select:focus {
    outline: none;
    border-color: #0f0f0f;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1600px) {
    .assets-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .assets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.asset-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.asset-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.asset-thumbnail {
    width: 100%;
    aspect-ratio: 2/1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.asset-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-thumbnail .placeholder {
    font-size: 40px;
    color: #adb5bd;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.asset-thumbnail .placeholder.loading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-thumbnail .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.asset-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.asset-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #6b7280;
    gap: 8px;
    flex-wrap: wrap;
}

.asset-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.asset-size {
    font-weight: 600;
    color: #9ca3af;
    font-size: 9px;
}

.asset-date {
    color: #9ca3af;
    font-size: 9px;
}

.asset-subcategory {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.asset-uploader {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f9fafb;
    border-radius: 4px;
    margin: 0;
}

.asset-uploader span {
    color: #6b7280 !important;
    font-size: 9px !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.asset-description {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.asset-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

/* Asset Badges Styling - Now inline with meta */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans Arabic', 'Arial Unicode MS', 'Tahoma', 'Cairo', sans-serif;
    text-transform: none;
    letter-spacing: 0.3px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
    line-height: 1.2;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-feature-settings: "liga" 1, "kern" 1;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.badge:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.size-badge {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mood-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Badge entrance animation */
@keyframes badgeEntrance {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(10px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.badge {
    animation: badgeEntrance 0.3s ease-out;
}

/* Arabic text support */
.badge[lang="ar"],
.badge:lang(ar) {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Arial Unicode MS', sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

/* Fallback for Arabic text display */
.badge:contains(طول),
.badge:contains(طفشان) {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Arial Unicode MS', 'Tahoma', sans-serif;
}

/* Responsive badge styling */
@media (max-width: 768px) {
    .asset-badges {
        gap: 6px;
        margin: 10px 0;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 50px;
    }
    
    /* Banner responsive styles */
    .banner-section {
        height: 160px;
        width: calc(100% + 40px);
        margin: -20px -20px 1.5rem -20px;
    }
    
    .banner-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .download-plugin-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

.btn-small {
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-small:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-small:active {
    transform: translateY(0);
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
}

/* ===== CATEGORIES PAGE ===== */
.categories-section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

/* ===== B-ROLLS FILTERS MANAGEMENT ===== */
.brolls-filters-section {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
}

.filters-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.filter-group-management {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e5e9;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.filter-group-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.filters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
}

.filter-item:hover {
    border-color: #0078d4;
    box-shadow: 0 1px 3px rgba(0, 120, 212, 0.1);
}

.filter-item.editing {
    border-color: #0078d4;
    background: #f0f8ff;
}

.filter-name {
    font-weight: 500;
    color: #374151;
    flex: 1;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.filter-edit-btn,
.filter-delete-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-edit-btn {
    color: #0078d4;
}

.filter-edit-btn:hover {
    background: #e3f2fd;
}

.filter-delete-btn {
    color: #dc3545;
}

.filter-delete-btn:hover {
    background: #fde8e8;
}

.filter-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #0078d4;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 8px;
}

.filter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.filter-save-btn,
.filter-cancel-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-save-btn {
    background: #0078d4;
    color: white;
    margin-right: 4px;
}

.filter-save-btn:hover {
    background: #106ebe;
}

.filter-cancel-btn {
    background: #6c757d;
    color: white;
}

.filter-cancel-btn:hover {
    background: #5a6268;
}

/* Filter Color Styles */
.filter-color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.add-filter-color,
.filter-color-input {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 0;
    flex-shrink: 0;
}

.add-filter-color::-webkit-color-swatch-wrapper,
.filter-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 6px;
    border: 2px solid #e1e5e9;
}

.add-filter-color::-webkit-color-swatch,
.filter-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.add-filter-color:hover,
.filter-color-input:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.add-filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.add-filter-input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.add-filter-actions {
    display: flex;
    gap: 8px;
}

.add-filter-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-filter-btn:hover {
    background: #218838;
}

.cancel-add-filter-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-add-filter-btn:hover {
    background: #5a6268;
}

.add-category {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    align-items: center;
}

.add-category input {
    flex: 1;
    max-width: 300px;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
}

.add-category input:focus {
    outline: none;
    border-color: #0f0f0f;
}

.btn-primary {
    background: #0f0f0f;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #333333;
}

.categories-tree {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}

.category-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #ffffff;
    overflow: hidden;
}

.main-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.category-name {
    font-weight: 600;
    color: #0f0f0f;
}

.category-count {
    font-size: 12px;
    color: #666666;
    font-weight: normal;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sub-categories {
    padding: 16px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.sub-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-left: 20px;
}

.sub-category-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-category-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: #666666;
}

.sub-category-name {
    font-weight: 500;
    color: #333333;
    font-size: 14px;
}

.sub-category-actions {
    display: flex;
    gap: 6px;
}

.add-sub-category {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-left: 20px;
    align-items: center;
}

.add-sub-category input {
    flex: 1;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
}

.add-sub-category input:focus {
    outline: none;
    border-color: #0f0f0f;
}

.no-sub-categories {
    color: #999999;
    font-style: italic;
    font-size: 14px;
    margin-left: 20px;
    margin-bottom: 12px;
}

/* ===== SETTINGS PAGE ===== */
.settings-content {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px;
}

.settings-group {
    margin-bottom: 32px;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 16px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

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

.setting-item label {
    font-weight: 500;
    color: #0f0f0f;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status.connected {
    background: #dcfce7;
    color: #166534;
}

.status.active {
    background: #dbeafe;
    color: #1e40af;
}

/* ===== LOADING MESSAGE ===== */
.loading-message {
    text-align: center;
    padding: 40px;
    color: #666666;
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        padding: 24px;
        max-width: calc(100vw - 200px);
        overflow-x: hidden;
    }
    
    .footer {
        margin-left: 200px;
        padding: 20px 24px;
        width: calc(100vw - 200px);
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .assets-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-controls {
        justify-content: stretch;
    }
    
    .filter-controls select {
        flex: 1;
    }
    
    .assets-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
}

/* ===== UPLOAD MODAL ===== */
.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* ===== EDIT MODAL ===== */
.edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.edit-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.edit-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0f0f0f;
    margin: 0;
}

.edit-modal-body {
    padding: 24px;
}

.edit-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px 24px;
    border-top: 1px solid #e5e5e5;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0f0f0f;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #0f0f0f;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f5f5f5;
    color: #0f0f0f;
}

.upload-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.upload-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.upload-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0f0f0f;
    margin: 0;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: #f5f5f5;
    color: #0f0f0f;
}

.upload-modal-body {
    padding: 16px 24px;
    max-height: 400px;
    overflow-y: auto;
}

.upload-files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.upload-file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #dee2e6;
}

.upload-file-info {
    flex: 1;
    min-width: 0;
}

.upload-file-name {
    font-weight: 500;
    color: #0f0f0f;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.upload-file-progress {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
}

.upload-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0078d4, #106ebe);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-text {
    font-size: 11px;
    color: #666666;
    text-align: right;
}

.upload-file-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 12px;
}

.upload-file-status.waiting {
    background: #e9ecef;
    color: #666666;
}

.upload-file-status.uploading {
    background: #0078d4;
    color: #ffffff;
    animation: pulse 1.5s infinite;
}

.upload-file-status.processing {
    background: #ffc107;
    color: #ffffff;
    animation: spin 1s linear infinite;
}

.upload-file-status.success {
    background: #28a745;
    color: #ffffff;
}

.upload-file-status.error {
    background: #dc3545;
    color: #ffffff;
}

.upload-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

.btn-danger {
    background: #dc3545;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: #218838;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

@media (max-width: 768px) {
    .upload-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .upload-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .upload-file-progress {
        margin-left: 0;
        width: 100%;
    }

    .edit-modal-content {
        width: 95%;
        margin: 20px;
        max-height: 85vh;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .edit-modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .edit-modal-footer button {
        width: 100%;
    }
}

/* ===== DRAG AND DROP STYLES ===== */
.drag-handle {
    cursor: grab;
    color: #999;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

.drag-handle:hover {
    background: #f0f0f0;
    color: #666;
}

.drag-handle:active {
    cursor: grabbing;
}

.category-drag-handle {
    margin-right: 8px;
}

.sub-drag-handle {
    margin-right: 6px;
    font-size: 10px;
}

.category-item[draggable="true"],
.sub-category-item[draggable="true"] {
    cursor: grab;
    transition: all 0.2s ease;
}

.category-item[draggable="true"]:hover,
.sub-category-item[draggable="true"]:hover {
    background: #f8f8f8;
}

.category-item.dragging,
.sub-category-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    cursor: grabbing;
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.drop-indicator {
    height: 2px;
    background: #0078d4;
    margin: 4px 0;
    border-radius: 1px;
    animation: dropIndicatorPulse 1s ease-in-out infinite;
}

@keyframes dropIndicatorPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

/* Update existing styles to accommodate drag handles */
.main-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.sub-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.sub-category-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

/* Modern Upload Interface Styling */
.file-card-modern {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    overflow: hidden;
}

.file-card-modern:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #0078d4;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.remove-btn-modern {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-btn-modern:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Card Content */
.card-content {
    display: flex;
    gap: 24px;
    padding: 24px;
}

/* Preview Section */
.preview-section {
    flex-shrink: 0;
}

.preview-modern {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e1e5e9;
    position: relative;
}

.preview-modern img,
.preview-modern video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Audio Preview */
.audio-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.audio-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.audio-name {
    font-size: 12px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
}

/* File Icon */
.file-icon {
    font-size: 32px;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Form Section */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Groups */
.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.form-input-modern,
.form-select-modern,
.form-textarea-modern {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input-modern:focus,
.form-select-modern:focus,
.form-textarea-modern:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.form-textarea-modern {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* B-Rolls Filters */
.brolls-filters-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.filters-row {
    display: flex;
    gap: 16px;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* Subcategory Group */
.subcategory-group {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .preview-modern {
        width: 100px;
        height: 100px;
        align-self: center;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-section {
        gap: 16px;
    }

    .filters-management {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: flex-end;
    }
} 

/* ===== B-ROLLS FILTERS LIST (SCROLLABLE) ===== */
#sizeFiltersList,
#moodFiltersList,
.filters-list {
  max-height: 360px; /* prevents page from growing too tall */
  overflow-y: auto;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

/* Optional: nicer scrollbar */
#sizeFiltersList::-webkit-scrollbar,
#moodFiltersList::-webkit-scrollbar,
.filters-list::-webkit-scrollbar {
  width: 8px;
}

#sizeFiltersList::-webkit-scrollbar-track,
#moodFiltersList::-webkit-scrollbar-track,
.filters-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

#sizeFiltersList::-webkit-scrollbar-thumb,
#moodFiltersList::-webkit-scrollbar-thumb,
.filters-list::-webkit-scrollbar-thumb {
  background: #c9c9c9;
  border-radius: 8px;
}

#sizeFiltersList::-webkit-scrollbar-thumb:hover,
#moodFiltersList::-webkit-scrollbar-thumb:hover,
.filters-list::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* Make individual filter items look tidy inside the scroll area */
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
}

.filter-color-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
}

.filter-name {
  flex: 1;
  font-weight: 500;
}

.filter-actions button {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  padding: 6px 8px;
}

.filter-actions button:last-child {
  color: #dc2626;
} 

/* B-Rolls filter badges */
.asset-badges {
  display: flex;
  gap: 8px;
  margin: 6px 0 0 0;
  flex-wrap: wrap;
}
.filter-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== NOTION INTEGRATION STYLES ===== */
.notion-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notion-actions button {
    padding: 8px 16px;
    font-size: 14px;
}

.notion-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 150px;
} 
/* ===== TICKET SYSTEM ===== */
.ticket-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e5e5e5;
}

.ticket-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.ticket-tab:hover {
    color: #667eea;
    background: #f8f9ff;
}

.ticket-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.ticket-tab .notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.ticket-tab-content {
    display: none;
    padding: 24px 0;
}

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

/* Ticket Form */
.ticket-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    margin-top: 24px;
}

/* Ticket List */
.ticket-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ticket-filters select {
    padding: 8px 12px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
}

.ticket-list {
    display: grid;
    gap: 16px;
}

.ticket-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ticket-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.ticket-card .ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
}

.ticket-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    line-height: 1.4;
    margin: 0;
}

.ticket-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* User Ticket Status Badge Colors (on gradient header) */
.ticket-card .ticket-header .ticket-status {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

/* User Ticket Priority Badge Colors */
.ticket-card .badge.priority-urgent {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
}

.ticket-card .badge.priority-high {
    background: rgba(254, 215, 170, 0.95);
    color: #9a3412;
}

.ticket-card .badge.priority-medium {
    background: rgba(224, 231, 255, 0.95);
    color: #3730a3;
}

.ticket-card .badge.priority-low {
    background: rgba(229, 231, 235, 0.95);
    color: #6b7280;
}

.ticket-card .ticket-meta {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.ticket-meta > div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.ticket-card .ticket-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    padding: 16px 24px;
    background: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-user {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-indicator {
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.unread-indicator::before {
    content: '🔔';
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: #333;
}

/* Ticket Stats */
.ticket-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.modal-close:hover,
.modal-close:focus {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Ticket Modal */
.ticket-modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0 !important;
}

.admin-ticket-modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
}

.ticket-detail {
    padding: 0;
}

.ticket-detail-header,
.admin-ticket-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e8e8e8;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 32px;
    border-radius: 16px 16px 0 0;
    color: white;
}

.ticket-modal-content .ticket-detail {
    padding: 0;
}

.ticket-modal-content .ticket-detail-body {
    padding: 32px;
}

.ticket-detail-title,
.admin-ticket-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
    line-height: 1.3;
}

.ticket-detail-meta,
.admin-ticket-header .ticket-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.ticket-detail-meta > div,
.admin-ticket-header .ticket-meta > span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* User Modal Badge Styling */
.ticket-modal-content .ticket-status,
.ticket-modal-content .ticket-priority {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* User Modal Status Colors */
.ticket-modal-content .ticket-status.status-open {
    background: rgba(254, 243, 199, 0.95);
    color: #92400e;
}

.ticket-modal-content .ticket-status.status-in-progress {
    background: rgba(219, 234, 254, 0.95);
    color: #1e40af;
}

.ticket-modal-content .ticket-status.status-resolved {
    background: rgba(209, 250, 229, 0.95);
    color: #065f46;
}

.ticket-modal-content .ticket-status.status-closed {
    background: rgba(243, 244, 246, 0.95);
    color: #4b5563;
}

.ticket-modal-content .ticket-status.status-waiting-user {
    background: rgba(252, 231, 243, 0.95);
    color: #9f1239;
}

/* User Modal Priority Colors */
.ticket-modal-content .ticket-priority.priority-urgent {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
}

.ticket-modal-content .ticket-priority.priority-high {
    background: rgba(254, 215, 170, 0.95);
    color: #9a3412;
}

.ticket-modal-content .ticket-priority.priority-medium {
    background: rgba(224, 231, 255, 0.95);
    color: #3730a3;
}

.ticket-modal-content .ticket-priority.priority-low {
    background: rgba(229, 231, 235, 0.95);
    color: #6b7280;
}

.ticket-detail-body {
    margin-bottom: 32px;
}

.ticket-detail-section {
    margin-bottom: 24px;
}

.ticket-detail-section h3,
.admin-ticket-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.ticket-screenshot-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.ticket-screenshot-section h4 {
    margin: 0 0 16px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.ticket-screenshot {
    max-width: 300px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Full-screen image viewer */
.screenshot-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.screenshot-fullscreen.active {
    display: flex;
}

.screenshot-fullscreen img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.screenshot-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-size: 24px;
    font-weight: 300;
}

.screenshot-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}

/* Modern Toast Notifications Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Modern Toast Notifications */
.toast-notification {
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s, margin 0.3s;
    opacity: 0;
    min-width: 300px;
    max-width: 500px;
    pointer-events: auto;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    border-left: 4px solid #10b981;
}

.toast-notification.error {
    border-left: 4px solid #ef4444;
}

.toast-notification.warning {
    border-left: 4px solid #f59e0b;
}

.toast-notification.info {
    border-left: 4px solid #3b82f6;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-notification.success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.toast-notification.error .toast-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.toast-notification.warning .toast-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.toast-notification.info .toast-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Ticket Replies */
.ticket-replies {
    margin-top: 32px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.ticket-replies h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.reply-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #e5e5e5;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.reply-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.reply-item.admin {
    background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
    border-left-color: #667eea;
}

.reply-item.admin-reply {
    background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
    border-left-color: #667eea;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.reply-author {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 14px;
}

.reply-item.admin .reply-author::before {
    content: '👨‍💼 ';
}

.reply-item.user .reply-author::before {
    content: '👤 ';
}

.reply-message {
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    font-size: 14px;
}

/* Reply Form */
.reply-form {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #e8e8e8;
}

.reply-form h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.reply-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.reply-form button {
    margin-top: 16px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.reply-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.reply-form button:active {
    transform: translateY(0);
}

/* Admin Controls */
.admin-controls {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.admin-controls h4 {
    margin-bottom: 16px;
    color: #333;
}

.admin-control-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ===== ADMIN TICKET MANAGEMENT ===== */
.admin-ticket-management {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stats .stat-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-stats .stat-card .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 4px;
}

.admin-stats .stat-card .stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.admin-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-ticket-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.admin-ticket-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.admin-ticket-card .admin-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    margin: 0;
}

.admin-ticket-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    margin: 0;
}

.admin-ticket-number {
    font-size: 11px;
    color: #667eea;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.admin-ticket-meta {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.admin-ticket-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-ticket-status.open {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.admin-ticket-status.in-progress {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.admin-ticket-status.resolved {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.admin-ticket-status.closed {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.admin-ticket-status.waiting-user {
    background: #fce7f3;
    color: #9f1239;
    border: 1px solid #fbcfe8;
}

.admin-ticket-priority {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.admin-ticket-priority.urgent {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.admin-ticket-priority.high {
    background: #fed7aa;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.admin-ticket-priority.medium {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.admin-ticket-priority.low {
    background: #e5e7eb;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.admin-ticket-info {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #6b7280;
    padding: 16px 24px;
    background: #ffffff;
}

.admin-ticket-info strong {
    color: #374151;
    font-weight: 500;
    margin-right: 6px;
}

.admin-ticket-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    padding: 16px 24px;
    background: #ffffff;
}

.admin-ticket-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.admin-ticket-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-ticket-actions .btn-reply {
    background: #667eea;
    color: white;
}

.admin-ticket-actions .btn-reply:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.admin-ticket-actions .btn-status {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.admin-ticket-actions .btn-status:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* ===== ADMIN TICKET MODAL ===== */
.admin-ticket-modal-content {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0 !important;
}

.admin-ticket-modal-content .admin-ticket-header {
    border: none;
    padding: 32px;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.admin-ticket-modal-content .admin-ticket-header h2 {
    margin: 0 0 16px 0;
    font-size: 26px;
    color: #ffffff;
    font-weight: 700;
}

.admin-ticket-modal-content .ticket-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-ticket-modal-content .ticket-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.admin-ticket-modal-content .ticket-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-ticket-modal-content .ticket-status.open {
    background: rgba(254, 243, 199, 0.95);
    color: #92400e;
}

.admin-ticket-modal-content .ticket-status.in-progress {
    background: rgba(219, 234, 254, 0.95);
    color: #1e40af;
}

.admin-ticket-modal-content .ticket-status.resolved {
    background: rgba(209, 250, 229, 0.95);
    color: #065f46;
}

.admin-ticket-modal-content .ticket-status.closed {
    background: rgba(243, 244, 246, 0.95);
    color: #4b5563;
}

.admin-ticket-modal-content .ticket-status.waiting-user {
    background: rgba(252, 231, 243, 0.95);
    color: #9f1239;
}

.admin-ticket-modal-content .ticket-priority {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.admin-ticket-modal-content .ticket-priority.urgent {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
}

.admin-ticket-modal-content .ticket-priority.high {
    background: rgba(254, 215, 170, 0.95);
    color: #9a3412;
}

.admin-ticket-modal-content .ticket-priority.medium {
    background: rgba(224, 231, 255, 0.95);
    color: #3730a3;
}

.admin-ticket-modal-content .ticket-priority.low {
    background: rgba(229, 231, 235, 0.95);
    color: #6b7280;
}

.admin-ticket-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 32px;
}

.admin-ticket-modal-content .ticket-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.admin-ticket-modal-content .info-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.admin-ticket-modal-content .info-item strong {
    color: #6b7280;
    min-width: 120px;
    font-weight: 600;
}

.admin-ticket-modal-content .info-item span {
    color: #111827;
    font-weight: 500;
}

.admin-ticket-modal-content .ticket-description {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.admin-ticket-modal-content .ticket-description h4 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.admin-ticket-modal-content .ticket-description p {
    color: #4b5563;
    line-height: 1.6;
}

.admin-ticket-modal-content .ticket-conversation {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.admin-ticket-modal-content .ticket-conversation h4 {
    margin: 0 0 16px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.ticket-replies {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fafafa;
}

.reply-item {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

.reply-item.admin {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.reply-item.user {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.reply-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.reply-message {
    line-height: 1.4;
    color: #333;
}

.admin-reply-form {
    border-top: 2px solid #e5e7eb;
    padding-top: 24px;
    margin-top: 24px;
}

.admin-reply-form h5 {
    margin: 0 0 16px 0;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.admin-reply-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
    resize: vertical;
    transition: all 0.2s;
}

.admin-reply-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.reply-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.reply-actions select {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-actions select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.reply-actions button {
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.reply-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .ticket-filters {
        flex-direction: column;
    }

    .ticket-tabs {
        flex-wrap: wrap;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ticket-info {
        grid-template-columns: 1fr;
    }

    .reply-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== NOTIFICATIONS ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    pointer-events: auto;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    cursor: pointer;
}

.notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.notification-message {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    padding: 0;
    margin: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

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

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Modern Confirmation Modal */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.2s ease;
}

.confirm-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirm-modal-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.confirm-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.confirm-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.confirm-modal-body {
    padding: 24px 32px;
}

.confirm-modal-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    text-align: center;
}

.confirm-modal-footer {
    padding: 24px 32px 32px;
    display: flex;
    gap: 12px;
}

.confirm-modal-footer button {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-confirm-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-confirm-delete:active {
    transform: translateY(0);
}

/* Prompt Input Styling */
.prompt-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.prompt-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Bulk Action Bar */
.bulk-action-bar {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    animation: slideDown 0.3s ease;
}

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

.bulk-action-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bulk-action-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.bulk-action-buttons {
    display: flex;
    gap: 12px;
}

.bulk-checkbox,
.asset-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s;
}

.bulk-checkbox:checked,
.asset-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Asset Card Selection */
.asset-card {
    position: relative;
}

.asset-select-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.asset-select-checkbox:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
}

.asset-card.selected {
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

.asset-card.selected .asset-select-checkbox {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
}

.asset-card.selected .asset-checkbox {
    opacity: 1;
}

.asset-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.asset-checkbox:hover {
    opacity: 1;
}

/* Empty State Styling */
.no-tickets-admin,
.no-tickets-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 20px;
    border: 2px dashed #e5e7eb;
    margin: 40px 0;
    animation: fadeIn 0.5s ease;
}

.no-tickets-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.no-tickets-admin h3,
.no-tickets-user h3 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.no-tickets-admin p,
.no-tickets-user p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.no-tickets-user .no-tickets-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
}
