/* Common Styles for Fixzy */

/* ===== SELECT2 CUSTOM STYLING ===== */

/* Select2 CSS is now loaded locally in layout.html */

/* Custom Select2 Container */
.select2-container {
    width: 100% !important;
}

/* Selection Box Styling */
.select2-container--default .select2-selection--multiple {
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 2px 8px;
    background-color: #fff;
    transition: all 0.15s ease-in-out;
}

.select2-container--default .select2-selection--multiple:hover {
    border-color: #86b7fe;
}

.select2-container--default .select2-selection--multiple:focus-within {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Selection Items (Tags) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 0.25rem;
    color: #1976d2;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    margin: 2px 4px 2px 0;
    display: inline-flex;
    align-items: center;
    max-width: 200px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #1976d2;
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 0.875rem;
    line-height: 1;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 50%;
    transform: translate(0%, -55%);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display{
    padding-left: 9px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #d32f2f;
    background-color: rgba(211, 47, 47, 0.1);
    border-radius: 50%;
}

/* Placeholder Text */
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #6c757d;
    font-style: italic;
    margin-left: 2px;
}

/* Search Input */
.select2-container--default .select2-search--inline .select2-search__field {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    padding: 0;
    margin: 0;
    min-width: 120px;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Dropdown Styling */
.select2-container--default .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #fff;
    z-index: 1055;
}

/* Dropdown Search */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    margin: 8px;
    width: calc(100% - 16px);
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Dropdown Options */
.select2-container--default .select2-results__option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.15s ease-in-out;
}

.select2-container--default .select2-results__option:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0d6efd;
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

/* Clear Button */
.select2-container--default .select2-selection__clear {
    color: #6c757d;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 0.25rem;
}

.select2-container--default .select2-selection__clear:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Loading State */
.select2-container--default .select2-results__option--loading {
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

/* No Results */
.select2-container--default .select2-results__option--no-results {
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* Responsive Adjustments - Moved to responsive.css */

/* Focus States */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animation for dropdown */
.select2-dropdown {
    animation: fadeInDown 0.2s ease-out;
}

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

/* Sidebar Styles - ChatGPT Style */
.sidebar {
    /* width: 260px; */
    transition: width 0.3s ease-in-out;
    overflow: visible; /* Allow tooltips and popovers to show */
    display: flex;
    flex-direction: column;
}

/* Apply collapsed state immediately on page load based on data attribute (set before body renders) */
html[data-sidebar-collapsed="true"] .sidebar {
    width: 60px !important;
}

html[data-sidebar-collapsed="true"] .content {
    margin-left: 60px !important;
}

html[data-sidebar-collapsed="true"] .sidebar-brand {
    padding: 17px 12px !important;
}

html[data-sidebar-collapsed="true"] .sidebar-nav .nav-link i {
    margin-right: 0 !important;
}

html[data-sidebar-collapsed="true"] .sidebar .brand-logo {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

html[data-sidebar-collapsed="true"] .sidebar .brand-icon {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

html[data-sidebar-collapsed="true"] .sidebar-nav .nav-link span {
    opacity: 0 !important;
    width: 0 !important;
}

.sidebar.collapsed {
    width: 60px;
}

.content {
    margin-left: 238px;
    transition: margin-left 0.3s ease-in-out;
}

.content.expanded {
    margin-left: 60px;
}

/* Disable transitions during initial page load */
body.no-transition .sidebar,
body.no-transition .content,
body.no-transition .sidebar-brand .brand-logo,
body.no-transition .sidebar-brand .brand-icon,
body.no-transition .sidebar-nav .nav-link span {
    transition: none !important;
}

/* Toggle Button Styles - Next to Logo */
.sidebar-toggle {
    background: none;
    border: none;
    color: #6c757d;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.sidebar-toggle:hover {
    background: #f8f9fa;
    color: #495057;
}

.sidebar-toggle i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

/* Brand Section */
.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 13px 12px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
}

.collapsed .sidebar-brand{
    padding: 17px 12px;
}

.collapsed .sidebar-nav .nav-link i{
    margin-right: 0;
}
.collapsed{
    z-index: 1;
}

.sidebar-brand .brand-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.sidebar-brand .brand-logo {
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    width: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: block;
}

.sidebar-brand .brand-icon {
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    width: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
}

/* Show logo when expanded, hide icon */
.sidebar:not(.collapsed) .brand-logo {
    opacity: 1;
    visibility: visible;
    display: block;
}

.sidebar:not(.collapsed) .brand-icon {
    opacity: 0;
    visibility: hidden;
    display: none;
}

/* Show icon when collapsed, hide logo */
.sidebar.collapsed .brand-logo {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.sidebar.collapsed .brand-icon {
    opacity: 1;
    visibility: visible;
    display: block;
}

.sidebar-brand .brand-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Navigation Items */
.sidebar-nav {
    padding: 0 8px;
    flex: 1;
    overflow: visible; /* Always allow tooltips to escape */
    position: relative;
}

/* Scrollable wrapper inside sidebar-nav */
.sidebar-nav-scroll {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox - hide scrollbar */
    -ms-overflow-style: none; /* IE and Edge - hide scrollbar */
}

/* Chrome, Safari, Opera - hide scrollbar */
.sidebar-nav-scroll::-webkit-scrollbar {
    display: none;
}

.sidebar-nav .nav-item {
    margin-bottom: 4px;
}

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

.sidebar-nav .nav-link:hover {
    background: #f8f9fa;
    color: #495057;
}

.sidebar-nav .nav-link.active {
    background: #e7f3ff;
    color: #0d6efd;
}

.sidebar-nav .nav-link i {
    font-size: 18px;
    margin-right: 12px;
    width: 18px;
    flex-shrink: 0;
}

.sidebar-nav .nav-link span {
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-link span {
    opacity: 0;
    width: 0;
}

/* Tooltip for collapsed state - use fixed positioning to escape scrollable container */
.sidebar.collapsed .sidebar-nav .nav-link {
    position: relative;
    --tooltip-top: 50%;
    --tooltip-left: 60px;
}

.sidebar.collapsed .sidebar-nav .nav-link::after {
    content: attr(data-tooltip);
    position: fixed;
    left: var(--tooltip-left, 60px);
    top: var(--tooltip-top, 50%);
    transform: translateY(-50%);
    background: #212529;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
    margin-left: 8px;
    pointer-events: none;
}

.sidebar.collapsed .sidebar-nav .nav-link::before {
    content: '';
    position: fixed;
    left: calc(var(--tooltip-left, 60px) - 5px);
    top: var(--tooltip-top, 50%);
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #212529;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
    pointer-events: none;
}

.sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .nav-link:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Submenu Styles */
.sidebar-nav .nav-item.has-submenu {
    position: relative;
}

/* Note: Submenu popover styles are defined below in "Submenu Popover for Collapsed Sidebar" section */

.sidebar-nav .nav-item.has-submenu .nav-link {
    cursor: pointer;
}

.sidebar-nav .nav-item.has-submenu .submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.sidebar-nav .nav-item.has-submenu .submenu {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-left: 0;
}

.sidebar-nav .nav-item.has-submenu .submenu.show {
    max-height: 200px;
    opacity: 1;
}

.sidebar-nav .nav-item.has-submenu .submenu.show .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-nav .submenu-link {
    display: flex;
    align-items: center;
    padding: 10px 12px 10px 40px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
}

.sidebar-nav .submenu-link:hover {
    background: #f8f9fa;
    color: #495057;
}

.sidebar-nav .submenu-link.active {
    background: #e7f3ff;
    color: #0d6efd;
    font-weight: 500;
}

.sidebar-nav .submenu-link i {
    font-size: 16px;
    width: 16px;
    flex-shrink: 0;
}

.sidebar-nav .submenu-link::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #6c757d;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sidebar-nav .submenu-link.active::before {
    background: #0d6efd;
    width: 6px;
    height: 6px;
}

.sidebar-nav .submenu-link:hover::before {
    background: #495057;
}

.sidebar-nav .submenu-link.active:hover::before {
    background: #0d6efd;
}

/* Collapsed sidebar submenu */
.sidebar.collapsed .nav-item.has-submenu .submenu {
    display: none !important;
}

.sidebar.collapsed .nav-item.has-submenu .submenu-arrow {
    display: none;
}

/* Submenu Popover for Collapsed Sidebar */
.submenu-popover {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateX(-10px);
}

/* When collapsed, use fixed positioning to escape scrollable container */
.sidebar.collapsed .nav-item.has-submenu {
    --submenu-top: 0;
}

.sidebar.collapsed .submenu-popover {
    position: fixed !important;
    left: 60px !important; /* Collapsed sidebar width */
    top: var(--submenu-top, 0) !important;
    transform: translateX(0) !important;
}

.submenu-popover::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #dee2e6;
}

.submenu-popover::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid white;
}

.sidebar.collapsed .nav-item.has-submenu:hover .submenu-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.submenu-popover-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.submenu-popover-header i {
    font-size: 18px;
    color: #0d6efd;
}

.submenu-popover-body {
    padding: 4px 0;
}

.submenu-popover-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.submenu-popover-link:hover {
    background: #f8f9fa;
    color: #495057;
}

.submenu-popover-link.active {
    background: #e7f3ff;
    color: #0d6efd;
    font-weight: 500;
}

.submenu-popover-link i {
    font-size: 16px;
    width: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Hide popover when sidebar is expanded */
.sidebar:not(.collapsed) .submenu-popover {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure popover doesn't interfere with expanded sidebar */
.sidebar:not(.collapsed) .nav-item.has-submenu:hover .submenu-popover {
    display: none !important;
}

/* Mobile offcanvas submenu styles */
.offcanvas-body .nav-item.has-submenu {
    position: relative;
}

.offcanvas-body .nav-item.has-submenu .nav-link {
    cursor: pointer;
}

.offcanvas-body .nav-item.has-submenu .submenu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.offcanvas-body .nav-item.has-submenu .submenu {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-left: 0;
}

.offcanvas-body .nav-item.has-submenu .submenu.show {
    max-height: 200px;
    opacity: 1;
}

.offcanvas-body .nav-item.has-submenu .submenu.show .submenu-arrow {
    transform: rotate(180deg);
}

.offcanvas-body .submenu-link {
    display: flex;
    align-items: center;
    padding: 10px 12px 10px 40px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
}

.offcanvas-body .submenu-link:hover {
    background: #f8f9fa;
    color: #495057;
}

.offcanvas-body .submenu-link.active {
    background: #e7f3ff;
    color: #0d6efd;
    font-weight: 500;
}

.offcanvas-body .submenu-link i {
    font-size: 16px;
    width: 16px;
    flex-shrink: 0;
}

.offcanvas-body .submenu-link::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #6c757d;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.offcanvas-body .submenu-link.active::before {
    background: #0d6efd;
    width: 6px;
    height: 6px;
}

/* Responsive adjustments - Moved to responsive.css */

/* Overlay for mobile when sidebar is open */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* Mobile toggle button */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
    background: #0d6efd;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: #0b5ed7;
    transform: scale(1.05);
}

/* Mobile toggle responsive - Moved to responsive.css */

/* Body adjustments */
body {
    min-height: 100vh;
}

/* Fullscreen mode adjustments */
body.fullscreen-active .content {
    margin-left: 0 !important;
}

body.fullscreen-active .sidebar {
    display: none !important;
}

body.fullscreen-active .sidebar-toggle,
body.fullscreen-active .mobile-toggle {
    display: none !important;
}

/* ===== TICKET VIEW STYLES ===== */

/* Email preview styling */
.email-preview {
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* List group item styling */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Quick Actions Styling */
.quick-actions .btn {
    transition: all 0.2s ease-in-out;
    border-width: 2px;
}

.quick-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-actions .btn.active {
    border-width: 2px;
    font-weight: 600;
}

.quick-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quick-actions .form-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quick-actions .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.quick-actions .form-select-sm {
    font-size: 0.85rem;
}

/* Status button specific styling */
.btn-outline-info.active {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: white;
}

.btn-outline-warning.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

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

.btn-outline-success.active {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.btn-outline-dark.active {
    background-color: #212529;
    border-color: #212529;
    color: white;
}

/* Thread Message Styles */
.thread-message {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.thread-message:last-child {
    border-bottom: none;
}

.thread-message.unread {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-left: 5px solid #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.thread-message.read {
    background-color: #ffffff;
    border-left: 5px solid #6c757d;
}

.thread-message.sent-by-me {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 5px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.thread-message.sent-by-me.unread {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e8 100%);
    border-left: 5px solid #28a745;
}

.thread-message:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.thread-message.unread:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9ff 100%);
}

.thread-message.sent-by-me:hover {
    background: linear-gradient(135deg, #d1ecf1 0%, #e8f5e8 100%);
}

.message-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.message-number {
    min-width: 40px;
}

.message-number .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

.sender-info {
    flex: 1;
}

.message-meta {
    text-align: right;
}

.message-content {
    margin-top: 1rem;
}

/* Email body iframe container */
.email-body-container {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 1rem;
}

.email-body-frame {
    width: 100%;
    min-height: 150px;
    max-height: 600px;
    border: none;
    display: block;
    background-color: #ffffff;
}

/* Legacy email body styles - kept for backward compatibility */
.email-body {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    background-color: #f8f9fa;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.email-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.thread-participants {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
}

.attachment-item {
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
}

.attachment-item:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Recipients styling */
.recipients-section {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
}

.recipients-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.recipients-full {
    background-color: #ffffff;
    border-radius: 0.25rem;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    margin-top: 0.5rem;
}

.recipients-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.recipients-toggle:hover {
    background-color: #6c757d;
    color: white;
}

.recipients-list .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Reply Modal Styles */
.recipients-container {
    min-height: 40px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.recipient-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 1rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: #1976d2;
    margin: 0.125rem;
}

.recipient-tag .remove-btn {
    background: none;
    border: none;
    color: #1976d2;
    margin-left: 0.5rem;
    padding: 0;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
}

.recipient-tag .remove-btn:hover {
    color: #d32f2f;
}

.recipient-tag.cc {
    background-color: #f3e5f5;
    border-color: #ce93d8;
    color: #7b1fa2;
}

.recipient-tag.cc .remove-btn {
    color: #7b1fa2;
}

.recipient-tag.cc .remove-btn:hover {
    color: #d32f2f;
}

.empty-recipients {
    color: #6c757d;
    font-style: italic;
    font-size: 0.875rem;
}

/* Message timeline indicator */
.thread-message::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #0d6efd, #6c757d);
    opacity: 0.3;
}

.thread-message.unread::before {
    background: #0d6efd;
    opacity: 1;
}

/* Responsive improvements - Moved to responsive.css */

/* Animation for new messages */
.thread-message {
    animation: slideInRight 0.4s ease-out;
}

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

/* Stagger animation for multiple messages */
.thread-message:nth-child(1) { animation-delay: 0.1s; }
.thread-message:nth-child(2) { animation-delay: 0.2s; }
.thread-message:nth-child(3) { animation-delay: 0.3s; }
.thread-message:nth-child(4) { animation-delay: 0.4s; }
.thread-message:nth-child(5) { animation-delay: 0.5s; }

/* ============================================================================
   WEBSOCKET CONNECTION STATUS INDICATOR
   ============================================================================ */

.connection-status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #28a745;
    animation: none;
}

.status-dot.disconnected {
    background: #dc3545;
    animation: none;
}

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

.status-text {
    font-weight: 500;
}

/* ===== FILE UPLOAD STYLES ===== */

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: #e7f3ff;
}

.upload-area.drag-over {
    border-color: #0d6efd;
    background-color: #e7f3ff;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-content i {
    color: #6c757d;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-content i {
    color: #0d6efd;
}

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

.upload-success,
.upload-error {
    margin-top: 1rem;
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.preview-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

.url-input-section {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive upload area - Moved to responsive.css */

/* ===== ERROR PAGE ANIMATIONS ===== */

/* Global error page animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Error page specific animations */
.error-content {
    animation: fadeInUp 0.8s ease-out;
}

.error-code {
    animation: zoomIn 1s ease-out 0.2s both;
}

.error-title {
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

.error-message {
    animation: slideInRight 0.6s ease-out 0.6s both;
}

.error-description {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.error-actions {
    animation: fadeInUp 0.6s ease-out 1s both;
}

/* Floating elements animation */
.floating-elements .floating-element {
    animation: float 3s ease-in-out infinite;
}

.floating-elements .floating-element:nth-child(1) {
    animation-delay: 0s;
}

.floating-elements .floating-element:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-elements .floating-element:nth-child(3) {
    animation-delay: 1s;
}

.floating-elements .floating-element:nth-child(4) {
    animation-delay: 1.5s;
}

/* Security elements animation */
.security-elements .security-element {
    animation: securityFloat 3s ease-in-out infinite;
}

.security-elements .security-element:nth-child(1) {
    animation-delay: 0s;
}

.security-elements .security-element:nth-child(2) {
    animation-delay: 1s;
}

.security-elements .security-element:nth-child(3) {
    animation-delay: 2s;
}

/* Warning elements animation (403 page) */
.warning-elements .warning-element {
    animation: warningFloat 3s ease-in-out infinite;
}

.warning-elements .warning-element:nth-child(1) {
    animation-delay: 0s;
}

.warning-elements .warning-element:nth-child(2) {
    animation-delay: 0.5s;
}

.warning-elements .warning-element:nth-child(3) {
    animation-delay: 1s;
}

.warning-elements .warning-element:nth-child(4) {
    animation-delay: 1.5s;
}

/* Error elements animation (500 page) */
.error-elements .error-element {
    animation: errorFloat 3s ease-in-out infinite;
}

.error-elements .error-element:nth-child(1) {
    animation-delay: 0s;
}

.error-elements .error-element:nth-child(2) {
    animation-delay: 0.5s;
}

.error-elements .error-element:nth-child(3) {
    animation-delay: 1s;
}

.error-elements .error-element:nth-child(4) {
    animation-delay: 1.5s;
}

/* Hover effects for error pages */
.error-actions .btn {
    position: relative;
    overflow: hidden;
}

.error-actions .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;
}

.error-actions .btn:hover::before {
    left: 100%;
}

/* Error page responsive animations - Moved to responsive.css */

/* Ticket Visibility Styles */
.unread-ticket {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

.unread-ticket:hover {
    background-color: #ffeaa7 !important;
}

.mark-read-btn {
    transition: all 0.2s ease;
}

.mark-read-btn:hover {
    transform: scale(1.1);
}

.mark-read-btn i {
    font-size: 1.1em;
}

/* Notification Dropdown Styles */
.notification-dropdown {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.notification-item.unread {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.notification-item.unread:hover {
    background-color: #bbdefb;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #212529;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

.notification-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.notification-icon.ticket {
    background-color: #e3f2fd;
    color: #1976d2;
}

.notification-icon.email {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.notification-icon.system {
    background-color: #e8f5e8;
    color: #388e3c;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-badge {
    animation: pulse 2s infinite;
}

#notificationBadge{
    left: 65%;
    top: 0;
}
#notificationBadgeDesktop {
    left: 87%;
    top: -9px;
}
@keyframes pulse {
    0% {
        transform: scale(.8);
    }
    50% {
        transform: scale(.9);
    }
    100% {
        transform: scale(.8);
    }
}

.notification-dropdown .dropdown-item-text {
    white-space: normal;
}

.notification-loading {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
}

.notification-error {
    text-align: center;
    padding: 1rem;
    color: #dc3545;
}

/* Notification bell animation */
.notification-bell-ring {
    animation: ring 0.5s ease-in-out;
}

@keyframes ring {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(30deg); }
    20% { transform: rotate(-28deg); }
    30% { transform: rotate(34deg); }
    40% { transform: rotate(-32deg); }
    50% { transform: rotate(30deg); }
    60% { transform: rotate(-28deg); }
    70% { transform: rotate(26deg); }
    80% { transform: rotate(-24deg); }
    90% { transform: rotate(22deg); }
    100% { transform: rotate(0deg); }
}

/* Dropdown footer styling */
.dropdown-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.dropdown-footer .btn {
    width: 100%;
    margin: 0;
}

/* Simple footer link styling */
.dropdown-footer a {
    transition: all 0.2s ease;
    padding: 0.5rem;
    display: block;
    border-radius: 0.25rem;
}

/* Notifications page styling */
.notification-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
}

.notification-item.unread {
    border-left: 3px solid #0d6efd;
}

.notification-icon.ticket {
    color: #0d6efd;
}

.notification-icon.email {
    color: #198754;
}

.notification-icon.system {
    color: #6c757d;
}

/* Dropdown notification styling */
.notification-dropdown .notification-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-dropdown .notification-item:hover {
    background-color: #f8f9fa;
    /* transform: translateX(2px); */
}

.notification-dropdown .notification-item.unread:hover {
    background-color: #e3f2fd;
}

/* Mark as read button styling */
.mark-read-btn {
    opacity: 0.7;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mark-read-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}
.mark-read-btn:hover i {
    color: #d3d3d3 !important;
}
.notification-dropdown .mark-read-btn {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.notification-dropdown .mark-read-btn:hover {
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
}

/* Responsive styles for notifications page */
.page-notifications .card {
    margin-bottom: 1rem;
}

.page-notifications .btn-group-vertical > .btn,
.page-notifications .btn-group > .btn {
    flex: 1;
}

/* Mobile responsive adjustments - Moved to responsive.css */

/* ===== FILE ATTACHMENT STYLES ===== */

/* File Upload Container */
.file-upload-container {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-container:hover {
    border-color: #0d6efd;
    background-color: #e3f2fd;
}

.file-upload-container.dragover {
    border-color: #0d6efd;
    background-color: #e3f2fd;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.file-upload-container.has-files {
    border-color: #28a745;
    background-color: #d4edda;
}

.file-upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.file-upload-container:hover .file-upload-icon {
    color: #0d6efd;
    transform: scale(1.1);
}

.file-upload-container.dragover .file-upload-icon {
    color: #0d6efd;
    transform: scale(1.2);
}

.file-upload-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.file-upload-button {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
}

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

/* File List Container */
.file-list-container {
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #ffffff;
}

.file-list-empty {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* File Item */
.file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.file-item:last-child {
    border-bottom: none;
}

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

.file-item.error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.file-item.success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.file-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #6c757d;
}

.file-icon.pdf { color: #dc3545; }
.file-icon.image { color: #28a745; }
.file-icon.document { color: #0d6efd; }
.file-icon.archive { color: #ffc107; }
.file-icon.other { color: #6c757d; }

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

.file-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-size {
    font-size: 0.75rem;
    color: #6c757d;
}

.file-progress {
    width: 100%;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background-color: #0d6efd;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    line-height: 1;
}

.file-remove-btn:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.file-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.file-status.uploading {
    background-color: #cff4fc;
    color: #055160;
}

.file-status.success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.file-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* File Upload Progress */
.upload-progress {
    margin-top: 1rem;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #28a745);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.upload-progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Responsive Design - Moved to responsive.css */

/* Animation for file addition */
@keyframes fileSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item {
    animation: fileSlideIn 0.3s ease-out;
}

/* Drag and drop visual feedback */
.file-upload-container.dragover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, #0d6efd 50%, transparent 51%);
    background-size: 20px 20px;
    animation: dragPattern 1s linear infinite;
    opacity: 0.1;
    pointer-events: none;
}

@keyframes dragPattern {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* ===== TICKET LIST TITLE LINKS ===== */

/* Clickable ticket titles */
.ticket-title-link {
    color: #0d6efd !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
}

.ticket-title-link:hover {
    color: #0b5ed7 !important;
    text-decoration: underline !important;
}

.ticket-title-link:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Ensure proper spacing for title links */
.ticket-title-cell {
    cursor: pointer;
    vertical-align: top;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.ticket-title-cell:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Attachment badge alignment */
.ticket-title-cell .badge {
    flex-shrink: 0;
    margin-top: 0.125rem;
    height: fit-content;
}

/* Description text styling */
.ticket-title-cell small.text-muted {
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
    margin-top: 0.25rem;
    display: block;
}

/* ===== STATION AND CATEGORY MODULE STYLES ===== */

/* Station and Category List Styles */
.station-row:hover,
.category-row:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.station-icon,
.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.station-row:hover .station-icon,
.category-row:hover .category-icon {
    background-color: rgba(13, 110, 253, 0.2);
    transform: scale(1.1);
}

/* Empty State Styling */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state i {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Enhancements */
.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 0 1.5rem 1.5rem;
}

/* Form Enhancements */
.form-label.fw-semibold {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Button Enhancements */
.btn-group .btn {
    border-radius: 0.375rem;
    margin: 0 2px;
}

.btn-group .btn:first-child {
    margin-left: 0;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

.btn-outline-primary:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Header Enhancements */
.card-header.bg-white {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
}

.card-title {
    font-weight: 600;
    color: #495057;
}

/* Badge Enhancements */
.badge.fs-6 {
    font-size: 0.875rem !important;
    padding: 0.5em 0.75em;
}

/* Search Form Enhancements */
.form-control-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive Adjustments - Moved to responsive.css */

/* Animation for table rows */
.station-row,
.category-row {
    animation: fadeInUp 0.3s ease-out;
}

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

/* Stagger animation for multiple rows */
.station-row:nth-child(1) { animation-delay: 0.05s; }
.station-row:nth-child(2) { animation-delay: 0.1s; }
.station-row:nth-child(3) { animation-delay: 0.15s; }
.station-row:nth-child(4) { animation-delay: 0.2s; }
.station-row:nth-child(5) { animation-delay: 0.25s; }

.category-row:nth-child(1) { animation-delay: 0.05s; }
.category-row:nth-child(2) { animation-delay: 0.1s; }
.category-row:nth-child(3) { animation-delay: 0.15s; }
.category-row:nth-child(4) { animation-delay: 0.2s; }
.category-row:nth-child(5) { animation-delay: 0.25s; }

/* ===== CUSTOM SCROLLBAR STYLING ===== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Notification dropdown specific scrollbar */
.notification-dropdown::-webkit-scrollbar {
    width: 3px;
}

.notification-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.notification-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 1.5px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Table scrollbars */
.table-responsive::-webkit-scrollbar {
    height: 3px;
}

.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 1.5px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Modal scrollbars */
.modal-body::-webkit-scrollbar {
    width: 3px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1.5px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* File list scrollbars */
.file-list-container::-webkit-scrollbar {
    width: 3px;
}

.file-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.file-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 1.5px;
}

.file-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Email body container scrollbars */
.email-body-container::-webkit-scrollbar {
    width: 3px;
}

.email-body-container::-webkit-scrollbar-track {
    background: transparent;
}

.email-body-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1.5px;
}

.email-body-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Email body scrollbars - legacy */
.email-body::-webkit-scrollbar {
    width: 3px;
}

.email-body::-webkit-scrollbar-track {
    background: transparent;
}

.email-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1.5px;
}

.email-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Sidebar scrollbars - Very slim scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 2px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1px;
    transition: background 0.2s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

/* Card scrollbars */
.card::-webkit-scrollbar {
    width: 3px;
}

.card::-webkit-scrollbar-track {
    background: transparent;
}

.card::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1.5px;
}

.card::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Form scrollbars */
.form-control::-webkit-scrollbar {
    width: 2px;
}

.form-control::-webkit-scrollbar-track {
    background: transparent;
}

.form-control::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1px;
}

.form-control::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Dropdown scrollbars */
.dropdown-menu::-webkit-scrollbar {
    width: 3px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1.5px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ===== TICKET LIST MOBILE TABLE LAYOUT ===== */

/* Disable fixed table layout on mobile/tablet - Moved to responsive.css */

/* ===== MOBILE NAVBAR STYLING ===== */

/* Mobile navbar toggle button styling */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: none;
    color: #495057;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.navbar-toggler:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 0.375rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Mobile navbar brand spacing - Moved to responsive.css */

/* Notification dropdown mobile alignment - Moved to responsive.css */
/* Tablet specific adjustments - Moved to responsive.css */
/* Small mobile adjustments - Moved to responsive.css */
/* Mobile notification dropdown backdrop and interaction improvements - Moved to responsive.css */

/* Offcanvas sidebar styling */
.offcanvas-start {
    width: 280px;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.offcanvas-title {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.offcanvas-body {
    padding: 1rem 0;
}

.offcanvas-body .nav-link {
    padding: 0.75rem 1.5rem;
    color: #495057;
    border-radius: 0;
    transition: all 0.2s ease;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.offcanvas-body .nav-link.active {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    font-weight: 500;
}

.offcanvas-body .nav-link i {
    width: 20px;
    text-align: center;
}

/* Desktop sidebar hide on mobile - Moved to responsive.css */


/* ===== USER PROFILE STYLES ===== */

/* User avatar styling */
.user-avatar-large {
    width: 120px;
    height: 120px;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* Product logo styling */
.product-logo-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Product assignment link styling */
.product-assignment-link {
    transition: all 0.2s ease-in-out;
}

.product-assignment-link:hover {
    color: #0d6efd !important;
    transform: translateX(2px);
}

/* General product logo styling */
.product-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* General user avatar styling */
.user-avatar {
    width: 40px;
    height: 40px;
}

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

.user-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.swiper{
    background-color: #00000040;
    backdrop-filter: blur(3px);
    border-radius: 10px;
}

.swiper-slide{
    background-color: transparent !important;
    height: auto !important;
}
#imageCarouselModal{
    /*background-color: rebeccapurple;*/
    --bs-modal-bg: none;
}

.col-reporter{
    width:15%
}
.col-title{
    width: 25%;
}

.jodit-wysiwyg p {
    font-size: 12pt;
    line-height: 13pt;
    margin-bottom: 6pt;
    margin-top: 0pt;
    font-family: Arial, sans-serif;
}