/* Check Page Styles */
.check-page {
    display: flex;
    min-height: 100vh;
    background: #F9FAFB;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo .logo-icon {
    display: flex;
    align-items: center;
}

.sidebar-logo {
    cursor: pointer;
    transition: opacity 0.2s;
}

.sidebar-logo:hover {
    opacity: 0.8;
}

.sidebar-logo .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1E40AF;
    text-transform: capitalize;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #6B7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav-item:hover {
    background: #F3F4F6;
    color: #374151;
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #2563EB;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.sidebar-nav-item.active .nav-icon {
    color: #2563EB;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-promo {
    padding: 16px 12px;
    margin: 16px 12px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: 12px;
    border: 1px solid #DBEAFE;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.promo-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-text {
    font-size: 13px;
    color: #1E40AF;
    font-weight: 500;
    margin: 0;
}

.promo-link {
    font-size: 13px;
    color: #2563EB;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.promo-link:hover {
    color: #1D4ED8;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #E5E7EB;
}

.sign-out-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.sign-out-link:hover {
    color: #374151;
}

.sign-out-link svg {
    width: 16px;
    height: 16px;
}

/* Main Content */
.check-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    width: calc(100% - 260px);
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
    box-sizing: border-box;
}

.check-header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-bottom: 1px solid #E5E7EB;
    padding: 24px 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.check-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.check-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.check-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    flex: 1;
}

.header-language-selector-wrapper {
    position: relative;
    margin-left: auto;
}

.header-language-selector-wrapper .language-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.header-language-selector-wrapper .language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-burger-menu {
    display: none;
    flex-direction: column;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    transition: all 0.3s;
    margin-left: 12px;
}

.header-burger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: #374151;
    transition: all 0.3s;
}

.header-burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header-burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.header-burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.header-burger-menu:hover {
    background: #F9FAFB;
    border-color: #2563EB;
}

.check-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 2px solid #E5E7EB;
}

.check-tab {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.check-tab:hover {
    color: #374151;
}

.check-tab.active {
    color: #2563EB;
}

.check-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB 0%, #1E40AF 100%);
    border-radius: 2px;
}

/* Check Form Section */
.check-form-section {
    padding: 32px;
}

.check-form-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    width: 100%;
    display: block;
}

.refresh-icon {
    color: #6B7280;
    cursor: pointer;
    transition: transform 0.3s;
}

.refresh-icon:hover {
    transform: rotate(180deg);
    color: #374151;
}

.address-input-wrapper {
    margin-bottom: 32px;
}

.address-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    transition: border-color 0.2s;
    font-family: inherit;
}

.address-input:focus {
    outline: none;
    border-color: #2563EB;
}

.address-input::placeholder {
    color: #9CA3AF;
}

.blockchain-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.blockchains-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .blockchains-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .blockchains-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .check-form-container {
        padding: 20px 16px;
    }
    
    .blockchains-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
        margin: 0 auto 24px;
        padding: 0;
        justify-items: stretch;
        align-items: stretch;
    }
    
    .blockchain-btn {
        width: 100%;
        aspect-ratio: 1;
        padding: 12px 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 0;
        box-sizing: border-box;
        border-radius: 10px;
    }
    
    .blockchain-logo {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .blockchain-logo img,
    .blockchain-logo svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .blockchain-name {
        font-size: 11px;
        line-height: 1.2;
        margin: 0;
        word-break: break-word;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-shrink: 1;
        min-height: 24px;
        max-height: 28px;
        width: 100%;
    }
    
    .pro-badge-small {
        top: 6px;
        right: 6px;
        font-size: 8px;
        padding: 2px 5px;
        line-height: 1.2;
        border-radius: 3px;
    }
}

.blockchain-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.blockchain-btn:hover {
    border-color: #2563EB;
    background: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.blockchain-btn.selected {
    border-color: #2563EB;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2), 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.blockchain-btn.selected:hover {
    border-color: #1E40AF;
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25), 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.blockchain-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blockchain-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blockchain-logo svg {
    width: 100%;
    height: 100%;
}

.blockchain-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

.pro-badge-small {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.check-button {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

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

.check-button:hover::before {
    left: 100%;
}

.check-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.check-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.check-button-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.check-button:hover .check-button-icon {
    transform: scale(1.1);
}

.check-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.check-button:disabled:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.check-button svg {
    width: 20px;
    height: 20px;
}

.check-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 4px;
}

/* Request History Section */
.request-history-section {
    padding: 32px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.request-history-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    text-align: left;
}

.history-search-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.history-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: white;
    transition: border-color 0.2s;
}

.history-search-input:focus {
    outline: none;
    border-color: #2563EB;
}

.history-search-input::placeholder {
    color: #9CA3AF;
}

.history-search-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

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

.history-search-button:hover::before {
    left: 100%;
}

.history-search-button:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.history-empty-state {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 64px 32px;
    text-align: center;
}

.empty-state-text {
    font-size: 18px;
    font-weight: 600;
    color: #9CA3AF;
    margin-bottom: 16px;
}

.empty-state-description {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 12px;
    line-height: 1.6;
}

.empty-state-subdescription {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* History Section */
.history-section {
    padding: 32px;
    padding-top: 0;
}

.history-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.history-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 12px;
}

.history-controls {
    display: flex;
    gap: 8px;
}

.history-control-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s;
}

.history-control-btn:hover {
    border-color: #2563EB;
    color: #2563EB;
    background: #F9FAFB;
}

.history-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.history-search-input:focus {
    outline: none;
    border-color: #2563EB;
}

.history-search-btn {
    padding: 10px 24px;
    background: #2563EB;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.history-search-btn:hover {
    background: #1D4ED8;
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-text {
    font-size: 16px;
    color: #9CA3AF;
    margin: 0;
}

.check-footer-links {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    color: #6B7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.check-footer-links a {
    color: #2563EB;
    text-decoration: none;
}

.check-footer-links a:hover {
    text-decoration: underline;
}

/* Responsive - blockchains-grid styles are defined above */

/* Mobile Menu Toggle (Left Side - Hidden on mobile, use header burger instead) */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #374151;
    margin: 4px 0;
    transition: all 0.3s;
}

.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    /* Hide left sidebar toggle on mobile - use header burger menu instead */
    .sidebar-toggle {
        display: none !important;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .check-main {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
    }

    .check-header {
        padding: 16px 20px;
    }

    .check-header-top {
        margin-bottom: 16px;
    }

    .check-title {
        font-size: 24px;
    }

    .header-burger-menu {
        display: flex;
    }

    .header-language-selector-wrapper {
        order: -1;
        margin-left: 0;
    }

    .check-form-section {
        padding: 20px;
    }

    .check-form-container {
        padding: 24px;
    }

    .section-subtitle {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .check-button {
        padding: 16px 24px;
        font-size: 16px;
    }

    .request-history-section {
        padding: 20px;
    }

    .request-history-container {
        padding: 24px;
    }

    .history-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .history-search-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .history-search-button {
        width: 100%;
    }

    .history-empty-state {
        padding: 48px 24px;
    }

    .empty-state-text {
        font-size: 16px;
    }

    .empty-state-description {
        font-size: 14px;
    }

    .empty-state-subdescription {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .check-tabs {
        gap: 16px;
    }

    .check-tab {
        font-size: 14px;
    }

    .check-header-top {
        flex-wrap: wrap;
    }

    .check-title {
        font-size: 20px;
        order: 2;
        width: 100%;
        margin-top: 12px;
    }

    .header-language-selector-wrapper {
        order: 1;
    }

    .header-burger-menu {
        order: 3;
        margin-left: auto;
    }

    .language-selector {
        font-size: 13px;
        padding: 6px 10px;
        gap: 4px;
    }
    
    .language-flag {
        font-size: 16px;
    }

    .language-dropdown {
        right: 0;
        left: auto;
        min-width: 160px;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .language-option {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .language-option .flag {
        font-size: 16px;
        width: 20px;
    }

    .check-button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .request-history-section {
        padding: 16px;
    }

    .request-history-container {
        padding: 20px 16px;
    }

    .history-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .history-empty-state {
        padding: 32px 16px;
    }
}

