/* ========================================
   SHOW ENTRY MODAL - Zapsat výstavu/bonitaci
   Komponenta (BEM, MOBILE FIRST)
   ======================================== */

.show-entry-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.show-entry-modal__inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---- Header ---- */
.show-entry-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.show-entry-modal__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.show-entry-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s;
}

.show-entry-modal__close:hover {
    color: #374151;
}

/* ---- Body ---- */
.show-entry-modal__body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

/* ---- Field ---- */
.show-entry-modal__field {
    margin-bottom: 16px;
}

.show-entry-modal__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

/* ---- Tooltip u labelu ---- */
.show-entry-modal__tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    vertical-align: middle;
}

.show-entry-modal__tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #93c5fd;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    transition: background 0.15s;
}

.show-entry-modal__tooltip-icon:hover {
    background: #3b82f6;
}

.show-entry-modal__tooltip-text {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
    z-index: 100;
}

.show-entry-modal__tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.show-entry-modal__tooltip:hover .show-entry-modal__tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* ---- Error state ---- */
.show-entry-modal__field--error .show-entry-modal__label {
    color: #dc2626;
}

.show-entry-modal__field--error .show-entry-modal__input,
.show-entry-modal__field--error .show-entry-modal__select {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.show-entry-modal__field--error .show-entry-modal__type-grid {
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 4px;
}

.show-entry-modal__field--error .custom-select__trigger {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ---- Inputs ---- */
.show-entry-modal__input,
.show-entry-modal__select,
.show-entry-modal__textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #1a1a2e;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.show-entry-modal__select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.show-entry-modal__textarea {
    resize: vertical;
    min-height: 60px;
}

.show-entry-modal__input:focus,
.show-entry-modal__select:focus,
.show-entry-modal__textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

/* ---- Type toggle ---- */
.show-entry-modal__type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.show-entry-modal__type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 44px;
}

.show-entry-modal__type-btn svg {
    width: 18px;
    height: 18px;
}

.show-entry-modal__type-btn:hover {
    border-color: #f97316;
    background: #fff7ed;
}

.show-entry-modal__type-btn--active {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}

.show-entry-modal__type-btn--active:hover {
    background: #ea580c;
}

/* ---- Pass buttons (bonitace výsledek) ---- */
.show-entry-modal__pass-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 44px;
}

.show-entry-modal__pass-btn:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.show-entry-modal__pass-btn--active {
    border-color: #f97316;
    background: #fff7ed;
    font-weight: 600;
}

.show-entry-modal__pass-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.show-entry-modal__pass-dot--passed { background: #16a34a; }
.show-entry-modal__pass-dot--failed { background: #dc2626; }

/* ---- Title checkboxes ---- */
.show-entry-modal__titles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.show-entry-modal__title-check {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background 0.1s;
    min-height: 36px;
}

.show-entry-modal__title-check:hover {
    background: #fff7ed;
}

.show-entry-modal__title-check input[type="checkbox"] {
    accent-color: #f97316;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.show-entry-modal__title-check-label {
    line-height: 1.2;
}

/* ---- Actions ---- */
.show-entry-modal__actions {
    display: flex;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.show-entry-modal__cancel {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #6b7280;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 44px;
}

.show-entry-modal__cancel:hover {
    background: #e5e7eb;
}

.show-entry-modal__submit {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #f97316;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 44px;
}

.show-entry-modal__submit:hover {
    background: #ea580c;
}

/* ========================================
   TABLET
   ======================================== */
@media (min-width: 768px) {
    .show-entry-modal__titles-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
