html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-row {
    margin-bottom: 0.25rem !important;
}

/* Home.View */
.tab-content {
    padding: 20px 0;
}

.nav-tabs .nav-link.active {
    font-weight: bold;
    background-color: #f8f9fa;
}

.mark-card {
    margin-bottom: 20px;
    transition: transform 0.2s;
    height: 100%;
}

    .mark-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.search-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.json-result {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.instruction-block {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 0 5px 5px 0;
}

.data-matrix-code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    word-break: break-all;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    margin-top: auto;
    text-align: center;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .data-matrix-code:hover {
        background: #e9ecef;
        border-color: #0d6efd;
    }

    .data-matrix-code.copied {
        background: #d1e7dd;
        border-color: #198754;
    }

.copy-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #198754;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-matrix-code.copied .copy-indicator {
    opacity: 1;
}

.mark-image-container {
    text-align: center;
    padding: 15px;
    background: white;
    margin-bottom: 15px;
}

.mark-image {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.mark-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.status-badges {
    text-align: center;
    margin: 10px 0;
}

.action-buttons {
    text-align: center;
    margin-top: 10px;
}

.info-section {
    text-align: center;
    margin: 10px 0;
}

.gtin-badge {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.tag-badges {
    text-align: center;
    margin: 8px 0;
}

.tag-mark {
    background: #0d6efd;
    color: white;
}

.tag-heal {
    background: #198754;
    color: white;
}

.tag-classic {
    background: #6f42c1;
    color: white;
}

.tag-special {
    background: #ffc107;
    color: black;
}

.tag-other {
    background: #6c757d;
    color: white;
}

.tag-LI {
    background: #8B4513;
    color: white;
}

.copy-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-matrix-code:hover .copy-tooltip {
    opacity: 1;
}

.field {
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--field-bg);
    border-radius: 8px;
    border-left: 5px solid var(--success-color);
    box-shadow: 0 2px 5px var(--shadow);
    transition: transform 0.2s ease;
}

    .field:hover {
        transform: translateX(5px);
    }

.field-label {
    color: var(--field-label-color) !important; /* ГАРАНТИЯ */
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.field-value {
    color: var(--field-value-color) !important; /* ГАРАНТИЯ */
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    font-weight: 500;
}

.base64-value {
    color: var(--field-value-color) !important; /* ГАРАНТИЯ */
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow-x: auto;
    padding: 10px;
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-top: 5px;
    font-weight: 500;
}

.long-value {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.json-view {
    background-color: #2b2b2b;
    color: #ffffff !important;
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    white-space: pre;
    overflow-y: auto;
    border: 2px solid var(--border-color);
}