/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Login container */
.login-container {
    width: 100%;
    height: 100vh;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Login form */
.login-form {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    width: 100%;
    max-width: 480px;
}

/* Login title */
.login-title {
    color: white;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

/* Form groups */
.form-group {
    margin-bottom: 25px;
}

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

/* Input fields */
.form-group input {
    width: 100%;
    padding: 16px 20px;
    background-color: #242424;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Override browser autofill styles */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #242424 inset !important;
    -webkit-text-fill-color: white !important;
    background-color: #242424 !important;
    border: 3px solid #4c6ef5 !important;
}

.form-group input::placeholder {
    color: #888;
}

.form-group input:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.2);
}

/* Password input container */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #4c6ef5;
}

.password-toggle i {
    font-size: 14px;
}

/* Login button */
.login-button {
    width: 100%;
    padding: 18px;
    background-color: #4d6bfe;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 25px;
}

.login-button:hover {
    background-color: #3d5bfe;
    transform: translateY(-1px);
}

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

/* Forgot password */
.forgot-password {
    text-align: center;
}

.forgot-link {
    color: #4d6bfe;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #3d5bfe;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .login-form {
        padding: 30px 20px;
        border-radius: 8px;
    }
    
    .login-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .form-group input {
        padding: 10px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .login-button {
        padding: 12px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .login-form {
        padding: 25px 15px;
    }
    
    .login-title {
        font-size: 22px;
    }
}

/* Focus states for accessibility */
.form-group input:focus-visible {
    outline: none;
}

.login-button:focus-visible {
    outline: 2px solid #4c6ef5;
    outline-offset: 2px;
}

.forgot-link:focus-visible {
    outline: 2px solid #4c6ef5;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Loading state */
.login-button:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
}

.login-button:disabled:hover {
    background-color: #666;
    transform: none;
}

/* Landing Page Styles */
/* Global Header Elements */
.back-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #351b1b;
    border: 3px solid #fe4d6b;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #A00000;
    transform: scale(1.05);
}

.page-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 30px;
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(76, 110, 245, 0.1);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #ccc;
}

.dropdown-item:hover i {
    color: #4c6ef5;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.refresh-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.refresh-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.refresh-button i {
    font-size: 16px;
}

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

.refresh-button.loading i {
    animation: spin 1s linear infinite;
}

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

/* Global Header (reuse landing header styles) */
.global-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background-color: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100vw;
    box-sizing: border-box;
    margin: 0;
    position: fixed;
    top: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 1000;
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 80px;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: #2a2a2a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

/* Action cards with buttons - use column layout */
.summary-card:has(.card-button) {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    min-height: 180px;
}

.summary-card:has(.card-button) .card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.summary-card:has(.card-button) .card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.card-icon.total {
    background-color: #ffd700;
}

.card-icon.open {
    background-color: #ff8c00;
}

.card-icon.pending {
    background-color: #4c6ef5;
}

.card-icon.closed {
    background-color: #28a745;
}

/* Action Card Icon Colors */
.card-icon.export {
    background-color: #4CAF50;
}

.card-icon.backup {
    background-color: #2196F3;
}

.card-icon.danger {
    background-color: #f44336;
}

.card-icon.recovery {
    background-color: #FF9800;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Card Button Styles */
.summary-card .card-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.summary-card .card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.summary-card .card-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.summary-card .card-button i {
    font-size: 16px;
}

/* Danger Card Styling */
.summary-card.danger-card {
    border: 3px solid rgba(244, 67, 54, 0.3);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
}

.summary-card.danger-card:hover {
    border-color: rgba(244, 67, 54, 0.5);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.2);
}

.summary-card .danger-button {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.summary-card .danger-button:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.summary-card .danger-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.card-number {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.card-label {
    color: #ccc;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

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

.filter-select {
    background-color: #2a2a2a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #4c6ef5;
}

.filter-select option {
    background-color: #2a2a2a;
    color: white;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    background-color: #2a2a2a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    min-width: 250px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4c6ef5;
}

.search-input::placeholder {
    color: #888;
}

.search-button {
    background-color: #4c6ef5;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #3d5bfe;
}

/* Tickets Table */
.tickets-table-container {
    background-color: #2a2a2a;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    /* Prevent scrollbar from shimmer animation */
    contain: layout style paint;
    /* Hide scrollbar when content fits */
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a #1a1a1a;
    /* Ensure no horizontal scrollbar from animations */
    max-width: 100%;
    box-sizing: border-box;
}

/* Hide scrollbar when not needed, style when visible */
.tickets-table-container::-webkit-scrollbar {
    height: 8px;
}

.tickets-table-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.tickets-table-container::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tickets-table-container::-webkit-scrollbar-thumb:hover {
    background: #333;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    position: relative;
    /* Prevent layout shifts */
    table-layout: auto;
    overflow: hidden;
    /* Ensure no spacing between cells */
    border-spacing: 0;
}

.tickets-table th {
    background-color: #3a3a3a;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    vertical-align: middle;
}

.tickets-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    /* Ensure consistent alignment - no layout shift */
    vertical-align: middle;
    box-sizing: border-box;
    position: relative;
}

.ticket-row:hover {
    background-color: rgb(3 3 3 / 10%);
}

.ticket-id {
    font-weight: 600;
    color: #828282;
}

.company {
    font-weight: 500;
}

.department {
    color: #ccc;
}

.subject {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date {
    color: #ccc;
    font-size: 13px;
}

.time {
    color: #ccc;
    font-size: 13px;
}

/* Status and Priority Badges */
.status-badge, .priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.new {
    background: rgba(231, 76, 60, 0.15) !important;
    color: rgb(231, 76, 60);
}

.status-badge.in-progress {
    background: rgba(41, 128, 185, 0.15) !important;
    color: rgb(41, 128, 185);
}

.status-badge.pending {
    background: rgba(231, 76, 60, 0.15) !important;
    color: rgb(231, 76, 60);
}

.status-badge.resolved {
    background: rgba(26, 188, 156, 0.15) !important;
    color: rgb(26, 188, 156);
}

.status-badge.closed {
    background: rgba(149, 165, 166, 0.15) !important;
    color: rgb(149, 165, 166);
}

.priority-badge.minimal {
    background: rgba(46, 204, 113, 0.15) !important;
    color: rgb(46, 204, 113);
}

.priority-badge.minor {
    background: rgba(241, 196, 15, 0.15) !important;
    color: rgb(241, 196, 15);
}

.priority-badge.major {
    background: rgba(231, 76, 60, 0.15) !important;
    color: rgb(231, 76, 60);
}

/* Priority Badge Colors - Updated to match screenshot */
.priority-badge.critical {
    background: rgba(220, 53, 69, 0.25) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3);
    font-weight: 600;
}

.priority-badge.high {
    background: rgba(253, 126, 20, 0.25) !important;
    color: #fd7e14 !important;
    border: 1px solid rgba(253, 126, 20, 0.3);
    font-weight: 600;
}

.priority-badge.medium {
    background: rgba(255, 193, 7, 0.25) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-weight: 600;
}

.priority-badge.low {
    background: rgba(40, 167, 69, 0.25) !important;
    color: #28a745 !important;
    border: 1px solid rgba(40, 167, 69, 0.3);
    font-weight: 600;
}

/* Legacy priority badges for backward compatibility - Updated styling */
.priority-badge.minimal {
    background: rgba(40, 167, 69, 0.25) !important;
    color: #28a745 !important;
    border: 1px solid rgba(40, 167, 69, 0.3);
    font-weight: 600;
}

.priority-badge.minor {
    background: rgba(255, 193, 7, 0.25) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-weight: 600;
}

.priority-badge.major {
    background: rgba(220, 53, 69, 0.25) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3);
    font-weight: 600;
}

.priority-badge.orange {
    background: rgba(253, 126, 20, 0.25) !important;
    color: #fd7e14 !important;
    border: 1px solid rgba(253, 126, 20, 0.3);
    font-weight: 600;
}

.priority-badge.grey {
    background: rgba(149, 165, 166, 0.25) !important;
    color: rgb(149, 165, 166) !important;
    border: 1px solid rgba(149, 165, 166, 0.3);
    font-weight: 600;
}

/* Blank Priority Badge */
.priority-badge.blank,
.priority-badge.- {
    background: rgba(108, 117, 125, 0.25) !important;
    color: #6c757d !important;
    border: 1px solid rgba(108, 117, 125, 0.3);
    font-weight: 600;
}

.track-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.track-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design for Dashboard */
@media (max-width: 1024px) {
    .summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls {
        justify-content: center;
    }
    
    .search-section {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 20px;
        margin-top: 70px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .card-number {
        font-size: 28px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-select {
        min-width: 100%;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    .tickets-table-container {
        overflow-x: auto;
    }
    
    .tickets-table {
        min-width: 800px;
    }
}

/* Users Management Page Styles */

/* Department Management Styles */
.department-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0 10px 0;
}

.btn-select-all,
.btn-clear-all {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-select-all:hover {
    background-color: #218838;
}

.btn-clear-all {
    background-color: #dc3545;
    color: white;
}

.btn-clear-all:hover {
    background-color: #c82333;
}

.form-help {
    color: #6c757d;
    font-size: 12px;
    margin: 5px 0 10px 0;
    font-style: italic;
}

.department-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    font-size: 14px;
    color: white;
}

.checkbox-label:hover {
    background: transparent;
    color: #007bff;
}

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

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #666;
    border-radius: 3px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.departments-display {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.department-tag {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.departments-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.department-badge {
    background: #464646;
    color: #b1b1b1;
    border: 1px solid rgb(255 255 255 / 26%);
    border-radius: 110px;
    font-size: 7px;
    padding: 4px 6px;
    font-weight: 500;
    white-space: nowrap;
}

.manage-departments-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.manage-departments-btn:hover {
    background: #218838;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    border-left: 4px solid #28a745;
}

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

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 18px;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-info .notification-content i {
    color: #17a2b8;
}

.notification-content span {
    font-weight: 500;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

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

/* User Actions Modal Layout */
.user-actions-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-department-section {
    margin-top: 16px;
}

.main-department-section .department-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-align: left;
}

.department-select {
    width: 93%;
    padding: 10px 12px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.department-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.department-select:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.2);
}

.department-select option {
    background: #1e1e1e;
    color: white;
}

.department-assignment-section {
    flex: 1;
    padding: 0;
}

.department-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.department-checkboxes-compact {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    max-height: none;
    overflow: visible;
}

.checkbox-label-compact {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 9px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkbox-label-compact:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-label-compact input[type="checkbox"] {
    display: none;
}

.checkmark-compact {
    width: 12px;
    height: 12px;
    border: 2px solid #666;
    border-radius: 3px;
    margin-right: 6px;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
    flex-shrink: 0;
}

.checkbox-label-compact input[type="checkbox"]:checked + .checkmark-compact {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-label-compact input[type="checkbox"]:checked + .checkmark-compact::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: white;
    font-size: 9px;
    font-weight: bold;
}

/* Users Management Modal Specific Styles */
#addUserModal .modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

#addUserModal .modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: calc(85vh - 140px); /* Account for header and footer */
}

#addUserModal .modal-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: #2a2a2a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Filter controls with Add User button */
.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls .add-user-button {
    margin-left: auto;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-controls .add-user-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.filter-controls .add-user-button i {
    font-size: 12px;
}
.add-user-button {
    background: #007bff;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.add-user-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.add-user-button i {
    font-size: 12px;
}

/* User Table Styles */
.user-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-row:hover {
    background-color: rgb(3 3 3 / 10%);
}

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

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    color: white;
}

.user-email {
    color: #828282;
    font-size: 14px;
}

.user-department {
    color: white;
    font-weight: 500;
}

.last-login, .created-date {
    color: #828282;
    font-size: 14px;
}

/* Role Badges */
.role-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background: rgba(220, 53, 69, 0.25);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.role-badge.manager {
    background: rgba(253, 126, 20, 0.25);
    color: #fd7e14;
    border: 1px solid rgba(253, 126, 20, 0.3);
}

.role-badge.user {
    background: rgba(40, 167, 69, 0.25);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.role-badge.viewer {
    background: rgba(108, 117, 125, 0.25);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(40, 167, 69, 0.25);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.inactive {
    background: rgba(108, 117, 125, 0.25);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-badge.suspended {
    background: rgba(220, 53, 69, 0.25);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Action Button */
.action-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #2a2a2a;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-close {
    background: none;
    border: none;
    color: #828282;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

.form-help {
    color: #828282;
    font-size: 12px;
    margin-top: 4px;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* User Info Card */
.user-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #1e1e1e;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.user-details-large h3 {
    color: white;
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.user-details-large .user-email {
    color: #828282;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.user-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.user-details-large .user-department {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.reset-password-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.change-role-btn:hover {
    border-color: #fd7e14;
    color: #fd7e14;
}

.toggle-status-btn:hover {
    border-color: #28a745;
    color: #28a745;
}

.delete-user-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* Settings Page Styles */
.settings-container {
    min-height: 100vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Settings Main Content */
.settings-main {
    flex: 1;
    padding: 40px 30px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 80px;
}

/* Settings Cards */
.settings-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.settings-card {
    background-color: #2a2a2a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: #4c6ef53d;
    border-color: #4c6ef5;
}

.settings-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #4c6ef5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.settings-card .card-content {
    text-align: center;
}

.settings-card .card-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.settings-card .card-description {
    color: #ccc;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design for Settings */
@media (max-width: 1024px) {
    .settings-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .settings-main {
        padding: 30px 20px;
        margin-top: 70px;
    }
    
    .settings-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .settings-card {
        padding: 25px 20px;
    }
    
    .settings-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .settings-card .card-title {
        font-size: 18px;
    }
}

/* Journey Setup Page Styles */
.journey-container {
    min-height: 100vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Journey Main Content */
.journey-main {
    flex: 1;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 80px);
}

/* Journey Toolbar */
.journey-toolbar {
    background-color: #2a2a2a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
}

/* Element Blocks */
.element-blocks {
    display: flex;
    flex-direction: row;
    gap: 15px;
    min-width: 200px;
    flex-wrap: wrap;
}

.element-block {
    background-color: #242424;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: grab;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.element-block:hover {
    border-color: #4c6ef5;
    background-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.2);
}

.element-block:active {
    cursor: grabbing;
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(76, 110, 245, 0.3);
}

.block-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}


.form-icon {
    background-color: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.projects-icon {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.category-icon {
    background-color: rgba(76, 110, 245, 0.2);
    color: #4c6ef5;
}

.service-icon {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.ticket-icon {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.integrations-icon {
    background-color: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.block-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.block-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.block-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    line-height: 1.2;
}

.toolbar-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.toolbar-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.toolbar-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-btn {
    background-color: #3a3a3a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.toolbar-btn:hover {
    background-color: #4c6ef53d;
    border-color: #4c6ef5;
    transform: translateY(-1px);
}

.toolbar-btn i {
    font-size: 16px;
}

/* Actions Dropdown Styles */
.actions-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
}

.actions-dropdown-btn {
    background-color: #3a3a3a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
}

.actions-dropdown-btn:hover {
    background-color: #4c6ef53d;
    border-color: #4c6ef5;
    transform: translateY(-1px);
}

.actions-dropdown-btn i {
    font-size: 16px;
}

.actions-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.actions-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.action-item {
    background: none;
    border: none;
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.action-item:first-child {
    border-radius: 6px 6px 0 0;
}

.action-item:last-child {
    border-radius: 0 0 6px 6px;
}

.action-item:hover {
    background-color: #4c6ef53d;
}

.action-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Integration Settings Styles */
.integration-settings {
    margin-top: 15px;
}

.integration-section {
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.integration-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.integration-title i {
    font-size: 16px;
}

.integration-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.integration-fields .form-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.integration-fields .form-field-group label {
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
}

.integration-fields .form-field-group input[type="text"],
.integration-fields .form-field-group input[type="url"],
.integration-fields .form-field-group input[type="password"] {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    transition: border-color 0.2s ease;
}

.integration-fields .form-field-group input[type="text"]:focus,
.integration-fields .form-field-group input[type="url"]:focus,
.integration-fields .form-field-group input[type="password"]:focus {
    outline: none;
    border-color: #4c6ef5;
}

.integration-fields .form-field-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #4c6ef5;
}

/* Save Journey Modal Styles */
.save-modal-content {
    max-width: 500px;
    width: 90%;
}

/* Load Journey Modal */
.load-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.load-modal-content .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.load-modal-content .modal-body {
    padding: 20px 30px;
}

.load-modal-content .modal-header {
    padding: 20px 30px 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.journey-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
}

.journey-item {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journey-item:hover {
    background-color: #333;
    border-color: rgba(76, 110, 245, 0.3);
    box-shadow: 0 2px 8px rgba(76, 110, 245, 0.1);
}

.journey-item.active-journey {
    background-color: rgba(76, 110, 245, 0.1);
    border-color: #4c6ef5;
    box-shadow: 0 2px 8px rgba(76, 110, 245, 0.2);
}

.journey-item.active-journey:hover {
    background-color: rgba(76, 110, 245, 0.15);
    border-color: #4c6ef5;
    box-shadow: 0 2px 12px rgba(76, 110, 245, 0.3);
}

.journey-info {
    flex: 1;
}

.journey-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-badge {
    background-color: #4c6ef5;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.journey-description {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.journey-meta {
    color: #888;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.journey-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.journey-active-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #3a3a3a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-switch.active {
    background-color: #4c6ef5;
    border-color: #4c6ef5;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.toggle-switch.active + .toggle-label {
    color: #4c6ef5;
}

/* Real-time notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

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

.journey-action-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.journey-action-btn:hover {
    color: #fff;
    background-color: rgba(76, 110, 245, 0.2);
    border: 1px solid rgba(76, 110, 245, 0.3);
}

.loading-message {
    text-align: center;
    color: #888;
    padding: 40px;
}

.no-journeys {
    text-align: center;
    color: #888;
    padding: 40px;
}

.no-journeys i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

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

.save-modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
    font-size: 14px;
}

.save-modal-content .form-group input,
.save-modal-content .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.save-modal-content .form-group input:focus,
.save-modal-content .form-group textarea:focus {
    outline: none;
    border-color: #4c6ef5;
}

.save-modal-content .form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.save-modal-content .modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.save-modal-content .btn-cancel,
.save-modal-content .btn-save,
.load-modal-content .btn-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-modal-content .btn-cancel,
.load-modal-content .btn-cancel {
    background-color: #3a3a3a;
    color: #ccc;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.save-modal-content .btn-cancel:hover,
.load-modal-content .btn-cancel:hover {
    background-color: #4a4a4a;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.save-modal-content .btn-save {
    background-color: #4c6ef5;
    color: white;
    border: 2px solid #4c6ef5;
}

.save-modal-content .btn-save:hover {
    background-color: #3b5bdb;
    border-color: #3b5bdb;
    transform: translateY(-1px);
}

.save-modal-content .btn-save:disabled {
    background-color: #666;
    border-color: #666;
    cursor: not-allowed;
    transform: none;
}

/* Journey Canvas Container */
.journey-canvas-container {
    flex: 1;
    background-color: #2a2a2a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 500px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 320px 1fr;
}

.journey-canvas {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    position: relative;
    display: block;
    min-height: 500px;
    flex: 1;
    /* Ensure canvas can receive drop events across entire area */
    pointer-events: auto;
}

.journey-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, #4a4a4a 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Properties Panel */
.properties-panel {
    width: 100%;
    background-color: #2a2a2a;
    border-right: 3px solid rgba(255, 255, 255, 0.1);
    max-height: none;
    overflow-y: auto;
}

/* Left docked variant */
.properties-panel--left {
    position: relative;
    border-radius: 12px 0 0 12px;
    width: 320px;
    flex-shrink: 0;
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.panel-content {
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Form Fields Accordion */
.form-fields-accordion {
    color: white;
    max-height: none;
    overflow: visible;
}

.form-fields-list {
    margin-bottom: 20px;
    max-height: none;
    overflow: visible;
}

.form-field-content {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.accordion-header {
    margin-bottom: 20px;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin: 0;
    cursor: pointer;
}

.accordion-title i {
    transition: transform 0.3s ease;
}

.accordion-title.expanded i {
    transform: rotate(180deg);
}

.form-name-section {
    margin-bottom: 20px;
}

.form-name-section label {
    display: block;
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-name-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-name-input input {
    flex: 1;
    background-color: #242424;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 14px;
}

.form-name-input textarea {
    flex: 1;
    background-color: #242424;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.form-name-input input:focus,
.form-name-input textarea:focus {
    outline: none;
    border-color: #4c6ef5;
}

/* Canvas Controls */
.canvas-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    background-color: #2a2a2a;
    border: 2px solid #4c6ef5;
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
}

.control-btn {
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border: 2px solid #4c6ef5;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #4c6ef5;
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(0);
    background-color: #3b5bdb;
}
.category-card-preview {
    display: inline-block;
    background-color: #2a2a2a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-card-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(76, 110, 245, 0.2);
    border-color: #4c6ef5;
}

.category-card-preview:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(76, 110, 245, 0.2);
    border-color: #4c6ef5;
}

/* Service Card Preview Styling */
.service-card-preview {
    display: inline-block;
    background-color: #2a2a2a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-card-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.service-card-preview:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.form-name-btn {
    background-color: #242424;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-name-btn:hover {
    background-color: #333;
}

.form-fields-list {
    margin-bottom: 20px;
}

.form-field-item {
    background-color: #242424;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.form-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-field-header:hover {
    background-color: #333;
}

.form-field-name {
    font-weight: bold;
    color: white;
}

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

.form-field-action {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.form-field-action:hover {
    background-color: #444;
}

.form-field-content {
    display: none;
    padding: 20px;
    background-color: #1a1a1a;
}

.form-field-content.expanded {
    display: block;
}

.field-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.field-tab {
    background-color: transparent;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.field-tab.active {
    background-color: #333;
    border-bottom-color: #4c6ef5;
}

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

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

.field-property {
    margin-bottom: 15px;
}

.field-property label {
    display: block;
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
}

.field-property input,
.field-property select {
    width: 100%;
    background-color: #242424;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 14px;
}

.field-property select {
    cursor: pointer;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.add-item-btn {
    width: 100%;
    background-color: #242424;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-item-btn:hover {
    background-color: #333;
}

.property-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.property-group .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.property-group label {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.property-group input,
.property-group select,
.property-group textarea {
    background-color: #242424;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.property-group input:focus,
.property-group select:focus,
.property-group textarea:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.2);
}

.property-group textarea {
    resize: vertical;
    min-height: 60px;
}

.add-field-btn {
    background-color: #4c6ef5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.add-field-btn:hover {
    background-color: #3d5bfe;
}

/* JointJS Overrides */
.joint-paper {
    background-color: transparent !important;
    z-index: 1;
}

.joint-paper .joint-element .joint-link-tools {
    display: none;
}

.joint-paper .joint-element:hover .joint-link-tools {
    display: block;
}

.joint-paper .joint-element .joint-element-body {
    cursor: move !important;
}

.joint-paper .joint-element:hover .joint-element-body {
    filter: brightness(1.1);
    transition: filter 0.2s ease;
}

/* Custom JointJS Elements */
.journey-start {
    fill: #28a745;
    stroke: #1e7e34;
}

.journey-process {
    fill: #4c6ef5;
    stroke: #3d5bfe;
}

.journey-decision {
    fill: #ffd700;
    stroke: #e6c200;
}

.journey-end {
    fill: #dc3545;
    stroke: #c82333;
}

/* Responsive Design for Journey */
@media (max-width: 1024px) {
    .journey-toolbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .toolbar-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .journey-main {
        padding: 20px;
        margin-top: 70px;
    }
    
    .journey-toolbar {
        padding: 15px;
    }
    
    .toolbar-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .toolbar-btn i {
        font-size: 14px;
    }
    
    .journey-canvas-container {
        min-height: 400px;
    }
}

/* Form Preview Button */
.preview-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.preview-btn:hover {
    color: #4c6ef5;
    background-color: rgba(76, 110, 245, 0.1);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Form Preview Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #2a2a2a;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #333;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

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

.modal-close:hover {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.modal-body {
    padding: 30px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Preview Form Styles */
#form-preview-content {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    border: 2px solid #4c6ef5;
}

#form-preview-content h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

#form-preview-content .form-field {
    margin-bottom: 20px;
}

#form-preview-content label {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

#form-preview-content label.required::after {
    content: ' *';
    color: #ff6b6b;
}

#form-preview-content input,
#form-preview-content textarea,
#form-preview-content select {
    width: 100%;
    padding: 12px;
    background-color: #242424;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-family: 'Poppins', Arial, sans-serif;
}

#form-preview-content input:focus,
#form-preview-content textarea:focus,
#form-preview-content select:focus {
    outline: none;
    border-color: #4c6ef5;
}

#form-preview-content textarea {
    min-height: 80px;
    resize: vertical;
}

#form-preview-content .radio-group,
#form-preview-content .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#form-preview-content .radio-item,
#form-preview-content .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

#form-preview-content .radio-item input,
#form-preview-content .checkbox-item input {
    width: auto;
    margin: 0;
}

#form-preview-content .file-upload {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#form-preview-content .file-upload:hover {
    border-color: #4c6ef5;
    background-color: rgba(76, 110, 245, 0.05);
}

#form-preview-content .file-upload-icon {
    font-size: 24px;
    color: #4c6ef5;
    margin-bottom: 10px;
}

#form-preview-content .file-upload-text {
    color: #888;
    font-size: 14px;
}

#form-preview-content .file-restrictions {
    color: #666;
    font-size: 12px;
    margin-top: 8px;
}

#form-preview-content .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#form-preview-content .form-row .form-field,
#form-preview-content .form-row .preview-field {
    flex-shrink: 0;
    box-sizing: border-box;
}

#form-preview-content .preview-field {
    margin-bottom: 20px;
}

#form-preview-content .preview-form {
    width: 100%;
}

/* ========================================
   FORM SUBMIT PAGE STYLES
   ======================================== */

/* Form Container */
.form-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

/* Dynamic Subject Heading Styles */
.form-subject-heading {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 16px;
    border: 2px solid #10b981;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
}

.subject-title {
    font-size: 32px;
    font-weight: 700;
    color: #10b981;
    margin: 0 0 16px 0;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subject-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    color: #e5e5e5;
    font-family: 'Poppins', sans-serif;
}

.breadcrumb-item {
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #10b981;
    font-weight: 600;
    font-size: 18px;
}

/* Responsive adjustments for subject heading */
@media (max-width: 768px) {
    .form-subject-heading {
        margin-bottom: 30px;
        padding: 20px 15px;
    }
    
    .subject-title {
        font-size: 24px;
    }
    
    .subject-breadcrumb {
        flex-direction: column;
        gap: 8px;
    }
    
    .breadcrumb-separator {
        transform: rotate(90deg);
    }
}

.form-main {
    padding: 120px 20px 20px 20px; /* Added top padding to move content below header */
    max-width: 100%; /* Allow full width for centering */
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Center the content horizontally */
    overflow-x: visible !important; /* Prevent horizontal scrollbar but allow content visibility */
    box-sizing: border-box !important;
}

/* Forms Grid */
.forms-grid {
    display: block; /* Change from grid to block for single form centering */
    width: 100%;
    max-width: 600px; /* Match form max-width */
}

/* Form Card */
.form-card {
    background: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    will-change: transform, box-shadow;
}

.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(76, 110, 245, 0.2);
    border-color: #4c6ef5;
}

.form-card:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(76, 110, 245, 0.2);
    border-color: #4c6ef5;
}

/* Form Card Content */
.form-card .card-content {
    margin: 0;
}

.form-card .card-title {
    font-weight: 600;
    color: #fff;
    font-size: 18px;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.form-card .card-description {
    color: #ccc;
    font-size: 14px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.form-card .form-fields-preview {
    color: #888;
    font-size: 12px;
    margin-top: 8px;
}

/* ========================================
   ACTUAL FORM RENDERING STYLES - JOURNEY SETUP PREVIEW STYLE
   ======================================== */

/* Actual Form Container - Remove card styling */
.actual-form-container {
    background: transparent !important; /* Remove card background */
    border: none !important; /* Remove card border */
    border-radius: 0 !important; /* Remove card border radius */
    padding: 0 !important; /* Remove card padding */
    margin: 0 !important; /* Remove card margin */
    box-shadow: none !important; /* Remove card shadow */
    max-width: none !important; /* Remove max width constraint */
}

/* Actual Form */
.actual-form {
    width: 100%;
    max-width: 600px; /* Set max width on form instead */
    margin: 0 auto; /* Center the form horizontally */
    padding: 0 20px; /* Add padding to prevent edge cropping */
    box-sizing: border-box !important;
    overflow: visible !important; /* Allow content to be visible */
}

/* Form Header - Minimal styling */
.form-header {
    text-align: left; /* Left align like journey setup */
    margin-bottom: 30px;
    padding-bottom: 0; /* Remove bottom border */
    border-bottom: none; /* Remove border */
}

.form-title {
    font-size: 28px; /* Larger title like journey setup */
    font-weight: 700; /* Bolder weight */
    color: #fff;
    margin: 0 0 8px 0; /* Tighter spacing */
}

.form-description {
    font-size: 16px;
    color: #ccc;
    margin: 0;
    line-height: 1.4;
}

/* Form Fields Container */
.form-fields {
    margin-bottom: 30px;
}

/* Form Row - Container for inline fields */
.form-row {
    display: flex !important;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
    flex-wrap: nowrap !important; /* Prevent wrapping - fields should stay in same row */
    width: 100%;
    overflow: visible !important; /* Allow content to be visible */
    box-sizing: border-box !important;
}

/* Individual Form Field - Journey setup style */
.form-field {
    margin-bottom: 0 !important; /* Remove bottom margin since rows handle spacing */
    flex-shrink: 0 !important; /* Prevent fields from shrinking */
    flex-grow: 0 !important; /* Prevent fields from growing */
    box-sizing: border-box !important; /* Include padding/border in width calculation */
    min-width: 0 !important; /* Allow fields to shrink below default minimum */
    display: flex !important;
    flex-direction: column !important;
    /* Width will be set inline via JavaScript based on columnWidth */
}

.field-label {
    display: block;
    font-size: 16px; /* Larger labels */
    font-weight: 600; /* Bolder labels */
    color: #fff;
    margin-bottom: 8px;
}

.field-input {
    width: 100% !important; /* Take full width of the field container */
    padding: 16px 20px; /* More padding like journey setup */
    background: #2a2a2a; /* Slightly lighter background */
    border: 2px solid rgba(255, 255, 255, 0.15); /* More visible border */
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    font-family: inherit; /* Use same font as journey setup */
    min-width: 0; /* Allow input to shrink below default minimum */
}

.field-input::placeholder {
    color: #888; /* Lighter placeholder text */
    opacity: 1; /* Ensure placeholder is visible */
}

.field-input:focus {
    outline: none;
    border-color: #4c6ef5;
    background: #333333; /* Slightly lighter on focus */
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1); /* Subtle focus ring */
}

.field-input::placeholder {
    color: #888; /* Lighter placeholder text */
}

/* Date Picker Wrapper */
.date-picker-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.date-picker-input {
    position: relative;
    z-index: 1;
    cursor: pointer;
    color: transparent !important; /* Hide the native date format */
    caret-color: transparent !important; /* Hide caret */
    background-color: #2a2a2a !important; /* Dark matte background */
    border: 2px solid rgba(255, 255, 255, 0.15) !important; /* Bright stroke */
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.date-picker-input:hover {
    border-color: rgba(255, 255, 255, 0.25) !important; /* Brighter stroke on hover */
    background-color: #333333 !important;
}

/* Hide the native date input text completely */
.date-picker-input::-webkit-datetime-edit,
.date-picker-input::-webkit-datetime-edit-fields-wrapper,
.date-picker-input::-webkit-datetime-edit-text,
.date-picker-input::-webkit-datetime-edit-month-field,
.date-picker-input::-webkit-datetime-edit-day-field,
.date-picker-input::-webkit-datetime-edit-year-field {
    color: transparent !important;
    visibility: hidden !important;
}

/* Calendar icon - styled to match dark matte theme with bright accent */
.date-picker-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    z-index: 3;
    position: relative;
    opacity: 1 !important;
    filter: invert(1) brightness(1.3) drop-shadow(0 0 2px rgba(76, 110, 245, 0.6)); /* Bright white icon with blue glow */
    background-color: transparent;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
}

.date-picker-input::-webkit-calendar-picker-indicator:hover {
    filter: invert(1) brightness(1.5) drop-shadow(0 0 4px rgba(76, 110, 245, 0.9)); /* Brighter on hover */
    background-color: rgba(76, 110, 245, 0.15);
    transform: scale(1.1);
}

.date-picker-input:focus {
    border-color: #4c6ef5 !important; /* Bright blue stroke on focus */
    background-color: #333333 !important;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1) !important; /* Focus ring */
}

.date-picker-input:focus::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5) drop-shadow(0 0 6px rgba(76, 110, 245, 1)); /* Enhanced glow on focus */
}

.date-picker-display {
    position: relative !important;
    width: 100% !important;
    z-index: 1 !important;
    cursor: pointer !important;
    background-color: #2a2a2a !important; /* Dark matte background */
    border: 2px solid rgba(255, 255, 255, 0.15) !important; /* Bright stroke */
    border-radius: 8px !important;
    padding: 16px 45px 16px 20px !important; /* Extra padding on right for icon */
    box-sizing: border-box !important;
    color: #fff !important; /* Ensure text is visible */
    font-size: 16px !important; /* Match the field input font size */
    font-family: inherit !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
    pointer-events: auto !important; /* Allow clicks */
}

.date-picker-icon-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #888 !important;
    cursor: pointer !important;
    padding: 8px !important;
    font-size: 16px !important;
    z-index: 2 !important;
    transition: color 0.2s ease !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.date-picker-icon-btn:hover {
    color: #4c6ef5 !important;
}

.date-picker-icon-btn:focus {
    outline: none !important;
    color: #4c6ef5 !important;
}

.date-picker-display:hover {
    border-color: rgba(255, 255, 255, 0.25) !important; /* Brighter stroke on hover */
    background-color: #333333 !important;
}

.date-picker-display:focus {
    border-color: #4c6ef5 !important; /* Bright blue stroke on focus */
    background-color: #333333 !important;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1) !important; /* Focus ring */
    outline: none !important;
}

/* Custom Calendar Picker Styles */
.custom-calendar-picker {
    position: absolute !important;
    bottom: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    max-width: 280px !important;
    min-width: 260px !important;
    background: #2a2a2a !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.custom-calendar-picker .calendar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    gap: 8px !important;
}

.custom-calendar-picker .calendar-nav-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 6px 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
}

.custom-calendar-picker .calendar-nav-btn:hover {
    background: rgba(76, 110, 245, 0.2) !important;
    border-color: #4c6ef5 !important;
}

.custom-calendar-picker .calendar-month-year {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    flex: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 0 4px !important;
    min-width: 0 !important;
}

.custom-calendar-picker .calendar-day-names {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
}

.custom-calendar-picker .calendar-day-names > div {
    color: #888 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 4px 0 !important;
}

.custom-calendar-picker .calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
}

.custom-calendar-picker .calendar-date-cell {
    padding: 8px 4px !important;
    text-align: center !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
}

.custom-calendar-picker .calendar-footer {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    gap: 8px !important;
}

.custom-calendar-picker .calendar-today-btn,
.custom-calendar-picker .calendar-clear-btn {
    background: transparent !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.custom-calendar-picker .calendar-today-btn {
    border: 1px solid rgba(76, 110, 245, 0.5) !important;
    color: #4c6ef5 !important;
}

.custom-calendar-picker .calendar-today-btn:hover {
    background: rgba(76, 110, 245, 0.1) !important;
    border-color: #4c6ef5 !important;
}

.custom-calendar-picker .calendar-clear-btn {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #888 !important;
}

.custom-calendar-picker .calendar-clear-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

/* Form Heading Title Styles */
.form-heading-field {
    width: 100% !important;
    margin-bottom: 20px !important;
    margin-top: 10px !important;
}

.form-heading-title {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.4 !important;
}

/* Textarea specific styles */
.field-input[type="textarea"] {
    resize: vertical;
    min-height: 120px; /* Taller textarea */
}

/* Radio Button Styles - High Specificity */
input[type="radio"].radio-input,
.radio-group input[type="radio"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    background: #2a2a2a !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
}

input[type="radio"].radio-input:checked,
.radio-group input[type="radio"]:checked {
    border-color: #4c6ef5 !important;
    background: #4c6ef5 !important;
}

input[type="radio"].radio-input:checked::after,
.radio-group input[type="radio"]:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #fff !important;
}

input[type="radio"].radio-input:hover,
.radio-group input[type="radio"]:hover {
    border-color: #4c6ef5 !important;
}

.radio-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

.radio-option {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.radio-label {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: #2a2a2a;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-input:checked {
    border-color: #4c6ef5;
    background: #4c6ef5;
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-input:hover {
    border-color: #4c6ef5;
}

.checkbox-label {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

/* File Upload Styles */
.file-upload-container {
    width: 100%;
}

.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #2a2a2a;
    position: relative;
}

.file-upload-area:hover {
    border-color: #4c6ef5;
    background: #333333;
}

.file-upload-area.drag-over {
    border-color: #4c6ef5;
    background: #333333;
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 32px;
    color: #4c6ef5;
    margin-bottom: 12px;
}

.file-upload-text {
    color: #888;
    font-size: 16px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.file-restrictions {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.file-upload-input {
    display: none;
}

/* Submit Button - Journey setup style */
.form-submit-btn {
    width: 100%;
    padding: 18px 24px; /* More padding */
    background: linear-gradient(135deg, #4c6ef5 0%, #3b5bdb 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px; /* Larger text */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px; /* Add top margin */
}

.form-submit-btn:hover {
    background: linear-gradient(135deg, #3b5bdb 0%, #2c4edc 100%);
    transform: translateY(-2px); /* More lift on hover */
    box-shadow: 0 8px 25px rgba(76, 110, 245, 0.3); /* More prominent shadow */
}

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

/* No Fields Message */
.no-fields {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 20px;
    font-size: 16px;
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .actual-form {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-description {
        font-size: 14px;
    }
    
    .field-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 16px;
    }
    
    .form-submit-btn {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    /* Stack fields vertically on mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-field {
        width: 100% !important; /* Override dynamic width on mobile */
        margin-bottom: 20px;
    }
}

/* ========================================
   CATEGORY PAGE STYLES
   ======================================== */

.category-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.category-main {
    padding: 120px 20px 20px 20px; /* Added top padding to move content below header */
    max-width: 1400px;
    margin: 0 auto;
}

/* View All Tickets Button Section */
.view-all-tickets-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.or-separator {
    display: flex;
    align-items: center;
    margin-top: 30px;
    width: 100%;
    max-width: 400px;
}

.separator-line {
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.separator-text {
    margin: 0 20px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.view-all-tickets-btn {
    background-color: #37300a;
    border: 3px solid #ffd700;
    border-radius: 12px;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 600px;
    min-width: 300px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.view-all-tickets-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ffed4e;
}

.view-all-tickets-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-content {
    text-align: center;
}

.btn-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.btn-subtitle {
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* Loading State - Beautiful Animated SVG Spinner */
.loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    z-index: 1000;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 16px;
    color: #b0b0b0;
    margin: 0;
}

/* New Smiley Face Loading Spinner */
.smiley {
	width: 8em;
	height: 8em;
}
.smiley__eye1,
.smiley__eye2,
.smiley__mouth1,
.smiley__mouth2 {
	animation: eye1 3s ease-in-out infinite;
}
.smiley__eye1,
.smiley__eye2 {
	transform-origin: 64px 64px;
}
.smiley__eye2 {
	animation-name: eye2;
}
.smiley__mouth1 {
	animation-name: mouth1;
}
.smiley__mouth2 {
	animation-name: mouth2;
	visibility: hidden;
}

/* Animations */
@keyframes eye1 {
	from {
		transform: rotate(-260deg) translate(0,-56px);
	}
	50%,
	60% {
		animation-timing-function: cubic-bezier(0.17,0,0.58,1);
		transform: rotate(-40deg) translate(0,-56px) scale(1);
	}
	to {
		transform: rotate(225deg) translate(0,-56px) scale(0.35);
	}
}
@keyframes eye2 {
	from {
		transform: rotate(-260deg) translate(0,-56px);
	}
	50% {
		transform: rotate(40deg) translate(0,-56px) rotate(-40deg) scale(1);
	}
	52.5% {
		transform: rotate(40deg) translate(0,-56px) rotate(-40deg) scale(1,0);
	}
	55%,
	70% {
		animation-timing-function: cubic-bezier(0,0,0.28,1);
		transform: rotate(40deg) translate(0,-56px) rotate(-40deg) scale(1);
	}
	to {
		transform: rotate(150deg) translate(0,-56px) scale(0.4);
	}
}
@keyframes eyeBlink {
	from,
	25%,
	75%,
	to {
		transform: scaleY(1);
	}
	50% {
		transform: scaleY(0);
	}
}
@keyframes mouth1 {
	from {
		animation-timing-function: ease-in;
		stroke-dasharray: 0 351.86;
		stroke-dashoffset: 0;
	}
	25% {
		animation-timing-function: ease-out;
		stroke-dasharray: 175.93 351.86;
		stroke-dashoffset: 0;
	}
	50% {
		animation-timing-function: steps(1,start);
		stroke-dasharray: 175.93 351.86;
		stroke-dashoffset: -175.93;
		visibility: visible;
	}
	75%,
	to {
		visibility: hidden;
	}
}
@keyframes mouth2 {
	from {
		animation-timing-function: steps(1,end);
		visibility: hidden;
	}
	50% {
		animation-timing-function: ease-in-out;
		visibility: visible;
		stroke-dashoffset: 0;
	}
	to {
		stroke-dashoffset: -351.86;
	}
}

/* Loading Spinner Size Control */
.loading-spinner .smiley {
	width: 80px;
	height: 80px;
}

/* Hide old spinners */
.fa-spinner,
.fa-spin,
.loading-spinner .fa-spinner,
.loading-spinner .fa-spin,
.pl,
.pl__ring,
.pl__ball {
	display: none !important;
}

/* Ensure new spinner is visible */
.loading-spinner svg.smiley {
	display: block !important;
}

/* Loading Row in Table Styles */
.loading-row {
    background: transparent;
}

.loading-cell {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    border: none;
}

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

.loading-spinner-small {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner-small svg.smiley-small {
    animation: spin 2s linear infinite;
}

.loading-content span {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* No Data Row Styles */
.no-data-row {
    background: transparent;
}

.no-data-cell {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    border: none;
}

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

.no-data-content i {
    font-size: 32px;
    color: #666;
    opacity: 0.7;
}

.no-data-content span {
    font-size: 16px;
    font-weight: 500;
    color: #999;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    color: #4c6ef5;
    margin-bottom: 24px;
    opacity: 0.7;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.empty-description {
    font-size: 16px;
    color: #b0b0b0;
    margin: 0 0 32px 0;
    max-width: 400px;
}

.empty-action-btn {
    background: linear-gradient(135deg, #4c6ef5 0%, #3b5bdb 100%);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 110, 245, 0.3);
}

.empty-action-btn i {
    margin-right: 8px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* Category Card */
.category-card {
    background: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    min-width: 200px;
    height: 120px; /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    will-change: transform, box-shadow;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(76, 110, 245, 0.2);
    border-color: #4c6ef5;
}

.category-card:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(76, 110, 245, 0.2);
    border-color: #4c6ef5;
}

/* Card Content */
.card-content {
    margin: 0;
}

.card-title {
    font-weight: 600;
    color: #fff;
    font-size: 18px;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.card-description {
    color: #8e8e8e;
    font-size: 10px;
    margin: 0;
    line-height: 1.4;
}

/* Filter Modal */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.filter-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.filter-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-modal .modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.filter-modal .modal-close {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

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

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

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #4c6ef5;
    background: rgba(255, 255, 255, 0.08);
}

.filter-group input::placeholder {
    color: #808080;
}

.filter-modal .modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.filter-modal .btn-cancel,
.filter-modal .btn-apply,
.filter-modal .btn-clear {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.filter-modal .btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-modal .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.filter-modal .btn-apply {
    background: linear-gradient(135deg, #4c6ef5 0%, #3b5bdb 100%);
    color: #ffffff;
}

.filter-modal .btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
}

.filter-modal .btn-clear {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.filter-modal .btn-clear:hover {
    background: rgba(248, 113, 113, 0.3);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-main {
        padding: 16px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-card {
        padding: 20px;
        height: 110px; /* Slightly smaller height for mobile */
    }
    
    .filter-modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 16px;
        height: 100px; /* Even smaller height for very small screens */
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-description {
        font-size: 13px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Service Container */
.service-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.service-main {
    padding: 120px 20px 20px 20px; /* Added top padding to move content below header */
    max-width: 1400px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* Service Card */
.service-card {
    background: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.service-card:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* Service Card Content */
.service-card .card-content {
    margin: 0;
}

.service-card .card-title {
    font-weight: 600;
    color: #fff;
    font-size: 18px;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.service-card .card-description {
    color: #ccc;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* RTL Side Menu Styles */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #2a2a2a;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid #ffffff24;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
}

.side-menu.active {
    right: 0;
}

.side-menu.active ~ .menu-toggle-btn {
    right: 400px; /* Position button at the left edge of the open menu */
    transform: translateY(-50%) translateX(0);
}

.menu-toggle-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 50% 0 0 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

.menu-toggle-btn:hover {
    background: #3a3a3a;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) translateX(-2px);
}

.menu-toggle-btn i {
    margin-left: 2px; /* Slight adjustment to center the chevron */
    transition: transform 0.3s ease;
}

.side-menu.active ~ .menu-toggle-btn i {
    transform: rotate(180deg);
}

.menu-header {
    padding: 30px 25px 20px;
}

.menu-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.menu-subtitle {
    color: #ccc;
    font-size: 14px;
    margin: 0;
}

.menu-section {
    padding: 20px;
    margin: 15px 20px;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-section:last-child {
    margin-bottom: 20px;
}

.menu-section-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #333333;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.status-btn:hover {
    background: #404040;
}

.status-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
    color: white !important;
}

.close-btn {
    background: #E73F4F;
}

.close-btn:hover {
    background: #D32F2F;
}

.in-progress-btn {
    background: #333333;
}

.in-progress-btn:hover {
    background: #404040;
}

.pending-btn {
    background: #333333;
}

.pending-btn:hover {
    background: #404040;
}

/* Priority Buttons */
.priority-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.priority-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #333333;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.priority-btn:hover {
    background: #404040;
}

.priority-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
    color: white !important;
}

.priority-btn.active {
    background: #007bff;
    color: white;
}

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

/* Priority Button Colors - Updated to match badge styling */
.critical-btn {
    border-left: 4px solid #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.critical-btn.active {
    background: rgba(220, 53, 69, 0.25);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.high-btn {
    border-left: 4px solid #fd7e14;
    background: rgba(253, 126, 20, 0.1);
}

.high-btn.active {
    background: rgba(253, 126, 20, 0.25);
    color: #fd7e14;
    border-left: 4px solid #fd7e14;
}

.medium-btn {
    border-left: 4px solid #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.medium-btn.active {
    background: rgba(255, 193, 7, 0.25);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

.low-btn {
    border-left: 4px solid #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.low-btn.active {
    background: rgba(40, 167, 69, 0.25);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.current-holder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: white;
    font-size: 14px;
}

.current-holder i {
    color: white;
    background: #4285F4;
    border-radius: 50%;
    font-size: 16px;
    width: 32px;
    height: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-select {
    width: 100%;
    padding: 14px 16px;
    background: #1e1e1e;
    border: 2px solid #007bff;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.user-select:focus {
    outline: none;
    border-color: #0056b3;
}

.user-select option {
    background: #3a3a3a;
    color: white;
}

.shared-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.shared-users {
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: transparent;
    border: 2px dashed #007bff;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.add-user-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: #0056b3;
}

.add-user-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .side-menu {
        width: 100%;
        right: -100%;
    }
    
    .side-menu.active ~ .menu-toggle-btn {
        right: 100%; /* Position button at the left edge of the full-width menu */
    }
    
    .menu-toggle-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Request Detail Page Styles */
.request-detail-main {
    min-height: 100vh;
    background-color: #1a1a1a;
    padding: 100px 30px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Top Section - Request Information */
.request-info-section {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.request-header {
    margin-bottom: 30px;
}

.request-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.request-created {
    color: #ccc;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.request-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-card {
    background-color: #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.info-value {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* Middle Section - Description */
.description-section {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.description-content {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Form Data Section - Display all captured form fields */
.form-data-section {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-fields-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field-display {
    background-color: #333;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-field-label {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.form-field-value {
    color: white;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Form container for request detail page - matches form-submit layout */
.form-container {
    width: 100%;
}

.form-container .form-fields {
    margin-bottom: 30px;
}

.form-container .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.form-container .form-field {
    margin-bottom: 0;
    flex-shrink: 0;
}

.form-container .field-label {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-container .required-asterisk {
    color: #ef4444;
    margin-left: 4px;
}

/* Read-only form inputs */
.form-container .form-input.readonly,
.form-container .form-textarea.readonly,
.form-container .form-select.readonly {
    width: 100%;
    padding: 16px 20px;
    background-color: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ccc;
    font-size: 16px;
    cursor: not-allowed;
    opacity: 0.8;
    font-family: inherit;
}

.form-container .form-textarea.readonly {
    min-height: 120px;
    resize: vertical;
}

.form-container .form-select.readonly {
    cursor: not-allowed;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ccc' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Read-only radio and checkbox groups */
.form-container .radio-group.readonly,
.form-container .checkbox-group.readonly {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.form-container .radio-option,
.form-container .checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-container .radio-input:disabled,
.form-container .checkbox-input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.form-container .radio-label,
.form-container .checkbox-label {
    color: #ccc;
    font-size: 16px;
    cursor: not-allowed;
}

/* File display */
.form-container .file-display {
    margin-top: 8px;
}

.form-container .file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
}

.form-container .file-item i {
    color: #4c6ef5;
}

.form-container .no-file {
    color: #888;
    font-style: italic;
}

/* Bottom Section - Attachments */
.attachments-section {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.attachments-content {
    color: white;
    font-size: 16px;
    margin: 0;
}

/* Activity Timeline Section */
.activity-section {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-section .section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.title-accent {
    width: 4px;
    height: 24px;
    background-color: #4c6ef5;
    border-radius: 2px;
}

.activity-list {
    max-height: none;
    overflow: visible;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.activity-item:last-child {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.activity-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.activity-icon.ticket-created {
    background-color: #28a745;
}

.activity-icon.comment-added {
    background-color: #007bff;
}

.activity-icon.ticket-reassigned {
    background-color: #fd7e14;
}

.activity-icon.status-updated {
    background-color: #6f42c1;
}

.activity-icon.ticket-shared {
    background-color: #17a2b8;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity-event {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.activity-user {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.activity-description {
    color: #ccc;
    font-size: 14px;
    margin-left: 0;
}

.activity-time {
    color: #999;
    font-size: 14px;
    align-self: flex-end;
    margin-top: auto;
}

/* Comments Section */
/* Comments Section - Now integrated into activity section */

/* Comments Section - Now integrated into activity section */

.comment-actions {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
}

.btn-add-comment {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-add-comment:hover {
    background-color: #0056b3;
}

.btn-back-dashboard {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-back-dashboard:hover {
    background-color: #c82333;
}

/* Responsive Design for Request Detail */
@media (max-width: 768px) {
    .request-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .request-detail-main {
        padding: 100px 15px 15px;
    }
    
    .comment-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .request-info-cards {
        grid-template-columns: 1fr;
    }
    
    .request-title {
        font-size: 24px;
    }
}

/* Dashboard Table Row Styling */
.ticket-row {
    transition: background-color 0.2s ease;
    position: relative;
    overflow: hidden !important;
    /* Prevent layout shifts from pseudo-elements */
    contain: layout style paint;
    /* Ensure consistent spacing */
    box-sizing: border-box;
}

.ticket-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.ticket-row:active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Update indicator - Red left border and shimmer using background gradients (no layout shift) */
.ticket-row.has-update {
    position: relative;
    /* Combine red border and shimmer in one background - no layout impact */
    background-image: 
        linear-gradient(to right, #ef4444 0px, #ef4444 3px, transparent 3px),
        linear-gradient(
            105deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 60%,
            transparent 100%
        );
    background-repeat: no-repeat, repeat-x;
    background-position: left center, 0% 0;
    background-size: auto, 200% 100%;
    /* Ensure no layout changes */
    box-sizing: border-box;
    /* Prevent any overflow */
    overflow: hidden !important;
    /* Ensure no padding or margin that could create blank space */
    padding: 0 !important;
    margin: 0 !important;
    /* Shimmer animation - slightly slower movement with no pause between cycles */
    /* Use CSS variable for random delay per row */
    animation: shimmer 3s infinite linear;
    animation-delay: var(--shimmer-delay, 0s);
}

@keyframes shimmer {
    0% {
        background-position: left center, 0% 0;
    }
    100% {
        background-position: left center, -200% 0;
    }
}

/* Ensure content is above shimmer and properly aligned */
.ticket-row.has-update td {
    position: relative;
    z-index: 2;
    /* Ensure no layout shift - maintain original padding exactly */
    box-sizing: border-box;
    /* Match exact padding of normal cells - no extra space */
    padding: 15px 12px !important;
    /* Ensure no margin that could create space */
    margin: 0 !important;
    /* Ensure no border that could create space */
    border-left: none !important;
}

/* Ensure first cell doesn't have extra padding that creates blank space */
.ticket-row.has-update td:first-child {
    /* Match exact padding of normal cells - no extra space */
    padding: 15px 12px !important;
    /* Ensure no extra space on the left - override any other rules */
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    position: relative;
    z-index: 2;
    /* Ensure content starts at the same position as other rows */
    text-align: left;
    /* Override any other styles that might add space */
    box-sizing: border-box;
    /* Ensure no border that could create space */
    border-left: none !important;
    /* Ensure content aligns with header */
    vertical-align: middle;
}

.track-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.track-button:hover {
    background-color: #0056b3;
}

.track-button:active {
    background-color: #004085;
}

/* Save Properties Button Styles */
.save-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.save-properties-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-properties-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

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

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

/* Element Locked State */
.element-locked {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3) !important;
}

.element-locked::after {
    content: '🔒';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    border-left: 4px solid #4CAF50;
}

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

.notification-info {
    border-left: 4px solid #2196F3;
}

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

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: auto;
}

.notification-close:hover {
    color: white;
}

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

/* Backup & Export Page Styles */
.danger-card {
    border: 1px solid rgba(244, 67, 54, 0.3);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
}

.danger-card .card-icon {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.danger-button {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border: 1px solid #f44336;
    color: white;
}

.danger-button:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3);
}

/* Statistics Section */
.stats-section {
    margin-top: 40px;
}

.section-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

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

.stat-card {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

/* Warning Message */
.warning-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #f44336;
}

.warning-message i {
    font-size: 18px;
    margin-top: 2px;
}

.warning-message strong {
    font-weight: 600;
}

/* Modal Enhancements */
.modal-content {
    max-width: 500px;
    width: 90%;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.btn-danger {
    background: #f44336;
    color: white;
}

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

/* Comment Modal Styles */
.comment-modal {
    max-width: 600px;
    width: 90%;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #2a2a2a;
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

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

.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* File Upload Styles */
.file-upload-container {
    position: relative;
    margin-top: 8px;
}

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

.file-upload-display {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-display:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.file-upload-display i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 12px;
    display: block;
}

.file-upload-text {
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.file-upload-hint {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* File Preview Styles */
.file-preview {
    margin-top: 12px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
}

.file-preview-item i {
    color: #667eea;
    font-size: 20px;
}

.file-name {
    flex: 1;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.remove-file {
    background: #f44336;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 6px 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-file:hover {
    background: #d32f2f;
}

.remove-file i {
    font-size: 12px;
    color: white;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Google Drive Integration Styles */
.gdrive-integration-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.section-title i {
    color: #667eea;
    font-size: 28px;
}

.section-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.gdrive-config-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Google Drive Icon Colors */
.card-icon.gdrive {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
}

.card-icon.test {
    background: linear-gradient(135deg, #fbbc04 0%, #ff6d01 100%);
}

.card-icon.folders {
    background: linear-gradient(135deg, #ea4335 0%, #f28b82 100%);
}

/* Google Drive Status */
.gdrive-status {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.gdrive-status.status-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.gdrive-status.status-success .status-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.gdrive-status.status-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
}

.gdrive-status.status-warning .status-icon {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.gdrive-status.status-info {
    background: #438cfc0f;
    border-color: rgb(68 172 255 / 30%);
}

.gdrive-status.status-info .status-icon {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 18px;
}

.status-text h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.status-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

/* Google Drive API Configuration Modal */
.gdrive-config-modal {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.gdrive-config-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.gdrive-config-modal .modal-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.gdrive-config-modal .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gdrive-config-modal .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gdrive-config-modal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.gdrive-config-modal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gdrive-config-modal .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.api-config-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.config-group label {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.config-group input {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #2a2a2a;
    color: white;
    font-size: 14px;
}

.config-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.config-help {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.config-help h5 {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.config-help p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.config-help ul {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.config-help li {
    margin-bottom: 4px;
}

/* File Upload Progress */
.upload-progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
}

/* Folder Creation Modal Styles */
.folder-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.folder-preview h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.folder-tree {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    color: #495057;
}

.folder-item.main-folder {
    font-weight: 600;
    color: #007bff;
}

.folder-item i {
    margin-right: 8px;
    color: #ffc107;
}

.folder-children {
    margin-left: 20px;
    border-left: 2px solid #e9ecef;
    padding-left: 15px;
}

.folder-children .folder-item {
    color: #6c757d;
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

/* Active Folder Display */
.active-folder-info {
    margin-top: 15px;
    padding: 10px;
    background: #405a76;
    border-radius: 6px;
    border: 1px solid #a2cfff;
}

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

.folder-info i {
    color: #c3e7ff;
}

.folder-label {
    font-weight: 600;
    color: #effbff;
}

.folder-name {
    color: #2c2c2c;
    font-weight: 500;
    background: #ffffff73;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #c4e1ff;
}
@media (max-width: 768px) {
    .gdrive-integration-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-title i {
        font-size: 24px;
    }
    
    .gdrive-config-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gdrive-status {
        padding: 15px;
    }
    
    .status-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .status-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Comment Attachment Styles */
.comment-attachment {
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

/* Multiple attachments container */
.attachments-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.comment-attachment.error {
    border-left: none;
    background: transparent;
}

/* Image Attachment Styles */
.image-attachment {
    background-color: #303030;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.image-thumbnail-container {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-thumbnail-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 8px;
}

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

.image-overlay i {
    color: white;
    font-size: 20px;
}

.image-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.image-name {
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    line-height: 1.3;
    word-break: break-word;
}

.image-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    justify-content: center;
}

.image-size {
    color: #b0b0b0;
    font-weight: 500;
}

.image-format {
    color: #ffffff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Document Attachment Styles */
.document-attachment {
    background-color: #303030;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.attachment-info i {
    color: #b0b0b0;
}

.attachment-link {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
}

.attachment-link:hover {
    text-decoration: underline;
}

.attachment-size {
    color: #b0b0b0;
    font-size: 12px;
}

.attachment-error {
    color: #dc3545;
    font-size: 12px;
}

/* Image Modal Styles */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.image-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.image-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.image-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    color: #333;
}

.image-modal-body {
    padding: 20px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Storage Info Styles */
.storage-info {
    margin-top: 8px;
    font-size: 11px;
    color: #8e8e8e;
}

.storage-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

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

.storage-label {
    font-weight: 500;
}

.storage-value {
    font-weight: 600;
    color: #667eea;
}

/* Chat Floating Action Button */
/* Notification Permission Button */
.notification-permission-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
    color: white;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

.notification-permission-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.notification-permission-btn i {
    font-size: 18px;
}

.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    color: white;
    font-size: 24px;
    overflow: visible;
}

/* Make FAB button a positioning context for pseudo-elements */
.chat-fab::before,
.chat-fab::after {
    position: absolute;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Removed pulsing animation from FAB button */
.chat-fab.has-notification {
    /* No animation - just a static indicator */
}

@keyframes pulseFab {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* Red dot indicator for new messages */
/* Removed ::after and ::before pseudo-elements - using .chat-notification-dot element instead */

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(3);
        opacity: 0;
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(3);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #1a1a1a;
}

/* Notification dot removed - using badge only */

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 600px;
    background: #2a2a2a;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.chat-header-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.chat-close:hover {
    opacity: 0.7;
}

/* Chat Users List */
.chat-users-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-users-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-users-header h4 {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.chat-users-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.chat-user-item {
    padding: 12px 16px;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-user-item:hover {
    background: rgba(16, 185, 129, 0.2);
}

.chat-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.chat-user-info {
    flex: 1;
}

.chat-user-name {
    font-weight: 500;
    color: white;
    font-size: 14px;
}

.chat-user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Chat Messages Container */
.chat-messages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.back-to-users {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.back-to-users:hover {
    opacity: 0.7;
}

.chat-recipient-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipient-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.recipient-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.sent {
    align-self: flex-end;
}

.chat-message.received {
    align-self: flex-start;
}

.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.sent .chat-message-bubble {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.received .chat-message-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-left-radius: 4px;
}

.chat-message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    padding: 0 4px;
}

.chat-input-container {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.chat-input:focus {
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.15);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send:hover {
    transform: scale(1.1);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Emoji Button */
.chat-emoji-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
}

.chat-emoji-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    transform: scale(1.1);
}

/* Emoji Picker */
.emoji-picker {
    position: absolute;
    bottom: 60px;
    left: 16px;
    right: 16px;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1002;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.emoji-picker-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.emoji-picker-header span {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.emoji-picker-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.emoji-picker-close:hover {
    opacity: 0.7;
}

.emoji-categories {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.emoji-category-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-category-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.emoji-category-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.emoji-grid {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 200px;
}

.emoji-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.emoji-item:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    transform: scale(1.2);
}

/* Responsive Chat */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100% - 32px);
        height: calc(100vh - 120px);
        bottom: 16px;
        right: 16px;
    }
    
    .chat-fab {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
}

/* Profile Settings Page Styles */
.profile-settings-container {
    min-height: 100vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

.profile-settings-main {
    flex: 1;
    padding: 40px 30px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.profile-settings-card {
    background-color: #2a2a2a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4c6ef5 0%, #364fc7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.profile-card-title-section {
    flex: 1;
}

.profile-card-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.profile-card-description {
    color: #ccc;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.profile-card-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notification-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.status-label {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.status-value {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

.status-value.success {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.status-value.warning {
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
}

.status-value.error {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.notification-toggle-section {
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.toggle-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 32px;
    background-color: #3a3a3a;
    border-radius: 16px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch.active {
    background-color: #4c6ef5;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked ~ .toggle-switch {
    background-color: #4c6ef5;
}

.toggle-input:checked ~ .toggle-switch .toggle-slider {
    transform: translateX(24px);
}

.notification-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-request-permission {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4c6ef5 0%, #364fc7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-request-permission:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.4);
}

.btn-request-permission:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-request-permission i {
    font-size: 14px;
}

.notification-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: rgba(76, 110, 245, 0.1);
    border: 2px solid rgba(76, 110, 245, 0.2);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 14px;
    line-height: 1.5;
}

.notification-info i {
    font-size: 18px;
    color: #4c6ef5;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-info span {
    flex: 1;
}

/* Notification Preference Items */
.notification-preference-item {
    padding: 16px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

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

.notification-preference-item .toggle-label {
    margin: 0;
}

/* Responsive Design for Profile Settings */
@media (max-width: 768px) {
    .profile-settings-main {
        padding: 20px 15px;
    }
    
    .profile-settings-card {
        padding: 20px;
    }
    
    .profile-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .toggle-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Custom Scrollbars - Fancy Matte Black & Dark Grey Theme */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #333333 0%, #2a2a2a 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #3a3a3a 0%, #2f2f2f 100%);
}

::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a #1a1a1a;
}

/* Specific scrollbar styles for chat elements */
.chat-users-container::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.emoji-grid::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.chat-users-container::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.emoji-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-users-container::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.emoji-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.chat-users-container::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #333333 0%, #2a2a2a 100%);
}
