.hex-viewer-main {
   padding-top: 120px;
   min-height: calc(100vh - 100px);
   background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.center {
   text-align: center;
}

.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 20px;
}

/* Drop Zone */
.drop-zone {
   background: var(--glass-bg);
   border: 2px dashed rgba(37, 99, 235, 0.2);
   border-radius: 20px;
   padding: 60px;
   text-align: center;
   cursor: pointer;
   transition: all 0.3s ease;
   backdrop-filter: blur(12px);
   margin-top: 40px;
}

.drop-zone:hover,
.drop-zone.dragging {
   border-color: var(--primary-color);
   background: rgba(37, 99, 235, 0.05);
   transform: translateY(-5px);
}

.drop-zone .icon {
   font-size: 4rem;
   margin-bottom: 20px;
}

.drop-zone p {
   font-size: 1.2rem;
   color: #64748b;
}

/* Viewer Container */
.viewer-container {
   margin-top: 40px;
   background: var(--glass-bg);
   border: 1px solid var(--glass-border);
   border-radius: 16px;
   overflow: hidden;
   box-shadow: var(--shadow-lg);
   backdrop-filter: blur(12px);
}

.viewer-header {
   padding: 15px 25px;
   background: rgba(255, 255, 255, 0.5);
   border-bottom: 1px solid var(--glass-border);
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.file-name {
   font-weight: 700;
   color: var(--text-color);
   margin-right: 15px;
}

.file-size {
   color: #64748b;
   font-size: 0.9rem;
}

.btn-small {
   padding: 8px 16px;
   font-size: 0.85rem;
   background: transparent;
   border: 1px solid #cbd5e1;
   border-radius: 6px;
   color: #64748b;
   transition: all 0.2s;
}

.btn-small:hover {
   border-color: #ef4444;
   color: #ef4444;
}

/* Hex Grid */
.hex-grid-container {
   padding: 20px;
   font-family: 'JetBrains Mono', monospace;
   overflow-x: auto;
}

.hex-header,
.hex-row {
   display: flex;
   font-size: 0.9rem;
   line-height: 1.5;
}

.hex-header {
   font-weight: 700;
   color: var(--primary-color);
   margin-bottom: 15px;
   border-bottom: 1px solid var(--glass-border);
   padding-bottom: 10px;
}

.offset-header,
.offset-col {
   width: 100px;
   flex-shrink: 0;
   color: #94a3b8;
}

.hex-data-header {
   display: flex;
   gap: 10px;
   padding: 0 20px;
}

.hex-data-header span {
   width: 2ch;
   text-align: center;
}

.hex-data-col {
   display: block;
   padding: 0 20px;
   white-space: pre;
   color: #1e293b;
}

.btn-load-more {
   display: block;
   width: 200px;
   margin: 20px auto;
   padding: 10px 20px;
   background: var(--primary-color);
   color: white;
   border: none;
   border-radius: 8px;
   cursor: pointer;
   font-weight: 600;
   transition: all 0.2s;
}

.btn-load-more:hover {
   transform: translateY(-2px);
   box-shadow: var(--shadow-md);
}

.ascii-header,
.ascii-col {
   padding-left: 20px;
   border-left: 1px solid var(--glass-border);
   color: #475569;
}

.hex-content {
   max-height: 60vh;
   overflow-y: auto;
}

.hex-row:hover {
   background: rgba(37, 99, 235, 0.05);
}

.hex-row span:hover {
   background: var(--primary-color);
   color: white;
   border-radius: 2px;
}

/* Footer */
.viewer-footer {
   padding: 10px 25px;
   background: rgba(255, 255, 255, 0.3);
   border-top: 1px solid var(--glass-border);
   font-size: 0.85rem;
   color: #64748b;
}

.hidden {
   display: none;
}