/* Device Service Booking - frontend styles */

.dsb-form-wrapper,
.dsb-tracking-wrapper {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

.dsb-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

.dsb-notice-success {
    background: #e6f6ec;
    color: #1e7e34;
    border: 1px solid #b6e3c6;
}

.dsb-notice-error {
    background: #fdecea;
    color: #b02a1e;
    border: 1px solid #f5c6c0;
}

.dsb-form .dsb-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dsb-form .dsb-field {
    flex: 1 1 220px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.dsb-form label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.dsb-form input[type="text"],
.dsb-form input[type="email"],
.dsb-form input[type="tel"],
.dsb-form select,
.dsb-form textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

.dsb-form .dsb-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
}

.dsb-form .dsb-checkbox input {
    margin-top: 3px;
    accent-color: #dc2626;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dsb-submit-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.dsb-submit-btn:hover {
    background: #b91c1c;
}

/* Tracking page */

.dsb-tracking-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.dsb-tracking-input-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.dsb-tracking-input-row button {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.dsb-tracking-input-row button:hover {
    background: #b91c1c;
}

.dsb-tracking-result {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.dsb-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 14px;
}

.dsb-tracking-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f9fafb;
    border-left: 3px solid #1d4ed8;
    font-size: 14px;
}

.dsb-form .dsb-field-hint {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 6px;
    font-weight: 400;
}

.dsb-form input[type="file"] {
    padding: 8px 0;
    font-family: inherit;
    font-size: 14px;
}

/* Tlačidlo "Vybrať súbor" - rovnaká červená ako ostatné tlačidlá.
   Každý prehliadačový variant musí byť v samostatnom pravidle. */
.dsb-form input[type="file"]::file-selector-button {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 18px;
    margin-right: 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dsb-form input[type="file"]::file-selector-button:hover {
    background: #b91c1c;
}

.dsb-form input[type="file"]::-webkit-file-upload-button {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 18px;
    margin-right: 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}

.dsb-form input[type="file"]::-webkit-file-upload-button:hover {
    background: #b91c1c;
}

.dsb-admin-media-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.dsb-admin-media-item img {
    max-width: 150px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Fotky z priebehu servisu (stránka sledovania) */

.dsb-progress-photos {
    margin-top: 20px;
}

.dsb-progress-title {
    margin: 0 0 10px 0;
    font-size: 17px;
}

.dsb-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.dsb-progress-grid a {
    display: block;
}

.dsb-progress-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}

/* Admin: výber fotiek pre zákazníka */
.dsb-admin-progress-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.dsb-admin-progress-item {
    position: relative;
}

.dsb-admin-progress-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
}

.dsb-admin-progress-item .dsb-progress-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    line-height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* GDPR - informácie o spracúvaní osobných údajov */

.dsb-gdpr-details {
    margin: 8px 0 0 24px;
    font-size: 13px;
}

.dsb-gdpr-details summary {
    cursor: pointer;
    color: #dc2626;
    font-weight: 600;
}

.dsb-gdpr-text {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.55;
    max-height: 340px;
    overflow-y: auto;
}

.dsb-gdpr-text h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.dsb-gdpr-text h5 {
    margin: 12px 0 4px 0;
    font-size: 13px;
}

.dsb-gdpr-text p,
.dsb-gdpr-text ul {
    margin: 0 0 6px 0;
}

.dsb-gdpr-text ul {
    padding-left: 18px;
}

.dsb-gdpr-text a {
    color: #dc2626;
}

/* Cenová ponuka na stránke sledovania */

.dsb-quote-box {
    margin-top: 20px;
    padding: 18px 20px;
    border: 2px solid #dc2626;
    border-radius: 8px;
    background: #fff5f5;
}

.dsb-quote-title {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.dsb-quote-price {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 10px 0;
}

.dsb-quote-text {
    margin-bottom: 16px;
    font-size: 15px;
}

.dsb-quote-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tlačidlá ponuky - rovnaký vzhľad ako tlačidlo "Odoslať objednávku servisu".
   Vyššia špecifickosť, aby ich neprebil štýl témy. */
.dsb-quote-form .dsb-quote-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #dc2626;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dsb-quote-form .dsb-quote-btn-accept {
    background: #dc2626;
    color: #fff;
}

.dsb-quote-form .dsb-quote-btn-accept:hover,
.dsb-quote-form .dsb-quote-btn-accept:focus {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.dsb-quote-form .dsb-quote-btn-decline {
    background: #fff;
    color: #dc2626;
}

.dsb-quote-form .dsb-quote-btn-decline:hover,
.dsb-quote-form .dsb-quote-btn-decline:focus {
    background: #dc2626;
    color: #fff;
}

.dsb-quote-decision {
    font-weight: 600;
    margin: 0;
}

.dsb-quote-accepted { color: #1e7e34; }
.dsb-quote-declined { color: #b02a1e; }

/* Admin: rozhodnutie zákazníka o ponuke */
.dsb-admin-quote-decision {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.dsb-admin-quote-accepted { color: #1e7e34; }
.dsb-admin-quote-declined { color: #b02a1e; }

p.dsb-admin-quote-decision {
    font-size: 14px;
}

/* Admin list badges */
.dsb-admin-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #eef2ff;
    color: #1d4ed8;
}

.dsb-admin-status-new { background: #eef2ff; color: #1d4ed8; }
.dsb-admin-status-in_review { background: #fff7e6; color: #b06b00; }
.dsb-admin-status-quote { background: #f3e8ff; color: #7e22ce; }
.dsb-admin-status-waiting_parts { background: #fff1e6; color: #c2410c; }
.dsb-admin-status-in_repair { background: #eafaf0; color: #1e7e34; }
.dsb-admin-status-ready { background: #e6f4ff; color: #0369a1; }
.dsb-admin-status-completed { background: #f0f0f0; color: #444; }
.dsb-admin-status-cancelled { background: #fdecea; color: #b02a1e; }
