/* Custom CSS for Jelajah Aduan Page */

/* Breadcrumb Responsive Styles - Global */
@media (min-width: 670px) and (max-width: 1024px) {
    /* Target breadcrumb nav elements */
    nav.flex.items-center.space-x-2 {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
        align-items: baseline; /* Better alignment for mixed content */
    }
    
    /* Fix alignment issues in breadcrumb */
    nav.flex.items-center.space-x-2 a {
        display: inline-flex;
        align-items: center;
        line-height: 1.2;
    }
    
    nav.flex.items-center.space-x-2 a i {
        line-height: 1;
        vertical-align: middle;
    }
    
    nav.flex.items-center.space-x-2 span {
        display: inline-flex;
        align-items: center;
        line-height: 1.2;
    }
    
    nav.flex.items-center.space-x-2 i.fa-chevron-right {
        line-height: 1;
        vertical-align: middle;
        margin: 0 0.25rem;
    }
    
    /* Custom scrollbar for breadcrumb */
    nav.flex.items-center.space-x-2::-webkit-scrollbar {
        height: 3px;
    }
    
    nav.flex.items-center.space-x-2::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 2px;
    }
    
    nav.flex.items-center.space-x-2::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }
    
    nav.flex.items-center.space-x-2::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    
    /* Ensure breadcrumb items don't wrap */
    nav.flex.items-center.space-x-2 > * {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Adjust spacing for better fit */
    nav.flex.items-center.space-x-2 {
        gap: 0.5rem;
    }
}

/* Global breadcrumb alignment fixes */
nav.flex.items-center.space-x-2 {
    align-items: center;
}

nav.flex.items-center.space-x-2 a {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

nav.flex.items-center.space-x-2 a i {
    line-height: 1;
    vertical-align: middle;
    margin-right: 0.25rem;
}

nav.flex.items-center.space-x-2 span {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

nav.flex.items-center.space-x-2 i.fa-chevron-right {
    line-height: 1;
    vertical-align: middle;
    margin: 0 0.5rem;
    font-size: 0.75rem;
}

/* Additional responsive adjustments for smaller screens */
@media (max-width: 669px) {
    nav.flex.items-center.space-x-2 {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    nav.flex.items-center.space-x-2 .text-sm {
        font-size: 0.75rem;
    }
    
    nav.flex.items-center.space-x-2 i.fa-chevron-right {
        margin: 0 0.25rem;
    }
}

/* Footer Card Responsive Styles - Improved */
.footer-card-responsive {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-actions-section {
    order: 1;
}

.footer-bookmark-section {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.action-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bookmark-info-wrapper {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.mark-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}

.mark-button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.mark-button.marked {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.mark-button.marked:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Responsive breakpoints for footer card */
@media (min-width: 640px) {
    .footer-card-responsive {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-actions-section {
        order: 1;
    }
    
    .footer-bookmark-section {
        order: 2;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .action-buttons-wrapper {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .footer-card-responsive {
        gap: 2rem;
    }
    
    .action-buttons-wrapper {
        gap: 1.25rem;
    }
    
    .footer-bookmark-section {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-card-responsive {
        gap: 3rem;
    }
    
    .action-buttons-wrapper {
        gap: 1.5rem;
    }
    
    .footer-bookmark-section {
        gap: 2rem;
    }
}

/* Special handling for very small screens */
@media (max-width: 480px) {
    .footer-card-responsive {
        gap: 0.75rem;
    }
    
    .action-buttons-wrapper {
        gap: 0.5rem;
    }
    
    .footer-bookmark-section {
        gap: 0.5rem;
    }
    
    .mark-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Meta Info Responsive Styles */
.meta-info-responsive {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.meta-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Mobile responsive - stack vertically */
@media (max-width: 640px) {
    .meta-info-responsive {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .meta-item {
        width: 100%;
        padding: 0.25rem 0;
    }
}

/* Tablet responsive - wrap horizontally */
@media (min-width: 641px) and (max-width: 768px) {
    .meta-info-responsive {
        gap: 1.5rem;
    }
}

/* Desktop responsive - single line */
@media (min-width: 769px) {
    .meta-info-responsive {
        gap: 2rem;
    }
}

/* Responsive adjustments */
@media (min-width: 475px) {
    .xs\:inline {
        display: inline !important;
    }
    
    .xs\:hidden {
        display: none !important;
    }
}

@media (max-width: 474px) {
    .xs\:inline {
        display: none !important;
    }
    
    .xs\:hidden {
        display: inline !important;
    }
}


/* Search Input Styles */
.search-input {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input:focus {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

/* Modern Button Styles */
.btn-modern {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Topic Tag Styles */
.topic-tag {
    transition: all 0.3s ease;
}

.topic-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Line Clamp Utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Container Styles */
.container {
    max-width: 1200px;
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Custom Select Styling */
.custom-select {
    width: 100%;
    min-width: 350px;
}

@media (max-width: 640px) {
    .custom-select {
        min-width: 100%;
    }
}

/* Status Badge Colors */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.status-badge.diproses {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.status-badge.selesai {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.status-badge.ditolak {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.status-badge.menunggu {
    background-color: #e0e7ff;
    color: #3730a3;
    border-color: #6366f1;
}

.status-badge.dalam-penanganan {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.status-badge.default {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

/* Pagination Custom Styles */
.pagination-info {
    font-size: 0.875rem;
    color: #6b7280;
}

.pagination-info .font-medium {
    font-weight: 500;
    color: #374151;
}

.dark .pagination-info {
    color: #9ca3af;
}

.dark .pagination-info .font-medium {
    color: #f3f4f6;
}

/* Search Button Fix */
.search-btn {
    background: linear-gradient(to right, #2563eb, #4f46e5) !important;
    color: white !important;
    border: none !important;
}

.search-btn:hover {
    background: linear-gradient(to right, #1d4ed8, #4338ca) !important;
    color: white !important;
}

/* Input Search Icon Fix */
.search-input-container {
    position: relative;
}

.search-input-container .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 10;
}

.search-input-container input {
    padding-left: 3rem !important;
}

/* ===========================================
   INDEX PAGE STYLES
   =========================================== */

/* File Upload Styles for Index */
.hasImage:hover section {
    background-color: rgba(5, 5, 5, 0.4);
}

.hasImage:hover button:hover {
    background: rgba(5, 5, 5, 0.45);
}

#overlay p, #overlay i {
    opacity: 0;
}

#overlay.draggedover {
    background-color: rgba(255, 255, 255, 0.7);
}

#overlay.draggedover p,
#overlay.draggedover i {
    opacity: 1;
}

.group:hover .group-hover\:text-blue-800 {
    color: #2b6cb0;
}

/* ===========================================
   BERANDA PAGE STYLES
   =========================================== */

/* File Upload Styles for Beranda */
.hasImage:hover section {
    background-color: rgba(5, 5, 5, 0.4);
}

.hasImage:hover button:hover {
    background: rgba(5, 5, 5, 0.45);
}

#overlay p, #overlay i {
    opacity: 0;
}

#overlay.draggedover {
    background-color: rgba(255, 255, 255, 0.7);
}

#overlay.draggedover p,
#overlay.draggedover i {
    opacity: 1;
}

.group:hover .group-hover\:text-blue-800 {
    color: #2b6cb0;
}

/* Update Aduan Cards */
.update-aduan-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.update-aduan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.update-aduan-card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.update-aduan-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.update-aduan-card .card-text {
    flex: 1;
    overflow: hidden;
}

.update-aduan-card .status-badge {
    margin-top: auto;
    align-self: flex-start;
}

/* Rich Text Content */
.rich-text-content {
    line-height: 1.6;
    color: #374151;
}

.rich-text-content p {
    margin-bottom: 0.5rem;
}

.rich-text-content p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
    .update-aduan-card {
        margin-bottom: 1rem;
    }
    
    .update-aduan-card .card {
        min-height: auto;
        padding: 1rem;
    }
}

/* ===========================================
   BUAT ADUAN PAGE STYLES
   =========================================== */

/* Stepper Styles */
.step-content {
    min-height: 500px;
}

.stepper-line {
    transition: all 0.3s ease;
}

.stepper-circle {
    transition: all 0.3s ease;
}

/* Quill Editor Custom Styles */
.ql-editor {
    min-height: 150px;
    font-size: 14px;
    line-height: 1.5;
}

.ql-toolbar {
    border-top: 1px solid #d1d5db;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.ql-container {
    border-bottom: 1px solid #d1d5db;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: normal;
}

/* ===========================================
   SELECT2 TAILWIND STYLES
   =========================================== */

/* Select2 Tailwind Class */
.select2-tailwind {
    /* This class is used to identify select2 elements that should use tailwind styling */
}

/* Base Select2 Container */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #9ca3af !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* Select2 Rendered Text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #374151 !important;
    line-height: 44px !important;
    padding-left: 16px !important;
    padding-right: 40px !important;
    font-size: 16px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
}

/* Select2 Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 12px !important;
    top: 2px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
    height: 0 !important;
    left: 50% !important;
    margin-left: -4px !important;
    margin-top: -2px !important;
    position: absolute !important;
    top: 50% !important;
    width: 0 !important;
}

/* Select2 Dropdown */
.select2-container--default .select2-dropdown {
    border: 2px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    margin-top: 4px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
    font-size: 14px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* Select2 Results */
.select2-container--default .select2-results__option {
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected=true] {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

/* Select2 Loading */
.select2-container--default .select2-results__option[role=group] {
    padding: 0 !important;
}

.select2-container--default .select2-results__option .select2-results__group {
    padding: 8px 16px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    background-color: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Select2 Clear Button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #6b7280 !important;
    font-size: 18px !important;
    line-height: 44px !important;
    padding-right: 8px !important;
    transition: color 0.2s ease !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #ef4444 !important;
}

/* Select2 Multiple Selection */
.select2-container--default .select2-selection--multiple {
    border: 2px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    min-height: 48px !important;
    padding: 4px 8px !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-selection--multiple:hover {
    border-color: #9ca3af !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 6px !important;
    color: #1d4ed8 !important;
    padding: 4px 8px !important;
    margin: 2px !important;
    font-size: 14px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #6b7280 !important;
    margin-right: 6px !important;
    transition: color 0.2s ease !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ef4444 !important;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .select2-container--default .select2-selection--single {
        height: 48px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 36px !important;
        font-size: 16px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 46px !important;
    }
    
    .select2-container--default .select2-dropdown {
        margin-top: 2px !important;
    }
}

/* ===========================================
   INDEX PAGE CARD STYLES
   =========================================== */

/* Aduan Card Styles for Index Page */
.aduan-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
}

.aduan-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Card Link - Makes entire card clickable */
.aduan-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.aduan-card .card-link:hover {
    text-decoration: none;
    color: inherit;
}

.aduan-card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aduan-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.aduan-card .card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aduan-card .card-header {
    margin-bottom: 0.75rem;
}

.aduan-card .card-code {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.aduan-card .card-code:hover {
    color: #2563eb;
}

.aduan-card .card-meta {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.aduan-card .card-meta i {
    margin-right: 0.25rem;
}

.aduan-card .card-content-text {
    flex: 1;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.aduan-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.aduan-card .card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.aduan-card .card-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.aduan-card .card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aduan-card .mark-count {
    color: #6b7280;
    font-size: 0.75rem;
}

/* ===========================================
   ADUANKU PAGE STYLES
   =========================================== */

/* Tab Navigation Styles */
.tab-navigation {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.tab-navigation .tab-list {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.tab-navigation .tab-item {
    flex: 1;
}

.tab-navigation .tab-link {
    display: block;
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
}

.tab-navigation .tab-link:hover {
    background: #f3f4f6;
    color: #374151;
}

.tab-navigation .tab-link.active {
    background: white;
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
    font-weight: 600;
}

.tab-navigation .tab-content {
    padding: 1.5rem;
}

/* Tab Navigation dalam container terpisah */
.bg-white .tab-navigation {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.bg-white .tab-navigation .tab-list {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
}

.bg-white .tab-navigation .tab-link.active {
    background: white;
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

/* Filter Section Styles - Simplified */
.filter-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.filter-section .filter-header {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
}

.filter-section .filter-group {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.filter-section .filter-group:last-child {
    border-bottom: none;
}

.filter-section .filter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.filter-section .filter-label-text {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.filter-section .filter-reset {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-section .filter-reset:hover {
    color: #2563eb;
}

.filter-section .filter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

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

.filter-section .checkbox-group {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.filter-section .checkbox-input {
    width: 1rem;
    height: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-section .checkbox-input:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.filter-section .checkbox-label {
    margin-left: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Simplified Filter Styles for New Layout */
.simple-filter {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.simple-filter .filter-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .simple-filter .filter-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.simple-filter .filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.simple-filter .filter-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    white-space: nowrap;
}

.simple-filter .filter-group input[type="date"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.simple-filter .filter-group input[type="date"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.simple-filter .filter-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.simple-filter .filter-group input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.simple-filter .filter-group .checkbox-label {
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    margin-left: 0.25rem;
}

.simple-filter .reset-btn {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
}

.simple-filter .reset-btn:hover {
    color: #2563eb;
}

/* Aduan Card Styles */
.aduan-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
}

.aduan-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Card Link - Makes entire card clickable */
.aduan-card .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.aduan-card .card-link:hover {
    text-decoration: none;
    color: inherit;
}

.aduan-card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aduan-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.aduan-card .card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.aduan-card .card-header {
    margin-bottom: 0.75rem;
}

.aduan-card .card-code {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.aduan-card .card-code:hover {
    color: #2563eb;
}

.aduan-card .card-meta {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.aduan-card .card-meta i {
    margin-right: 0.25rem;
}

.aduan-card .card-content-text {
    flex: 1;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.aduan-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.aduan-card .card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.aduan-card .card-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.aduan-card .card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aduan-card .mark-count {
    color: #6b7280;
    font-size: 0.75rem;
}

.aduan-card .mark-button {
    padding: 0.25rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    margin-top: 0.5rem;
}

.aduan-card .mark-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.aduan-card .mark-button.marked {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.aduan-card .mark-button.marked:hover {
    background: #fde68a;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-spinner svg {
    width: 2rem;
    height: 2rem;
    color: #3b82f6;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design for Index Page Cards */
@media (max-width: 768px) {
    .aduan-card {
        margin-bottom: 0.75rem;
    }
    
    .aduan-card .card-image {
        height: 150px;
    }
    
    .aduan-card .card-body {
        padding: 0.75rem;
    }
    
    .aduan-card .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .aduan-card .card-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-section {
        margin-bottom: 1rem;
    }
    
    .tab-navigation .tab-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .bg-white .tab-navigation .tab-list {
        border-radius: 8px 8px 0 0;
    }
    
    .bg-white .tab-navigation .tab-link.active {
        border-radius: 8px 8px 0 0;
    }
    
    /* Grid responsive adjustments */
    .grid.grid-cols-1.md\\:grid-cols-2.xl\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .grid.grid-cols-1.md\\:grid-cols-2.xl\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .aduan-card .card-image {
        height: 180px;
    }
    
    .aduan-card .card-body {
        padding: 1rem;
    }
    
    .aduan-card .card-meta {
        font-size: 0.75rem;
    }
    
    .aduan-card .card-content-text {
        font-size: 0.875rem;
    }
    
    .aduan-card .card-code {
        font-size: 0.875rem;
    }
    
    .aduan-card .card-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    .aduan-card .mark-count {
        font-size: 0.75rem;
    }
}

@media (min-width: 1280px) {
    .grid.grid-cols-1.md\\:grid-cols-2.xl\\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .aduan-card .card-image {
        height: 200px;
    }
    
    .aduan-card .card-body {
        padding: 1rem;
    }
    
    .aduan-card .card-meta {
        font-size: 0.75rem;
    }
    
    .aduan-card .card-content-text {
        font-size: 0.875rem;
    }
    
    .aduan-card .card-code {
        font-size: 0.875rem;
    }
    
    .aduan-card .card-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    .aduan-card .mark-count {
        font-size: 0.75rem;
    }
}

/* Mobile filter adjustments */
@media (max-width: 640px) {
    .simple-filter .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .aduan-card .card-image {
        height: 150px;
    }
    
    .aduan-card .card-body {
        padding: 0.75rem;
    }
    
    .aduan-card .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .aduan-card .card-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .aduan-card .card-meta {
        font-size: 0.75rem;
    }
    
    .aduan-card .card-content-text {
        font-size: 0.875rem;
    }
    
    .aduan-card .card-code {
        font-size: 0.75rem;
    }
    
    .aduan-card .card-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .aduan-card .mark-count {
        font-size: 0.75rem;
    }
    
    .simple-filter .filter-group .checkbox-container {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Aduanku page filter mobile optimization */
    .bg-white.rounded-2xl.shadow-sm.border.border-gray-200 {
        padding: 1rem !important;
    }
    
    /* Filter input mobile optimization */
    input[type="date"] {
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 44px; /* Touch target size */
    }
    
    /* Filter checkbox mobile optimization */
    .status {
        min-width: 20px !important;
        min-height: 20px !important;
        margin-right: 0.5rem;
    }
    
    /* Filter button mobile optimization */
    button[onclick*="reset"] {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    /* Filter label mobile optimization */
    label {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Filter container mobile spacing */
    .space-y-4 > * + * {
        margin-top: 1rem;
    }
    
    /* Filter flex wrap optimization */
    .flex.flex-wrap {
        gap: 0.75rem;
    }
    
    /* Filter responsive text */
    .text-sm {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Breadcrumbs mobile optimization */
    nav.flex.items-center.space-x-2 {
        flex-wrap: wrap;
        gap: 0.5rem;
        line-height: 1.5;
    }
    
    /* Breadcrumb links mobile optimization */
    nav.flex.items-center.space-x-2 a {
        font-size: 14px;
        padding: 0.25rem 0.5rem;
        border-radius: 0.375rem;
        transition: all 0.2s ease;
    }
    
    /* Breadcrumb separator mobile optimization */
    nav.flex.items-center.space-x-2 i.fas.fa-chevron-right {
        font-size: 10px;
        margin: 0 0.25rem;
    }
    
    /* Breadcrumb current page mobile optimization */
    nav.flex.items-center.space-x-2 span.text-gray-500 {
        font-size: 14px;
        padding: 0.25rem 0.5rem;
        background-color: #f3f4f6;
        border-radius: 0.375rem;
        color: #6b7280;
    }
    
    /* Breadcrumb icon mobile optimization */
    nav.flex.items-center.space-x-2 i.fas.fa-home {
        font-size: 12px;
    }
    
    /* Multi-level breadcrumbs mobile optimization */
    nav.flex.items-center.space-x-2 a + i + a {
        margin-left: 0.25rem;
    }
    
    /* Breadcrumb container mobile spacing */
    nav.flex.items-center.space-x-2 {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb hover effects mobile */
    nav.flex.items-center.space-x-2 a:hover {
        background-color: #eff6ff;
        color: #1d4ed8;
    }
    
    /* Breadcrumb text overflow handling */
    nav.flex.items-center.space-x-2 span,
    nav.flex.items-center.space-x-2 a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    
    /* Very small screens breadcrumb optimization */
    @media (max-width: 480px) {
        nav.flex.items-center.space-x-2 span,
        nav.flex.items-center.space-x-2 a {
            max-width: 150px;
            font-size: 13px;
        }
        
        nav.flex.items-center.space-x-2 {
            gap: 0.25rem;
        }
    }
    
    /* General mobile page title optimization */
    .text-3xl.sm\\:text-4xl {
        font-size: 1.75rem !important;
        line-height: 2rem !important;
    }
    
    /* Mobile page description optimization */
    .text-gray-600.max-w-2xl.mx-auto {
        font-size: 14px;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    /* Mobile container padding optimization */
    .container.mx-auto.px-4.sm\\:px-6.lg\\:px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Mobile section spacing optimization */
    .mb-8 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-6 {
        margin-bottom: 1rem !important;
    }
    
    /* Mobile card padding optimization */
    .bg-white.rounded-2xl.shadow-sm.border.border-gray-200 {
        padding: 1rem !important;
    }
    
    /* Mobile button optimization */
    button, .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    /* Mobile input optimization */
    input, select, textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 44px;
        padding: 0.75rem;
    }
    
    /* Mobile link optimization */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ===========================================
   DETAIL ADUAN PAGE STYLES
   =========================================== */

/* Attachment Styles */
.attachment-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.attachment-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.attachment-preview {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.attachment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attachment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.attachment-item:hover .attachment-overlay {
    opacity: 1;
}

.attachment-item:hover .attachment-image {
    transform: scale(1.05);
}

.attachment-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 2rem;
    bottom: -1.5rem;
    width: 2px;
    background: #e5e7eb;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-marker i {
    font-size: 0.75rem;
    color: #3b82f6;
}

.timeline-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.timeline-date {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 1rem;
}

.timeline-body {
    margin-top: 0.5rem;
}

.timeline-user {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.timeline-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.timeline-attachment {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

/* Chat Styles */
.chat-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message-user {
    display: flex;
    justify-content: flex-end;
}

.chat-message-admin {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.chat-avatar {
    flex-shrink: 0;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message-user .chat-bubble {
    background: #3b82f6;
    color: white;
}

.chat-header {
    margin-bottom: 0.25rem;
}

.chat-sender {
    font-weight: 600;
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-content {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.chat-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.chat-form {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Rating Stars - Removed duplicate, using the correct implementation below */

/* ===========================================
   FORM STYLES
   =========================================== */

/* Form Input Styles */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    transition: all 0.2s ease;
    resize: vertical;
}

.form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Styles */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Mark Button Styles */
.mark-button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mark-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.mark-button.marked {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.mark-button.marked:hover {
    background: #fde68a;
}

/* Status and Jenis Badge Styles */
.status-badge,
.jenis-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback.show {
    display: block;
}

/* ===========================================
   MODAL STYLES
   =========================================== */

.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS FOR NEW PAGES
   =========================================== */

@media (max-width: 768px) {
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .timeline-content {
        padding: 0.75rem;
    }
    
    .chat-bubble {
        max-width: 90%;
    }
    
    .btn-modern {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .attachment-preview {
        height: 100px;
    }
    
    .rating-stars {
        gap: 0.25rem;
    }
    
    .star-label {
        font-size: 1.5rem;
    }
    
    /* Attachment grid responsive */
    .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid.grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

header nav.sm\\:flex {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 2px solid #3b82f6 !important;
}

/* Fallback dengan selector yang lebih umum */
nav[class*="sm:flex"] {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 2px solid #3b82f6 !important;
}

/* Notification SVG Icon Fix */
#dropdownNotificationButton svg,
#dropdownNotificationMobileButton svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
}

/* Mobile notification icon size */
#dropdownNotificationMobileButton svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

/* Desktop notification icon size */
#dropdownNotificationButton svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    color: #0f172a !important;
}

/* Desktop notification button styling */
#dropdownNotificationButton {
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(15,23,42,0.12) !important;
}

/* Responsive color for desktop */
@media (min-width: 640px) {
    #dropdownNotificationButton svg {
        color: #0f172a !important;
    }
}

/* Hover effect for notification icons */
#dropdownNotificationButton:hover svg,
#dropdownNotificationMobileButton:hover svg {
    transform: scale(1.1) !important;
}

/* Ensure desktop notification is visible */
.sm\\:visible {
    visibility: visible !important;
}

/* Desktop notification button visibility */
@media (min-width: 640px) {
    #dropdownNotificationButton {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #dropdownNotificationButton svg {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE STYLES FOR JELAJAH ADUAN
   ======================================== */

/* Desktop styles for jelajah aduan page */
@media (min-width: 1024px) {
    /* Desktop card optimization */
    .card-hover {
        padding: 1.5rem;
    }
    
    /* Desktop image optimization */
    .card-hover img {
        height: 9rem; /* 144px - lg:h-36 */
        border-radius: 0.75rem;
    }
    
    /* Desktop action buttons optimization */
    .card-hover .flex.flex-col.sm\\:flex-row.items-stretch.sm\\:items-center.gap-2.sm\\:gap-3 a,
    .card-hover .flex.flex-col.sm\\:flex-row.items-stretch.sm\\:items-center.gap-2.sm\\:gap-3 button {
        padding: 0.5rem 1rem;
        font-size: 14px;
        width: auto;
        justify-content: center;
        min-height: auto;
    }
    
    /* Desktop status badge optimization */
    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        max-width: none;
    }
}

/* Mobile-specific styles for jelajah aduan page */
@media (max-width: 640px) {
    /* Container adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Search section mobile optimization */
    .search-input-container {
        position: relative;
    }
    
    .search-input {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .search-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6b7280;
        z-index: 10;
    }
    
    /* Button mobile optimization */
    .search-btn {
        padding: 1rem 1.5rem;
        font-size: 16px; /* Prevent zoom on iOS */
        width: 100%;
        justify-content: center;
    }
    
    /* Card mobile optimization */
    .card-hover {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Image mobile optimization */
    .card-hover img {
        height: 12rem; /* 192px */
        border-radius: 0.75rem;
    }
    
    /* Status badge mobile optimization */
    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }
    
    /* Action buttons mobile optimization */
    .card-hover .flex.flex-col.sm\\:flex-row.items-stretch.sm\\:items-center.gap-2.sm\\:gap-3 a,
    .card-hover .flex.flex-col.sm\\:flex-row.items-stretch.sm\\:items-center.gap-2.sm\\:gap-3 button {
        padding: 0.75rem 1rem;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        min-height: 44px; /* Touch target size */
    }
    
    /* Pagination mobile optimization */
    .pagination-info {
        font-size: 0.875rem;
        line-height: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    /* Topic tags mobile optimization */
    .topic-tag {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    /* Header mobile optimization */
    .text-3xl.sm\\:text-4xl {
        font-size: 1.875rem; /* 30px */
        line-height: 2.25rem;
    }
    
    /* Filter section mobile optimization */
    .bg-gradient-to-r.from-gray-50.to-gray-100 {
        padding: 1rem;
    }
    
    /* Select dropdown mobile optimization */
    select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem 1rem;
        min-height: 44px; /* Touch target size */
    }
}

/* Tablet optimization (640px - 1024px) */
@media (min-width: 640px) and (max-width: 1024px) {
    /* Card tablet optimization */
    .card-hover {
        padding: 1.25rem;
    }
    
    .card-hover img {
        height: 14rem; /* 224px */
    }
    
    /* Action buttons tablet optimization */
    .card-hover .flex.flex-col.sm\\:flex-row.items-stretch.sm\\:items-center.gap-2.sm\\:gap-3 a,
    .card-hover .flex.flex-col.sm\\:flex-row.items-stretch.sm\\:items-center.gap-2.sm\\:gap-3 button {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }
}

/* Touch-friendly improvements for all mobile devices */
@media (max-width: 1024px) {
    /* Ensure all interactive elements have adequate touch targets */
    a, button, select, input {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve text readability on mobile */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Smooth scrolling for mobile */
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-hover img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support (class-based) */
.dark .card-hover {
    background-color: #1e293b;
    border-color: #334155;
}

.dark .card-hover:hover {
    background-color: #334155;
}

.dark .status-badge {
    background-color: #334155;
    color: #f9fafb;
    border-color: #475569;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label,
.rating-stars .star-label {
    font-size: 2rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars .star-label:hover,
.rating-stars .star-label:hover ~ .star-label,
.rating-stars input[type="radio"]:checked ~ label,
.rating-stars input[type="radio"]:checked ~ .star-label {
    color: #fbbf24;
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars input[type="radio"]:checked ~ .star-label {
    color: #f59e0b;
}

.rating-stars:hover input[type="radio"]:checked ~ label,
.rating-stars:hover input[type="radio"]:checked ~ .star-label {
    color: #fbbf24;
}

/* Modal rating styling */
#modal-rating .modal-content {
    border-radius: 1rem;
}

#modal-rating .form-textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#modal-rating .form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.is-invalid {
    border-color: #dc2626 !important;
}

.is-invalid:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* === Dark Mode Global Overrides === */
.dark .rating-stars label,
.dark .rating-stars .star-label {
    color: #4b5563;
}

.dark #modal-rating .modal-content {
    background-color: #1e293b;
    border-color: #334155;
}

.dark #modal-rating .form-textarea {
    background-color: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

.dark #modal-rating .form-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.dark .bg-loader {
    background: rgba(15, 23, 42, 0.8);
}

/* === Dark Mode: Select2 (must beat light !important rules) === */
.dark .select2-container--default .select2-selection--single {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

.dark .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f1f5f9 !important;
}

.dark .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #64748b !important;
}

.dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent !important;
}

.dark .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2) !important;
}

.dark .select2-dropdown {
    background-color: #1e293b !important;
    border-color: #475569 !important;
}

.dark .select2-container--default .select2-results__option {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

.dark .select2-container--default .select2-results__option--highlighted[aria-selected],
.dark .select2-container--default .select2-results__option--highlighted[aria-selected=true] {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
}

.dark .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #0f172a !important;
    color: #93c5fd !important;
}

.dark .select2-search__field {
    background-color: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

.dark .select2-container--default .select2-results__option .select2-results__group {
    color: #94a3b8 !important;
}

/* === Dark Mode: Notification icons === */
.dark #dropdownNotificationButton,
.dark #dropdownNotificationMobileButton {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

.dark #dropdownNotificationButton svg,
.dark #dropdownNotificationMobileButton svg {
    color: #e2e8f0 !important;
}

.dark #dropdownNotificationButton:hover svg,
.dark #dropdownNotificationMobileButton:hover svg {
    color: #ffffff !important;
}

@media (min-width: 640px) {
    .dark #dropdownNotificationButton svg {
        color: #e2e8f0 !important;
    }
}

/* === Dark Mode: Rich text / meta / cards / tabs / timeline === */
.dark .rich-text-content,
.dark .rich-text-content p,
.dark .rich-text-content span,
.dark .rich-text-content li,
.dark .rich-text-content div {
    color: #e2e8f0 !important;
}

.dark .rich-text-content a {
    color: #93c5fd !important;
}

.dark .meta-info-responsive {
    color: #94a3b8 !important;
}

.dark .aduan-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

.dark .aduan-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.dark .aduan-card .card-code {
    color: #93c5fd !important;
}

.dark .aduan-card .card-meta,
.dark .aduan-card .card-meta i,
.dark .aduan-card .mark-count {
    color: #94a3b8 !important;
}

.dark .aduan-card .card-content-text {
    color: #e2e8f0 !important;
}

.dark .aduan-card .mark-button {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #475569 !important;
}

.dark .aduan-card .mark-button:hover,
.dark .aduan-card .mark-button.marked {
    background: #1e3a8a !important;
    color: #93c5fd !important;
    border-color: #3b82f6 !important;
}

.dark .tab-navigation,
.dark .bg-white .tab-navigation {
    background: transparent !important;
}

.dark .tab-navigation .tab-list,
.dark .bg-white .tab-navigation .tab-list {
    background: #0f172a !important;
}

.dark .tab-navigation .tab-link {
    color: #94a3b8 !important;
}

.dark .tab-navigation .tab-link:hover {
    color: #e2e8f0 !important;
    background: #334155 !important;
}

.dark .tab-navigation .tab-link.active,
.dark .bg-white .tab-navigation .tab-link.active {
    background: #1e293b !important;
    color: #60a5fa !important;
}

.dark .timeline-content {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.dark .timeline-marker {
    background: #1e293b !important;
    border-color: #475569 !important;
}

.dark .timeline-title,
.dark .timeline-user {
    color: #e2e8f0 !important;
}

.dark .timeline-date,
.dark .timeline-description {
    color: #94a3b8 !important;
}

.dark .timeline-item:not(:last-child)::before {
    background: #475569 !important;
}

.dark .mark-button {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #475569 !important;
}

.dark .swal2-popup {
    background: #1e293b !important;
    color: #f1f5f9 !important;
}

.dark .swal2-title {
    color: #f1f5f9 !important;
}

.dark .swal2-html-container {
    color: #94a3b8 !important;
}

.dark .swal2-confirm {
    background-color: #2563eb !important;
}

.dark .swal2-cancel {
    background-color: #475569 !important;
    color: #f1f5f9 !important;
}

.dark .swal2-input,
.dark .swal2-textarea {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

/* === Dark Mode: Chat / Diskusi bubbles === */
.dark .chat-container {
    background: #0f172a !important;
}

.dark .chat-bubble {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid #334155;
}

.dark .chat-message-user .chat-bubble {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: transparent;
}

.dark .chat-sender,
.dark .chat-content,
.dark .chat-content p,
.dark .chat-content span,
.dark .chat-content div,
.dark .chat-time {
    color: inherit !important;
}

.dark .chat-message-admin .chat-content a,
.dark .chat-message-admin .attachment-link {
    color: #93c5fd !important;
}

.dark .chat-message-user .chat-content a,
.dark .chat-message-user .attachment-link {
    color: #dbeafe !important;
}

.dark .chat-form {
    background: #1e293b !important;
    border-color: #334155 !important;
}