/* Chat Attachment Image */
.chat-attachment-img {
    width: 60px; 
    height: 60px; 
    object-fit: cover;
}

/* Chat Check Icon */
.chat-check-icon {
    position: absolute; 
    top: -5px; 
    right: -5px; 
    background: white; 
    border-radius: 50%;
}

/* Preview Image */
.preview-img {
    width: 100px; 
    height: 100px; 
    object-fit: cover;
}

/* Preview Remove Button */
.preview-remove-btn {
    position: absolute; 
    top: -8px; 
    right: -8px;
}

/* Admin Chat Avatar */
.admin-chat-avatar {
    width: 40px; 
    height: 40px; 
    object-fit: cover;
}

/* User Chat Avatar */
.user-chat-avatar {
    width: 16px; 
    height: 16px; 
    line-height: 1; 
    font-size: 10px;
}

/* Ticket Management */
.ticket-subject-cell {
    max-width: 300px;
}

.avatar-sm-wrapper {
    width: 32px; 
    height: 32px; 
    overflow: hidden;
}

.fs-0-75rem {
    font-size: 0.75rem;
}

.avatar-xs-wrapper {
    width: 24px; 
    height: 24px;
}

.assignee-name-truncate {
    max-width: 80px;
}

/* User Management */
.stats-label {
    font-size: 0.7rem;
}

/* Dashboard */
.status-chart-wrapper {
    width: 100%;
    max-width: 280px;
}

/* Ticket Show */
.back-btn-circle {
    width: 32px; 
    height: 32px;
}

.message-card-width {
    max-width: 85%;
}

/* Utilities */
.text-pre-wrap {
    white-space: pre-wrap;
}

.fs-0-5rem {
    font-size: 0.5rem;
}

/* Page Loader */
[x-cloak] { display: none !important; }
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Spinner Loader */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Categories Index */
.search-group-width {
    min-width: 250px;
}

/* Admin Dashboard Layout */
@media (min-width: 768px) {
    .sidebar.sidebar-collapsed {
        width: 80px;
    }

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

    .sidebar.sidebar-collapsed .sidebar-brand span,
    .sidebar.sidebar-collapsed .sidebar-section-header,
    .sidebar.sidebar-collapsed .nav-link span:not(.chevron-icon-sm),
    .sidebar.sidebar-collapsed .collapse,
    .sidebar.sidebar-collapsed .chevron-icon-sm,
    .sidebar.sidebar-collapsed .fa-chevron-down {
        display: none !important;
    }

    .sidebar.sidebar-collapsed .nav-link {
        text-align: center;
        padding-left: 0;
        padding-right: 0;
        justify-content: center !important;
    }

    .sidebar.sidebar-collapsed .nav-link i {
        margin-right: 0 !important;
        font-size: 1.2rem;
    }
    
    .sidebar.sidebar-collapsed .sidebar-header {
        padding: 0;
        justify-content: center;
        display: flex;
    }
    
    .sidebar.sidebar-collapsed .admin-logo-img {
        display: none;
    }
    
    .sidebar.sidebar-collapsed .sidebar-footer {
        padding: 10px;
        display: flex;
        justify-content: center;
    }
}

/* Utilities */
.object-fit-cover {
    object-fit: cover;
}

.h-32px {
    height: 32px;
}

.z-toast {
    z-index: 10000 !important;
}

.toast-custom-width {
    width: 420px;
    max-width: calc(100vw - 2rem);
    min-width: auto;
}

.toast-fix {
    position: fixed !important;
    z-index: 9999 !important;
    top: 90px !important; /* navbar height clear */
    right: 20px !important;
    left: auto !important;
    max-width: calc(100vw - 40px);
}

/* Mobile fix */
@media (max-width: 768px) {
    .toast-fix {
        right: 16px !important;
        left: 16px !important;
        top: 80px !important;
        max-width: unset;
    }
}

/* Settings Page */
.logo-preview-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 0.25rem;
    overflow: hidden;
}

/* New Hero Section Styles - Light Theme */
.hero-section-theme {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
    color: #1e293b;
}

.hero-pattern {
    background-image: radial-gradient(#4f46e5 0.75px, transparent 0.75px);
    background-size: 30px 30px;
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btn-primary {
    background-color: #4338ca; /* Indigo-700 */
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.hero-btn-primary:hover {
    background-color: #3730a3; /* Indigo-800 */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.hero-btn-secondary {
    background-color: white;
    color: #4f46e5;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.hero-btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
