* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Sidebar for Filters */
.sidebar {
    width: 350px;
    min-width: 250px;
    max-width: 600px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    z-index: 1000;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    resize: horizontal;
    user-select: none;
}

.sidebar.collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    resize: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 15px 5px;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-right: 2px solid #3498db;
}

.sidebar.collapsed .sidebar-header h2 {
    display: none;
}

.sidebar.collapsed .sidebar-toggle {
    font-size: 18px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.sidebar.collapsed .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

.sidebar.collapsed .filters-content {
    display: none;
}

.sidebar.collapsed .search-controls {
    display: none;
}

.sidebar.collapsed .search-button-container {
    display: none;
}

.sidebar.collapsed .sidebar-resize-handle {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Resize handle for sidebar */
.sidebar-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: transparent;
    cursor: ew-resize;
    z-index: 1002;
    transition: background-color 0.2s ease;
}

.sidebar-resize-handle:hover {
    background: rgba(52, 152, 219, 0.3);
}

.sidebar-resize-handle:active {
    background: rgba(52, 152, 219, 0.5);
}

/* Visual indicator for resize handle */
.sidebar-resize-handle::before {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: #dee2e6;
    transition: background-color 0.2s ease;
}

.sidebar-resize-handle:hover::before {
    background: #3498db;
}

/* Sidebar resizing state */
.sidebar.resizing {
    transition: none !important;
}

.main-content.resizing {
    transition: none !important;
}

/* Disable text selection during resize */
.no-select {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 350px;
    transition: margin-left 0.3s ease;
    background: white;
    min-height: 100vh;
}

.main-content.sidebar-collapsed {
    margin-left: 60px;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 12px 30px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 60px; /* Match sidebar header height */
}

.beta-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    flex-shrink: 0;
    margin-right: 10px;
}

.logo {
    max-height: 40px;
    max-width: 200px;
    height: auto;
    width: auto;
    filter: brightness(1.1);
    flex-shrink: 0;
}

.header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    flex-shrink: 1;
}

.filters {
    padding: 15px;
}

.filters-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.full-width-filters {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 20px;
}

.full-width-filter {
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 13px;
    display: block;
}

.filter-group input, .filter-group select {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

/* Compact filter inputs - for rating and year fields */
.filter-group.compact input, .filter-group.compact select {
    padding: 6px 8px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.filter-group input:focus, .filter-group select:focus,
.filter-group.compact input:focus, .filter-group.compact select:focus {
    outline: none;
    border-color: #3498db;
}

/* Date range container styles */
.date-range-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-label {
    font-weight: 500;
    margin-bottom: 3px;
    color: #34495e;
    font-size: 13px;
    white-space: nowrap;
}

.date-input-group input[type="date"] {
    padding: 6px 25px 6px 8px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s ease;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.date-input-group input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
}

.clear-date-btn {
    position: absolute;
    right: 4px;
    background: none;
    border: none;
    font-size: 14px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    z-index: 1;
    line-height: 1;
}

.clear-date-btn:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Input wrapper and clear button for regular inputs */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    padding-right: 25px !important;
    flex: 1;
}

.clear-input-btn {
    position: absolute;
    right: 4px;
    background: none;
    border: none;
    font-size: 14px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    z-index: 1;
    line-height: 1;
}

.clear-input-btn:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.filter-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #ffffff;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #e9ecef;
}

.filter-header:hover {
    background: #e9ecef;
}

.filter-title {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.filter-selection-label {
    font-size: 12px;
    color: #6c757d;
    margin-left: 8px;
    padding: 2px 6px;
    background: #e9ecef;
    border-radius: 12px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.filter-selection-label.has-selections {
    background: #d1ecf1;
    color: #0c5460;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #666;
}

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

.select-buttons {
    display: flex;
    gap: 5px;
}

.select-btn {
    padding: 2px 8px;
    font-size: 11px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.select-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.select-btn.active-all {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.select-btn.active-all:hover {
    background: #218838;
    border-color: #1e7e34;
}

.select-btn.active-none {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.select-btn.active-none:hover {
    background: #c82333;
    border-color: #bd2130;
}

.select-btn.active-clear {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.select-btn.active-clear:hover {
    background: #e0a800;
    border-color: #d39e00;
}

.filter-content {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.filter-content.collapsed {
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
}

/* Sidebar filters header */
.sidebar-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Sidebar filters panel styles */
.filters-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.filters-main-header {
    display: none; /* Hide the old collapsible header since sidebar is always visible */
}

.filters-main-toggle {
    display: none;
}

.filters-content {
    flex: 1;
    overflow-y: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: none;
}

.filters-content.collapsed {
    max-height: none;
    padding: 0;
    overflow-y: auto;
}

.filter-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}

.filter-search:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.full-width-filter .checkbox-group {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-item label {
    font-size: 14px;
    cursor: pointer;
    flex: 1;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.full-width-filter .tag-cloud {
    max-height: 150px;
    gap: 8px;
}

.tag-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    user-select: none;
    white-space: nowrap;
}

.tag-item:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.tag-item.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.tag-item.selected:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.tag-item .count {
    margin-left: 6px;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.tag-item.selected .count {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.tag-item input[type="checkbox"] {
    display: none;
}

.search-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

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

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

.results-section {
    padding: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    font-size: 16px;
    color: #2c3e50;
}

.sort-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-controls select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    table-layout: auto;
}

/* Title column sizing */
th:first-child,
td:first-child {
    width: auto;
    max-width: 300px;
    min-width: 150px;
}

th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

th.sorted::after {
    content: ' ▲';
    font-size: 12px;
}

th.sorted.desc::after {
    content: ' ▼';
}

td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

tr:hover {
    background: #f8f9fa;
}

.title-link {
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.title-link:hover {
    color: #3498db !important;
    text-decoration: underline !important;
}

.movie-thumbnail {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #333333;
    background: #222222;
    transition: transform 0.2s ease;
    margin-top: 8px;
    cursor: pointer;
    position: relative;
}

.movie-thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.thumbnail-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    border: 2px solid #FFCC00;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    min-width: 400px;
    min-height: 225px;
    max-width: 80vw;
    max-height: 80vh;
}

.thumbnail-container:hover .thumbnail-overlay {
    opacity: 1;
    visibility: visible;
}

.thumbnail-overlay img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    object-fit: contain;
}

.title-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title-content {
    width: 100%;
}

.parental-rating {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.parental-rating:hover {
    opacity: 0.8;
}

.parental-rating.all {
    background: #27ae60;
}

.parental-rating.ten {
    background: #3498db; /* Blue for 10+ */
}

.parental-rating.twelve {
    background: #f39c12; /* Orange for 12+ */
}

.parental-rating.mature {
    background: #e74c3c; /* Red for 16+ and above */
}

.channel {
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 12px;
    font-weight: 500;
    background: #3498db; /* Default blue */
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.channel:hover {
    opacity: 0.8;
}

/* Specific channel colors */
.channel.canal {
    background: #000000; /* Black for CANAL+ */
}

.channel.cine-ocs {
    background: #ff8c00; /* Orange for CINE+OCS */
}

.channel.france5 {
    background: #27ae60; /* Green for France 5 */
}

.channel.arte {
    background: #ffb366; /* Light orange for arte */
}

.channel.france-tv {
    background: #ff6b6b; /* Light red for france-tv */
}

.channel.hbo-max {
    background: #6c757d; /* Grey for HBO MAX */
}

.channel.six-ter {
    background: #ff69b4; /* Pink for 6TER */
}

.channel.rtl9 {
    background: #8a2be2; /* Violet for RTL9 */
}

.channel.m6 {
    background: #8b0000; /* Dark red for M6 */
}

/* Availability date highlighting */
.availability-date {
    padding: 3px 0px;
    border-radius: 4px;
    font-weight: 500;
}

.availability-date.expires-soon {
    background: #ff8c00; /* Orange for less than 1 week */
    color: white;
}

.availability-date.expires-very-soon {
    background: #e74c3c; /* Red for less than 2 days */
    color: white;
}

/* Upload date styling */
.upload-date {
    padding: 3px 0px;
    border-radius: 4px;
    font-weight: 500;
}

.reviews {
    max-width: 300px;
}

/* Collapsible reviews styling */
.reviews-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.reviews-toggle {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.reviews-toggle.expanded {
    transform: rotate(90deg);
}

.reviews-details {
    display: none;
}

.reviews-details.expanded {
    display: block;
}

/* Highlight matched search terms */
.highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Hide/Ignore button styling */
.hide-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.hide-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* To Watch button styling */
.watch-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watch-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.watch-btn.marked {
    background: #ffc107;
    color: #212529;
}

.watch-btn.marked:hover {
    background: #e0a800;
}

.hidden-content {
    opacity: 0.5;
    background-color: #f8f8f8 !important;
}

.actions-column {
    width: 160px;
    text-align: center;
}

.external-link-icon {
    display: inline-block;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.05);
}

.external-link-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.review-item {
    margin-bottom: 8px;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
}

.review-rating {
    font-weight: bold;
    color: #f39c12;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width-filter .checkbox-group {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-controls {
        justify-content: center;
    }
    
    th, td {
        padding: 8px 6px;
        font-size: 13px;
    }
}

/* Summary and details columns styling */
.summary, .details {
    max-width: 250px;
    word-wrap: break-word;
    white-space: normal;
}

.summary-text {
    font-size: 12px;
}

.details-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    word-wrap: break-word;
    white-space: normal;
}

.details-container > div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.details-container .channel,
.details-container .parental-rating {
    display: inline-block;
    width: fit-content;
    flex-shrink: 0;
}

.content-type {
    color: #e67e22;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.2s ease;
}

.content-type:hover {
    color: #3498db;
    text-decoration-style: solid;
}

.video-quality {
    color: #2980b9;
}

.director {
    color: #8e44ad;
}

.clickable-director,
.clickable-actors,
.clickable-individual-actor,
.clickable-year,
.clickable-availability {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: color 0.2s ease;
}

.clickable-director:hover,
.clickable-actors:hover,
.clickable-individual-actor:hover,
.clickable-year:hover,
.clickable-availability:hover {
    color: #3498db;
    text-decoration-style: solid;
}

.actors {
    color: #27ae60;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.2; /* Tighter line spacing */
}

.actors strong {
    font-size: 12px; /* Restore font size for the icon */
}

.actors .clickable-individual-actor {
    font-size: 12px; /* Restore normal font size for actor spans */
    display: inline-block; /* Use inline-block for better control */
    margin: 0 0px 0px 0; /* Small right margin and tiny bottom margin for spacing */
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        transform: translateX(-100%);
        resize: none;
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        right: -50px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .sidebar-resize-handle {
        display: none;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 0 !important;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}