/* Moji Koraci - Stylesheet */

.steps-container {
    font-family: 'Roboto Condensed', sans-serif;
    color: #1e293b;
    padding: 16px;
    background-color: #f8fafc;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Header Backup Tools */
.steps-tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #093959 0%, #114063 100%);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.steps-header-title {
    color: #ffffff;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .steps-title-text {
        display: none;
    }
}

.steps-backup-btns {
    display: flex;
    gap: 8px;
}

.btn-backup {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-backup span {
    font-size: 15px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.btn-backup:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-backup:active {
    transform: translateY(0);
}

/* Accordion Layout */
.steps-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.step-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.2s ease;
}

.step-card.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #26aef2;
}

.step-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.step-card-header:hover {
    background-color: #f1f5f9;
}

.step-header-text-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    margin-right: 12px;
}

.step-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #093959;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-book-link {
    cursor: pointer;
    color: #26aef2 !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: normal;
    border: 1px solid #26aef2;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}

.step-book-link:hover {
    background-color: #26aef2;
    color: #ffffff !important;
    text-decoration: none;
}

.step-card-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.step-badge-count {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 14px;
    text-align: center;
}

.step-card.active .step-badge-count {
    background-color: #26aef2;
    color: #ffffff;
}

.step-toggle-arrow {
    width: 16px;
    height: 16px;
    fill: #64748b;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.step-card.active .step-toggle-arrow {
    transform: rotate(180deg);
    fill: #26aef2;
}

/* Card Body & Notes */
.step-card-body {
    display: none;
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    background-color: #fafbfd;
}

.step-card.active .step-card-body {
    display: block;
}

.step-notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.no-notes-placeholder {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}

.note-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.note-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 4px;
}

.note-card-content {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.note-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.note-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.note-btn-edit {
    color: #26aef2;
}

.note-btn-edit:hover {
    background-color: rgba(38, 174, 242, 0.08);
}

.note-btn-delete {
    color: #dc3545;
}

.note-btn-delete:hover {
    background-color: rgba(220, 53, 69, 0.08);
}

/* Textareas & Inputs */
.note-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
}

.note-textarea {
    width: 100%;
    min-height: 60px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.note-textarea:focus {
    border-color: #26aef2;
    box-shadow: 0 0 0 3px rgba(38, 174, 242, 0.15);
}

.note-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-note-cancel {
    background-color: #f1f5f9;
    color: #475569;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-note-cancel:hover {
    background-color: #e2e8f0;
}

.btn-note-save {
    background-color: #26aef2;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-note-save:hover {
    background-color: #1b9be0;
}

/* Edit Mode styling overrides */
.note-card.editing {
    border-color: #26aef2;
    background-color: #fafbfc;
}

/* Hidden File input for import */
#steps-import-file-input {
    display: none;
}

/* Authentication, Recovery & Setup UI styling */
.steps-auth-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px;
    max-width: 420px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.steps-auth-title {
    font-size: 18px;
    font-weight: bold;
    color: #093959;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.steps-title-danger {
    color: #dc3545;
}

.steps-auth-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.steps-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steps-field-label {
    font-size: 12px;
    font-weight: bold;
    color: #475569;
    margin-bottom: -4px;
}

.steps-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.steps-input:focus {
    border-color: #26aef2;
    box-shadow: 0 0 0 3px rgba(38, 174, 242, 0.15);
}

.steps-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    font-family: inherit;
    background-color: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.steps-select:focus {
    border-color: #26aef2;
}

.steps-btn-primary {
    background-color: #26aef2;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.steps-btn-primary:hover {
    background-color: #1b9be0;
}

.steps-btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
}

.steps-btn-secondary:hover {
    background-color: #e2e8f0;
}

.steps-btn-danger {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
}

.steps-btn-danger:hover {
    background-color: #bb2d3b;
}

.steps-auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.steps-link-btn {
    background: none;
    border: none;
    color: #26aef2;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
    text-decoration: underline;
}

.steps-link-btn:hover {
    color: #1b9be0;
}

.steps-link-danger {
    color: #ef4444;
}

.steps-link-danger:hover {
    color: #dc2626;
}

.steps-danger-zone {
    border: 1px solid #fee2e2;
    background-color: #fef2f2;
    border-radius: 6px;
    padding: 14px;
    font-size: 13px;
    color: #991b1b;
    line-height: 1.5;
}

.steps-danger-title {
    margin: 0 0 6px 0;
    font-weight: bold;
    font-size: 13.5px;
    color: #991b1b;
}

.steps-danger-desc {
    margin: 0 0 10px 0;
    color: #b91c1c;
    font-size: 12.5px;
}

.steps-error-banner {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.steps-recovery-question {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

/* Custom Confirmation Dialog Overlay */
.steps-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 57, 89, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px;
    box-sizing: border-box;
}

.steps-confirm-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    animation: stepsFadeIn 0.2s ease;
}

@keyframes stepsFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.steps-confirm-title {
    font-size: 16px;
    font-weight: bold;
    color: #093959;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steps-confirm-warning {
    color: #dc3545;
}

.steps-confirm-text {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.steps-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

/* WinBox Z-Index Override to stay on top of navigation header */
.winbox {
    z-index: 99999 !important;
}

/* Ensure minimized WinBox stays locked to the bottom of the viewport on mobile when navigation bars toggle */
.winbox.min {
    top: auto !important;
    bottom: 0 !important;
}