/* Page base styles */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Performance optimization */
* {
    box-sizing: border-box;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Touch device optimization */
@media (hover: none) {

    .nav-link::before,
    .mobile-nav-link::before,
    button::before {
        display: none;
    }
}

/* Navigation glass effect */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* Logo container */
.logo-container {
    position: relative;
    padding: 8px;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.1) 0%,
            rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.6s ease;
}

.logo-container:hover::before {
    left: 100%;
}

.logo-container:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo-container:hover .logo-image {
    transform: scale(1.05);
}

/* Brand text */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, #1f2937 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1;
    margin: 0;
    margin-top: 1px;
}

/* Navigation links container */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Desktop navigation display control */
.desktop-nav {
    display: flex;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #374151;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Hamburger menu animation */
.mobile-menu-btn.menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile navigation menu */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

.mobile-nav.mobile-nav-open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-nav-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* Prevent background scrolling */
body.menu-open {
    overflow: hidden;
}

/* Navigation link base styles */
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link:hover {
    transform: translateY(-1px) scale(1.02);
}

/* Navigation link variants */
.nav-link-primary {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.nav-link-primary:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.15));
    border-color: rgba(239, 68, 68, 0.3);
}

.nav-link-secondary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.nav-link-secondary:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
    border-color: rgba(59, 130, 246, 0.3);
}

.nav-link-accent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.nav-link-accent:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border-color: rgba(16, 185, 129, 0.3);
}

.nav-link-special {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(168, 85, 247, 0.2);
    color: #7c3aed;
}

.nav-link-special:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    border-color: rgba(168, 85, 247, 0.3);
}

/* Navigation scroll effect */
.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 12px 40px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Navigation entrance animation */
.navbar-glass {
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo pulse effect */
.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Input unified styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    outline: none;
    background-color: #F9FAFB;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #1F2937;
}

.form-input:focus {
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input[readonly] {
    background-color: #F3F4F6;
    border-color: #D1D5DB;
}

/* Placeholder styles */
::placeholder {
    font-weight: 500;
    opacity: 0.7;
    color: #6B7280;
}

:-ms-input-placeholder {
    font-weight: 500;
    color: #6B7280;
}

::-ms-input-placeholder {
    font-weight: 500;
    color: #6B7280;
}

/* Status tag styles */
.status-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.bg-primary {
    background-color: #3B82F6;
}

.bg-red-500 {
    background-color: #EF4444;
}

.bg-gray-400 {
    background-color: #9CA3AF;
}

/* Basic utility classes */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.flex {
    display: flex !important;
}

label {
    font-weight: 600;
    color: #1F2937;
    font-size: 15px;
    letter-spacing: -0.2px;
}

/* Photo carousel container */
.carousel {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-item {
    scroll-snap-align: start;
}

/* Image preview modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 5vh;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* General modal styles */
.contact-modal,
.summary-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.summary-modal-content {
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    padding: 32px;
    border-radius: 16px;
    text-align: left;
    max-width: 800px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #fed7e2;
    position: relative;
    display: flex;
    flex-direction: column;
}

.summary-modal-content .title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #b91c1c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #fecdd3;
}

.contact-modal-content {
    background: #fff;
    padding: 0;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.summary-modal-content p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
    line-height: 1.6;
    white-space: normal;
    word-break: break-word;
}

/* Close button styles */
.close-button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.contact-modal-close {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-modal-close:hover {
    background: linear-gradient(90deg, #388E3C, #4CAF50);
    transform: scale(1.05);
}

/* Contact modal specific styles */
.contact-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.contact-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-title i {
    color: #2563eb;
    margin-right: 10px;
}

.contact-modal-body {
    padding: 16px 24px;
}

.contact-section {
    margin-bottom: 16px;
}

.contact-section:last-child {
    margin-bottom: 0;
}

.contact-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #374151;
    margin: 8px 0;
    line-height: 1.5;
    word-break: break-all;
}

.contact-item .contact-icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    color: #9ca3af;
}

.contact-item .contact-icon.telegram {
    color: #229ED9;
}

.contact-item .contact-icon.web {
    color: #4f46e5;
}

.contact-item strong {
    font-weight: 500;
    margin-right: 8px;
    color: #1f2937;
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-address {
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
}

.address-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 4px 0;
}

.address-string {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    color: #1f2937;
    word-break: break-all;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.address-highlight {
    color: #ef4444;
    font-weight: bold;
}

/* Anti-copy styles */
.no-copy {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* State control classes */
.modal-show {
    display: flex !important;
}

.modal-hide {
    display: none !important;
}

.default-state-show {
    display: block !important;
}

.default-state-hide {
    display: none !important;
}

.carousel-overflow-hidden {
    overflow: hidden !important;
}

/* Registration date styles */
.reg-date-old {
    font-weight: bold !important;
    color: #ff0000 !important;
}

.reg-date-very-old {
    font-weight: bold !important;
    color: #ff4500 !important;
}

.reg-date-old-medium {
    font-weight: bold !important;
    color: #ffa500 !important;
}

.reg-date-medium {
    font-weight: bold !important;
    color: #008000 !important;
}

.reg-date-recent {
    font-weight: bold !important;
    color: #0000ff !important;
}

.reg-date-normal {
    font-weight: normal !important;
    color: inherit !important;
}

/* Button component styles */
.btn-primary {
    border-radius: 12px;
    background: linear-gradient(to right, #9333ea, #2563eb);
    color: white;
    padding: 12px 0;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    letter-spacing: 0.025em;
    transform: scale(1);
}

.btn-primary:hover {
    background: linear-gradient(to right, #7c3aed, #1d4ed8);
    transform: scale(1.05);
}

.btn-secondary {
    border-radius: 12px;
    background-color: #6b7280;
    color: white;
    padding: 12px 0;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    letter-spacing: 0.025em;
    grid-column: span 2;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-info {
    border-radius: 12px;
    background-color: #3b82f6;
    color: white;
    padding: 10px 0;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.btn-info:hover {
    background-color: #2563eb;
}

.btn-accent {
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(to right, #f97316, #ec4899);
    color: white;
    padding: 12px 0;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.btn-accent:hover {
    background: linear-gradient(to right, #ea580c, #db2777);
}

.btn-full-span {
    grid-column: span 2;
}

/* Card component styles */
.card-purple {
    background: linear-gradient(to bottom right, #faf5ff, #eff6ff);
    border-radius: 16px;
}

.card-white {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px 24px;
}

.card-status-blue {
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
    border-radius: 12px;
    padding: 18px 24px;
}

.card-status-green {
    background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);
    border-radius: 12px;
    padding: 18px 24px;
}

/* Icon decoration styles */
.icon-container-purple {
    width: 56px;
    height: 56px;
    background-color: #f3e8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.icon-container-gray {
    width: 96px;
    height: 96px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* Title styles */
.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

.form-section-title,
.detail-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Status tag styles */
.status-normal {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 8px;
    background-color: #dcfce7;
    color: #166534;
}

.status-banned {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 8px;
    background-color: #fecaca;
    color: #991b1b;
}

.status-default {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Query area layout styles */
.query-main-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 32px;
    margin-bottom: 32px;
}

.query-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
}

.query-form-section {
    position: sticky;
    top: 120px;
}

.query-form-card {
    padding: 32px 24px 40px;
}

.query-results-section {
    min-height: 300px;
}

.query-button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.status-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Layout utility classes */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.grid-md-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.space-y-4>*+* {
    margin-top: 18px;
}

.space-y-6>*+* {
    margin-top: 24px;
}

/* Query form element spacing */
.query-form-card .space-y-4>*+* {
    margin-top: 22px;
}

/* Increase query button height */
.query-form-card .btn-primary {
    padding: 14px 0;
}

/* Default state styles */
.default-state {
    text-align: center;
    padding: 64px 0;
}

.default-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.default-state p {
    color: #6b7280;
}

/* Photo carousel styles */
.photo-carousel {
    display: flex;
    overflow: hidden;
    gap: 16px;
    position: relative;
    scroll-snap-type: x mandatory;
    border-radius: 8px;
    background-color: #f9fafb;
    padding: 16px;
    min-height: 120px;
}

/* Photo banner styles */
.photo-banner-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-banner-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    background-color: #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.main-banner-image:hover {
    transform: scale(1.02);
}

.thumbnail-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail-image:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.thumbnail-image.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.no-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    min-height: 80px;
}

/* Status card title styles */
.status-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

/* Responsive design - Desktop first strategy */
/* Three main breakpoints: tablet, large mobile, small mobile */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .query-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .query-form-section {
        position: static;
    }

    .section-title h2 {
        font-size: 1.875rem;
    }

    .section-title p {
        font-size: 1.125rem;
    }
}

/* Status card adaptation */
@media (max-width: 640px) {
    .status-overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Large mobile (480px - 767px) - Start showing hamburger menu */

/* Navigation adaptation - Show hamburger menu */
@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.625rem;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .logo-container {
        padding: 6px;
    }
}

/* Query area adaptation */
@media (max-width: 767px) {
    .query-main-container {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 1rem;
    }
}

/* Button adaptation */
@media (max-width: 767px) {
    .query-button-grid {
        grid-template-columns: 1fr;
    }
}

/* Form adaptation */
.form-input {
    font-size: 16px;
    /* Prevent iOS zoom */
}

/* Small mobile (320px - 479px) */

/* Navigation adaptation */
@media (max-width: 479px) {
    .navbar-glass {
        padding: 0 16px;
    }

    .brand-text {
        display: none;
        /* Hide brand text on small screens */
    }
}

/* Query area adaptation */
@media (max-width: 479px) {
    .query-main-container {
        padding: 16px;
        border-radius: 16px;
    }

    .query-form-card {
        padding: 20px 16px 24px;
    }

    .section-title {
        margin-bottom: 16px;
    }

    .section-title h2 {
        font-size: 1.25rem;
    }

    .section-title p {
        font-size: 0.875rem;
    }
}

/* Button adaptation */
@media (max-width: 479px) {

    .btn-primary,
    .btn-secondary,
    .btn-info {
        padding: 12px 0;
        font-size: 0.875rem;
    }
}

/* Card adaptation */
@media (max-width: 479px) {
    .card-white {
        padding: 16px;
    }
}

/* Status tag adaptation */
@media (max-width: 479px) {
    .status-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* First screen form adaptation */
@media (max-width: 479px) {
    .form-section-title {
        font-size: 1rem;
    }

    .detail-section-title {
        font-size: 1rem;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    label {
        font-size: 14px;
    }
}

/* Mobile menu adaptation */
@media (max-width: 479px) {
    .mobile-nav-content {
        padding: 16px;
    }

    .mobile-nav-link {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
}

/* Scroll indicator adaptation */
@media (max-width: 479px) {
    .thumbnail-strip {
        gap: 0.5rem;
    }

    .thumbnail-image {
        width: 60px;
        height: 60px;
    }

    .main-banner-image {
        max-height: 300px;
    }
}

/* Mobile modal adaptation */
@media (max-width: 479px) {
    .contact-modal-content {
        width: 95%;
        margin: 20px;
    }

    .contact-modal-header {
        padding: 12px 16px;
    }

    .contact-modal-body {
        padding: 12px 16px;
    }

    .contact-modal-title {
        font-size: 1.125rem;
    }

    .contact-item {
        font-size: 0.875rem;
    }

    .summary-modal-content {
        width: 95%;
        padding: 20px;
        margin: 20px;
    }
}

/* Photo display responsive adaptation */
@media (max-width: 767px) {
    .photo-banner-container {
        gap: 0.75rem;
    }

    .main-banner-image {
        max-height: 350px;
    }

    .thumbnail-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 479px) {
    .photo-carousel {
        padding: 12px;
        gap: 12px;
    }

    .no-photos {
        font-size: 0.875rem;
        min-height: 60px;
    }
}

/* Touch optimization */

/* Mobile device touch optimization */
@media (hover: none) and (pointer: coarse) {

    .btn-primary,
    .btn-secondary,
    .btn-info,
    .btn-accent {
        min-height: 44px;
        /* iOS recommended minimum touch area */
    }

    .contact-modal-close {
        min-height: 44px;
        padding: 12px 24px;
    }

    .thumbnail-image {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Remove hover effects to avoid sticky issues on touch devices */
@media (hover: none) {

    .nav-link:hover,
    .mobile-nav-link:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Landscape mobile adaptation */
@media (max-width: 767px) and (orientation: landscape) {
    .query-main-container {
        padding: 16px;
    }

    .section-title {
        margin-bottom: 16px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .main-banner-image {
        max-height: 250px;
    }
}

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

/* Reduced motion user preference setting */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .logo-container::after {
        animation: none;
    }

    .navbar-glass {
        animation: none;
    }
}

/* Custom button styles */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

.show {
    display: block !important;
}

.result-content-reset {
    display: block;
}

.overall-status {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

/* Summary modal table styles */
#summaryTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

#summaryTable th,
#summaryTable td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    word-break: break-word;
}

#summaryTable th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#summaryTable tr:hover {
    background-color: #f8fafc;
}

#summaryTable td {
    color: #1f2937;
}

/* Responsive table adaptation */
@media (max-width: 767px) {
    #summaryTable {
        font-size: 12px;
    }

    #summaryTable th,
    #summaryTable td {
        padding: 6px 8px;
    }

    #summaryTable th {
        font-size: 11px;
    }
}

/* Loading animation styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Modal responsive adaptation */
@media (max-width: 479px) {
    .modal-content {
        max-width: 95%;
        margin-top: 10vh;
    }

    .modal-close {
        right: 10px;
        top: 10px;
        font-size: 24px;
    }
}

/* Detail info vertical layout styles */
.detail-info-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Horizontal layout row */
.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Half item */
.info-item-half {
    flex: 1;
}

/* Responsive adjustment */
@media (max-width: 640px) {
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Registration date input optimization */
.reg-date-old,
.reg-date-very-old,
.reg-date-old-medium,
.reg-date-medium,
.reg-date-recent {
    position: relative;
}

/* Registration date hover expand effect */
.reg-date-old:hover,
.reg-date-very-old:hover,
.reg-date-old-medium:hover,
.reg-date-medium:hover,
.reg-date-recent:hover {
    z-index: 10;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Mobile adaptation for registration date font */
@media (max-width: 479px) {

    .reg-date-old,
    .reg-date-very-old,
    .reg-date-old-medium,
    .reg-date-medium,
    .reg-date-recent,
    .reg-date-normal {
        font-size: 13px;
    }
}