body {
    font-family: "Poppins", sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}

.logo-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

.logo-wrapper a {
    text-decoration: none;
}

.logo-img {
    height: 60px;
    max-width: 100%;
    transition: opacity 0.3s;
}

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

h2 {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

h3,
h4 {
    text-align: center;
    margin-bottom: 15px;
}

p {
    color: black;
    text-align: center;
}

.min-order {
    color: red;
}

.container {
    max-width: 720px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

input,
select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.btn {
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

#dodajBtn {
    background-color: #007bff;
    color: white;
}

#dodajBtn:hover {
    background-color: #0056b3;
}

#dalejBtn {
    background-color: #28a745;
    color: white;
}

#dalejBtn:hover {
    background-color: #218838;
}

.error-message {
    color: red;
    font-size: 13px;
    display: none;
    margin-bottom: 10px;
    text-align: center;
}

.visualization {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

.logo-box {
    width: 340px;
    height: 220px;
    background-color: #e6e6e6;
    /* border-radius: 12px; */
    position: relative;
    padding: 25px;
    box-sizing: border-box;
    border-style: solid;
    border-color: #ccc;
    border-width: 2px;
    transition: width 0.3s ease, height 0.3s ease, border-width 0.3s,
        border-color 0.3s;
    z-index: 0;
}

.logo-box.highlight-top {
    border-top-width: 5px !important;
    border-top-color: #007bff !important;
}
.logo-box.highlight-right {
    border-right-width: 5px !important;
    border-right-color: #007bff !important;
}
.logo-box.highlight-bottom {
    border-bottom-width: 5px !important;
    border-bottom-color: #007bff !important;
}
.logo-box.highlight-left {
    border-left-width: 5px !important;
    border-left-color: #007bff !important;
}

.edge-number {
    position: absolute;
    font-weight: 700;
    font-size: 18px;
    color: #555;
    user-select: none;
    transition: color 0.3s, font-size 0.3s;
    z-index: 10;
}

.edge-number.top {
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}
.edge-number.right {
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
}
.edge-number.bottom {
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
}
.edge-number.left {
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
}

.edge-number.highlight {
    color: #007bff;
    font-size: 22px;
    font-weight: 900;
}

.select-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.select-row > div {
    flex: 1;
}

.info-row > div {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.edges-section {
    margin-bottom: 15px;
}
.edges-section h4 {
    text-align: left;
    margin-bottom: 10px;
    font-weight: 700;
}

.formatki-list {
    max-width: 720px;
    width: 100%;
    margin: 0 auto 30px;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

#formatkiLista {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: #e6e6e6;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

.card div:first-child {
    flex: 1;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.card button {
    padding: 8px 12px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 72px;
    box-sizing: border-box;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.edit-btn {
    background-color: #3399ff;
    color: white;
}

.edit-btn:hover {
    background-color: #287acc;
}

.delete-btn {
    background-color: #dc6b6b;
    color: white;
}

.delete-btn:hover {
    background-color: #b94a4a;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

#zamowBtn {
    background-color: #17a2b8;
    color: white;
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#zamowBtn.editing {
    background-color: #007bff;
    font-size: 16px;
    width: auto;
    height: auto;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    color: white;
}

#zamowBtn:hover {
    background-color: #138496;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.btn-blue {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-blue:hover {
    background-color: #0056b3;
}

.btn-green {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-green:hover {
    background-color: #218838;
}

#thankYouMessage {
    display: none;
    text-align: center;
    padding: 2rem;
    font-family: "Poppins", sans-serif;
    background-color: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    max-width: 600px;
}

#thankYouMessage h3 {
    color: #28a745;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.spinner-wrapper {
    display: none;
    text-align: center;
    padding: 2rem;
    font-family: "Poppins", sans-serif;
    background-color: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    max-width: 600px;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 6px solid #007bff;
    border-top: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.thank-you-wrapper {
    display: none;
    text-align: center;
    padding: 2rem;
    font-family: "Poppins", sans-serif;
    background-color: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    max-width: 600px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark {
    font-size: 48px;
    color: white;
    line-height: 1;
}

.grain-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.grain-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.grain-line {
    display: none;
    position: absolute;
    background-color: #999;
}

/* Linie poziome */
.grain-visible .grain-line {
    display: block;
    width: 70%;
    height: 2px;
    left: 15%;
}

.grain-visible .grain-line.line1 {
    top: 33%;
}

.grain-visible .grain-line.line2 {
    top: 50%;
}

.grain-visible .grain-line.line3 {
    top: 67%;
}

/* Linie pionowe */
.grain-visible.grain-vertical .grain-line {
    display: block;
    width: 2px;
    height: 70%;
    top: 15%;
}

.grain-visible.grain-vertical .grain-line.line1 {
    left: 33%;
}

.grain-visible.grain-vertical .grain-line.line2 {
    left: 50%;
}

.grain-visible.grain-vertical .grain-line.line3 {
    left: 67%;
}

.length-width-wrapper .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.length-width-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

#swapBtn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    width: 32px;
    height: 32px;
    color: #555;
    flex-shrink: 0;
}

#swapBtn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.faq {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq a {
    color: #007bff;
}

@media (max-width: 600px) {
    label {
        font-size: 12px;
    }
    p {
        font-size: 14px;
    }
    .info-row {
        gap: 15px;
        margin-bottom: 30px;
    }
    h4 {
        font-size: 14px;
    }
    .logo-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        margin-bottom: -20px;
    }
    .grain-options input[type="radio"] {
        /* appearance: none;
        -webkit-appearance: none; */
        width: 16px;
        height: 16px;
        position: relative;
        display: inline-block;
        vertical-align: middle;
        margin: 0;
        padding: 0;
    }
    .min-order {
        margin-top: -14px;
    }

    .logo-img {
        height: 40px;
    }

    h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .logo-box {
        width: 280px;
        height: 160px;
    }
    .faq a {
        font-size: 11px;
    }
    /* .grain-options input[type="radio"]::before {
        content: "";
        position: absolute;
        width: 8px;
        height: 8px;
        background-color: transparent;
        border-radius: 50%;
        top: 3px;
        left: 3px;
        display: block;
    } */
}

.autocomplete {
    position: relative;
    width: 100%;
}

#decor {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 6px 6px;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}
/* 
.admin-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    z-index: 100;
}

.login-panel,
.settings-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
}

.settings-panel h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

.brand-card {
    background: #f2f2f2;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.brand-card h3 {
    margin-bottom: 12px;
    color: #007bff;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.setting-row label {
    flex: 1;
    font-weight: 600;
    text-align: left;
}

.setting-row input {
    width: 100px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.decor-list-wrapper {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.decor-table {
    width: 100%;
    border-collapse: collapse;
}

.decor-table tr:nth-child(even) {
    background: #f9f9f9;
}

.decor-table input {
    width: 100px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.decor-table button {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.decor-table button:hover {
    background-color: #0056b3;
}

.btn-blue {
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-blue:hover {
    background-color: #0056b3;
}

.form-control {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}


.login-panel,
.settings-panel {
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-20px);
}

.login-panel.show,
.settings-panel.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.btn-red {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.login-panel,
.settings-panel {
    display: none;
}

.login-panel.show,
.settings-panel.show {
    display: block;
}

.admin-icon i {
    font-size: 18px; 
    color: #555; 
    transition: transform 0.2s, color 0.2s;
}

.admin-icon i:hover {
    transform: scale(1.1);
    color: #000;
} */

.dimension {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    pointer-events: none;
}

.dimension-top {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.dimension-bottom {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.dimension-left {
    left: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.dimension-right {
    right: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}
