* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0f172a;
    color: #e5e7eb;
    font-family: Arial, Helvetica, sans-serif;
}

.app-wrapper {
    width: min(1100px, 96%);
    margin: 24px auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #1f2937;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.topbar span {
    color: #9ca3af;
}

.status-badge {
    background: #064e3b;
    color: #d1fae5;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: bold;
}

.main-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.search-section label,
.weight-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #cbd5e1;
}

.ean-row {
    display: flex;
    gap: 12px;
}

.ean-row input,
.weight-grid input {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #334155;
    background: #020617;
    color: #f8fafc;
    font-size: 20px;
    outline: none;
}

.ean-row input:focus,
.weight-grid input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56,189,248,0.2);
}

.ean-row button,
.save-btn {
    border: 0;
    border-radius: 14px;
    padding: 0 24px;
    font-weight: bold;
    background: #2563eb;
    color: white;
    cursor: pointer;
    white-space: nowrap;
}

.ean-row button:hover,
.save-btn:hover {
    background: #1d4ed8;
}

.camera-btn {
    margin-top: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed #475569;
    background: #1e293b;
    color: #94a3b8;
}

.product-card,
.weight-section,
.footer-info {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #334155;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-box,
.description-box,
.footer-info div {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 18px;
}

.info-box span,
.description-box span,
.footer-info span {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 6px;
}

.info-box strong {
    font-size: 34px;
    color: #38bdf8;
}

.description-box {
    margin-top: 16px;
}

.description-box strong {
    display: block;
    font-size: 24px;
    color: #f8fafc;
    line-height: 1.3;
}

.alert-family {
    background: #422006;
    color: #fde68a;
    border: 1px solid #92400e;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: bold;
}

.weight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.save-btn {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    font-size: 20px;
    background: #16a34a;
}

.save-btn:hover {
    background: #15803d;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.footer-info strong {
    font-size: 22px;
    color: #f8fafc;
}

@media (max-width: 700px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .ean-row {
        flex-direction: column;
    }

    .ean-row button {
        padding: 16px;
    }

    .info-grid,
    .weight-grid,
    .footer-info {
        grid-template-columns: 1fr;
    }

    .topbar h1 {
        font-size: 24px;
    }
}
.link-btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

.link-btn.blue {
    background: #2563eb;
}

.link-btn.blue:hover {
    background: #1d4ed8;
}
.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #020617;
    border-right: 1px solid #1e293b;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 32px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
}

.sidebar nav a:hover {
    background: #1e293b;
    color: white;
}

.version {
    margin-top: auto;
    color: #64748b;
    font-size: 14px;
}

.content {
    padding: 24px;
}

.progress-area {
    margin-top: 24px;
}

.progress-bar {
    width: 100%;
    height: 22px;
    background: #020617;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #334155;
}

.progress-bar div {
    height: 100%;
    background: #16a34a;
}

@media (max-width: 800px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
    }
}
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.table-header h2 {
    margin: 0;
}

.small-btn {
    background: #2563eb;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}

.small-btn:hover {
    background: #1d4ed8;
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.data-table th,
.data-table td {
    padding: 14px;
    border-bottom: 1px solid #334155;
    text-align: left;
}

.data-table th {
    color: #93c5fd;
    background: #020617;
}

.data-table tr:hover {
    background: #1e293b;
}
.muted-text {
    color: #94a3b8;
}

.blue-btn {
    background: #2563eb;
}

.blue-btn:hover {
    background: #1d4ed8;
}
.flash-success{
    background:#16a34a;
    color:white;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;
    text-align:center;
    font-weight:bold;
    animation: fadeOut 4s forwards;
    animation-delay:2s;
}

@keyframes fadeOut{
    to{
        opacity:0;
        display:none;
    }
}
.file-input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: #020617;
    color: white;
    border: 1px solid #334155;
    margin-bottom: 14px;
}