/* SITK Zglos Blad - Styl biletu i okna modalnego */
#sitk-bug-ticket {
    position: fixed;
    left: 0;
    top: 350px;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #333333;
    border: 1px solid #333333;
    border-left: none;
    /*border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);*/
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    -webkit-transform: translateX(-118px);
    -ms-transform: translateX(-118px);
    transform: translateX(-118px);
    -webkit-transition: -webkit-transform 1s ease, box-shadow 1s ease, background-color 1s ease, border-color 1s ease, color 1s ease;
    transition: transform 1s ease, box-shadow 1s ease, background-color 1s ease, border-color 1s ease, color 1s ease;
}

#sitk-bug-ticket:hover,
#sitk-bug-ticket:focus {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    background: #e10000;
    border-color: #ffffff;
    color: #ffffff;
    /*box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);*/
    outline: none;
}

.sitk-bug-ticket-label {
    position: relative;
    display: inline-block;
    width: 118px;
    height: 44px;
    line-height: 44px;
    box-sizing: border-box;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #333333;
    background: transparent;
    /*border-right: 1px dashed #333333;*/
    white-space: nowrap;
    user-select: none;
    -webkit-transition: color 1s ease, border-color 1s ease;
    transition: color 1s ease, border-color 1s ease;
}

#sitk-bug-ticket:hover .sitk-bug-ticket-label,
#sitk-bug-ticket:focus .sitk-bug-ticket-label {
    color: #ffffff;
    border-right-color: #ffffff;
}

/*.sitk-bug-ticket-label:before,
.sitk-bug-ticket-label:after {
    content: "";
    position: absolute;
    right: -5px;
    width: 8px;
    height: 8px;
    background: #f1f5f9;
    border: 1px solid #333333;
    border-radius: 50%;
    box-sizing: border-box;
    -webkit-transition: border-color 0.25s ease;
    transition: border-color 0.25s ease;
}

#sitk-bug-ticket:hover .sitk-bug-ticket-label:before,
#sitk-bug-ticket:hover .sitk-bug-ticket-label:after,
#sitk-bug-ticket:focus .sitk-bug-ticket-label:before,
#sitk-bug-ticket:focus .sitk-bug-ticket-label:after {
    border-color: #ffffff;
}*/

.sitk-bug-ticket-label:before {
    top: -5px;
}

.sitk-bug-ticket-label:after {
    bottom: -5px;
}

.sitk-bug-ticket-stub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    background: transparent;
    /*border-radius: 0 8px 8px 0;*/
}

.sitk-bug-ticket-stub img {
    display: block;
    width: 22px;
    height: 22px;
    border: 0;
    margin: 0;
    padding: 0;
    -webkit-filter: brightness(0) invert(0.2);
    filter: brightness(0) invert(0.2);
    -webkit-transition: -webkit-filter 1s ease;
    transition: filter 1s ease;
}

#sitk-bug-ticket:hover .sitk-bug-ticket-stub img,
#sitk-bug-ticket:focus .sitk-bug-ticket-stub img {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}

/* Modal */
#sitk-bug-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.6);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

#sitk-bug-overlay.sitk-open {
    display: flex;
}

#sitk-bug-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 22px 24px;
    box-sizing: border-box;
    text-align: left;
}

.sitk-bug-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.sitk-bug-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

#sitk-bug-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
}

#sitk-bug-close:hover {
    color: #0f172a;
}

.sitk-bug-context-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 8px 10px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #475569;
    word-break: break-all;
}

.sitk-bug-context-box strong {
    color: #1e293b;
}

.sitk-bug-field {
    margin-bottom: 13px;
}

.sitk-bug-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.sitk-bug-field select,
.sitk-bug-field input[type="email"],
.sitk-bug-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    color: #0f172a;
    background: #ffffff;
}

.sitk-bug-field select:focus,
.sitk-bug-field input[type="email"]:focus,
.sitk-bug-field textarea:focus {
    border-color: #b91c1c;
    outline: none;
}

.sitk-bug-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.sitk-bug-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.sitk-bug-btn-cancel {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.sitk-bug-btn-cancel:hover {
    background: #e2e8f0;
}

.sitk-bug-btn-submit {
    background: #b91c1c;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sitk-bug-btn-submit:hover {
    background: #991b1b;
}

.sitk-bug-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#sitk-bug-status {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.4;
}

#sitk-bug-status.sitk-ok {
    display: block;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

#sitk-bug-status.sitk-err {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media print {
    #sitk-bug-ticket,
    #sitk-bug-overlay {
        display: none !important;
    }
}
