/* ===================================
   PREMIUM INFO MODAL
=================================== */

.premium-info-modal .modal-dialog {
    max-width: 560px;
}

.premium-info-modal .modal-content {
    border: 0;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;

    box-shadow:
        0 35px 90px rgba(15, 23, 42, .18);
}

/* HEADER */

.premium-info-header {
    position: relative;

    padding: 34px;

    border-bottom: 1px solid #eef2f6;

    background:
        linear-gradient(
            135deg,
            rgba(52, 115, 186,.08),
            rgba(255,255,255,0)
        );
}

.premium-info-icon {
    width: 72px;
    height: 72px;

    border-radius: 24px;

    background: rgba(52, 115, 186,.10);
    color: #3473BA;

    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-info-icon i {
    font-size: 34px;
}

.premium-info-header .modal-title {
    margin: 12px 0 6px;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    color: #111827;
}

.premium-info-subtitle {
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
}

/* CLOSE BUTTON */

.premium-info-close {
    position: absolute;
    top: 30px;
    right: 30px;

    width: 54px;
    height: 54px;

    border: 0;
    border-radius: 18px;

    background: #f8fafc;
    color: #6b7280;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .25s ease;
}

.premium-info-close i {
    font-size: 18px;
}

.premium-info-close:hover {
    background: rgba(239,68,68,.10);
    color: #dc2626;
    transform: rotate(90deg);
}

/* BODY */

.premium-info-body {
    padding: 34px;
}

.premium-message-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;

    padding: 24px;
    border-radius: 24px;

    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.premium-message-icon {
    min-width: 52px;
    width: 52px;
    height: 52px;

    border-radius: 16px;

    background: rgba(52, 115, 186,.10);
    color: #3473BA;

    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-message-icon i {
    font-size: 22px;
}

.premium-message-text {
    font-size: 17px;
    line-height: 1.7;
    font-weight: 600;
    color: #374151;
}

/* FOOTER */

.premium-info-footer {
    padding: 0 34px 34px;
}

.premium-info-btn {
    width: 100%;
    min-height: 62px;

    border: 0 !important;
    border-radius: 22px !important;

    background:
        linear-gradient(
            135deg,
            #3473BA,
            #4E80BD
        ) !important;

    color: #fff !important;
    font-size: 17px;
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 20px 40px rgba(52, 115, 186,.22);

    transition: .25s ease;
}

.premium-info-btn:hover {
    transform: translateY(-2px);
}

/* MOBILE */

@media (max-width: 768px) {

    .premium-info-header,
    .premium-info-body,
    .premium-info-footer {
        padding: 24px;
    }

    .premium-info-header .modal-title {
        font-size: 24px;
    }

    .premium-info-icon {
        width: 58px;
        height: 58px;
    }

    .premium-message-box {
        flex-direction: column;
    }

    .premium-info-close {
        width: 46px;
        height: 46px;
        top: 22px;
        right: 22px;
    }
}


.premium-status-box {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 20px 22px;
    border-radius: 20px;

    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.premium-status-box .form-check-input {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.premium-status-box .form-check-input:checked {
    background-color: #3473BA;
    border-color: #3473BA;
}

.premium-status-box .form-check-label {
    font-size: 15px;
    font-weight: 800;
    color: #374151;
    cursor: pointer;
}


/* ===================================
   ORDER DETAILS MODAL
=================================== */
.order-details-modal .modal-dialog {
    max-width: 640px;
    margin: 32px auto;
}

.order-details-modal .modal-content {
    max-height: calc(100vh - 64px);
    overflow: hidden;
    display: flex;
    flex-direction: column;

    border: 1px solid #eef2f6;
    border-radius: 20px;
    background: #fff;

    box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
}

.order-details-modal form {
    min-height: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.order-details-modal .premium-task-header {
    flex: 0 0 auto;
}

.order-details-modal .premium-task-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.order-details-modal .premium-task-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #edf2f7;
}
/* HEADER */

.premium-task-header {
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    padding: 20px 24px;

    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.premium-task-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 11px;
    margin-bottom: 12px;

    border-radius: 999px;
    background: rgba(52, 115, 186,.08);
    color: #3473BA;

    font-size: 11px;
    font-weight: 600;
}

.premium-task-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
}

.premium-task-subtitle {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}

/* CLOSE */

.premium-close-btn {
    width: 34px;
    height: 34px;

    border: 0 !important;
    border-radius: 10px;

    background: #f8fafc;
    color: #94a3b8;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .25s ease;
}

.premium-close-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.premium-close-btn i {
    font-size: 13px;
}

/* BODY */

.premium-task-body {
    padding: 22px 24px;
    background: #fff;
}

/* CARD */

.premium-section-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;

    box-shadow: none;
}

.premium-section-header {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 16px;
}

.premium-section-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.premium-section-header small {
    display: block;
    margin-top: 2px;

    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
}

.premium-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;

    background: rgba(52, 115, 186,.08);
    color: #3473BA;

    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-section-icon i {
    font-size: 16px;
}

/* LABEL */

.premium-label {
    display: block;
    margin-bottom: 6px;

    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

/* INPUT */

.premium-input-wrap {
    position: relative;
}

.premium-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);

    color: #94a3b8;
    font-size: 14px;
    z-index: 2;
}

.premium-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.premium-input {
    min-height: 44px !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;

    padding-left: 40px !important;
    padding-right: 14px !important;

    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111827 !important;

    box-shadow: none !important;
}

.premium-input:focus {
    border-color: #3473BA !important;
    box-shadow: 0 0 0 3px rgba(52, 115, 186,.10) !important;
}

.premium-textarea {
    min-height: 110px !important;
    padding: 12px 14px !important;
}

/* ERROR */

.premium-error {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #dc2626;
}

/* STATUS */

.premium-status-box {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border-radius: 10px;

    background: #f8fafc;
    border: 1px solid #f1f5f9;

    cursor: pointer;
}

.premium-status-box input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.premium-status-box span {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

/* FOOTER */

.premium-task-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;

    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

/* BUTTONS */

.premium-submit-btn,
.premium-delete-btn {
    min-height: 40px;
    padding: 0 18px;
    border: 0 !important;
    border-radius: 10px !important;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.premium-submit-btn {
    background: #3473BA !important;
    color: #fff !important;

    box-shadow: none;
}

/* usuwanie to akcja poboczna - stonowany przycisk zamiast czerwonej plamy */
.premium-delete-btn {
    background: #fff !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.premium-submit-btn:hover {
    background: #2d64a2 !important;
}

.premium-delete-btn:hover {
    background: #fef2f2 !important;
}

/* MOBILE */

@media(max-width: 768px){

    .premium-task-header,
    .premium-task-body,
    .premium-task-footer {
        padding: 16px;
    }

    .premium-task-title {
        font-size: 17px;
    }

    .premium-task-footer {
        flex-direction: column;
    }

    .premium-submit-btn,
    .premium-delete-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   PODGLAD ZLECENIA (tryb informacyjny)
=================================== */

.task-view {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* status na gorze - od razu widac, czy zlecenie jest zamkniete */
.task-status {
    align-self: flex-start;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 14px;
    border-radius: 999px;

    background: #fff7ed;
    color: #b45309;
    border: 1px solid #fed7aa;

    font-size: 12px;
    font-weight: 600;
}

.task-status.is-done {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.task-status i {
    font-size: 13px;
}

/* dwie kolumny faktow - etykieta nad wartoscia */
.task-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.task-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 16px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fcfdfe;
}

.task-fact-icon {
    flex: 0 0 auto;

    width: 32px;
    height: 32px;
    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(52, 115, 186, .08);
    color: #3473BA;
    font-size: 14px;
}

.task-fact-label {
    display: block;

    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.task-fact-value {
    display: block;
    margin-top: 3px;

    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

/* opis - pelna szerokosc pod faktami */
.task-note {
    padding: 16px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fcfdfe;
}

.task-note h6 {
    display: flex;
    align-items: center;
    gap: 7px;

    margin: 0 0 8px;

    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.task-note p {
    margin: 0;

    color: #334155;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    white-space: pre-line;
}

/* ===================================
   AKCJE W STOPCE
=================================== */

.task-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.premium-ghost-btn {
    min-height: 40px;
    padding: 0 16px;

    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #475569 !important;

    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.premium-ghost-btn:hover {
    background: #f8fafc !important;
    color: #1f2937 !important;
}

@media (max-width: 768px) {

    .task-facts {
        grid-template-columns: 1fr;
    }

    .task-actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .task-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
