/* ==========================================
   KT SCRO - Main Frontend Stylesheet
   Author: JP Rose
   Plugin URI: https://kointool.com
   ========================================== */

/* ==========================================
   1. GLOBAL CONTAINER & LAYOUT RESETS
   ========================================== */
.kt-scro-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #f1f5f9;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.kt-scro-container * {
    box-sizing: border-box;
}

.kt-scro-card {
    background: #11131b;
    border: 1px solid #1f2330;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.kt-scro-grid-desk {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

@media (max-width: 860px) {
    .kt-scro-grid-desk {
        grid-template-columns: 1fr;
    }
}

.kt-scro-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 580px) {
    .kt-scro-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   2. TYPOGRAPHY, HEADERS & BADGES
   ========================================== */
.kt-scro-header {
    margin-bottom: 20px;
}

.kt-scro-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1f2330;
}

.kt-scro-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.kt-scro-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

.kt-scro-token-tag {
    display: inline-block;
    font-family: monospace;
    font-size: 0.8rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.kt-scro-amount-tag {
    font-size: 1.4rem;
    font-weight: 700;
    color: #10b981;
    text-align: right;
}

.kt-scro-currency {
    font-size: 0.9rem;
    color: #94a3b8;
}

.kt-scro-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.kt-scro-badge-awaiting_counterparty,
.kt-scro-badge-draft {
    background: #eab308;
    color: #000000;
}

.kt-scro-badge-in_negotiation {
    background: #3b82f6;
    color: #ffffff;
}

.kt-scro-badge-escrow_locked {
    background: #a855f7;
    color: #ffffff;
}

.kt-scro-badge-escrow_released,
.kt-scro-badge-success {
    background: #10b981;
    color: #ffffff;
}

.kt-scro-badge-escrow_refunded,
.kt-scro-badge-dispute {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================
   3. FORMS & INPUT CONTROLS
   ========================================== */
.kt-scro-form .kt-scro-field {
    margin-bottom: 16px;
}

.kt-scro-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.kt-scro-form input[type="text"],
.kt-scro-form input[type="number"],
.kt-scro-form select,
.kt-scro-form textarea {
    width: 100%;
    background: #090a0f;
    border: 1px solid #1f2330;
    border-radius: 6px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.kt-scro-form input:focus,
.kt-scro-form select:focus,
.kt-scro-form textarea:focus {
    border-color: #3b82f6;
}

/* ==========================================
   4. INVITE LINK, PARTIES & CONDITIONS
   ========================================== */
.kt-scro-invite-box {
    background: #0b0c13;
    border: 1px dashed #2a2f40;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
}

.kt-scro-invite-box label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.kt-scro-copy-wrap {
    display: flex;
    gap: 8px;
}

.kt-scro-copy-wrap input {
    flex: 1;
    background: #151824;
    border: 1px solid #232838;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: #38bdf8;
    font-family: monospace;
}

.kt-scro-parties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.kt-scro-party-card {
    background: #0b0c13;
    border: 1px solid #1f2330;
    border-radius: 6px;
    padding: 10px 12px;
}

.kt-scro-party-card small {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
}

.kt-scro-party-card strong {
    font-size: 0.95rem;
    color: #ffffff;
}

.kt-scro-condition-card {
    background: #0b0c13;
    border-left: 3px solid #3b82f6;
    border-radius: 0 6px 6px 0;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.kt-scro-condition-header {
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #cbd5e1;
}

.kt-scro-highlight {
    color: #38bdf8;
    font-weight: 600;
}

.kt-scro-condition-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================
   5. BUTTONS & ACTIONS
   ========================================== */
.kt-scro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kt-scro-btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.kt-scro-btn-primary:hover {
    background: #2563eb;
}

.kt-scro-btn-secondary {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
}

.kt-scro-btn-secondary:hover {
    background: #334155;
}

.kt-scro-btn-purple {
    background: #a855f7;
    color: #ffffff;
}

.kt-scro-btn-purple:hover {
    background: #9333ea;
}

.kt-scro-btn-success {
    background: #10b981;
    color: #ffffff;
}

.kt-scro-btn-success:hover {
    background: #059669;
}

.kt-scro-btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.kt-scro-btn-danger:hover {
    background: #dc2626;
}

.kt-scro-btn-outline {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.kt-scro-btn-outline:hover {
    background: #3b82f6;
    color: #ffffff;
}

.kt-scro-btn-full {
    width: 100%;
}

.kt-scro-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kt-scro-divider {
    border: none;
    border-top: 1px solid #1f2330;
    margin: 16px 0;
}

.kt-scro-admin-box {
    background: #1a1215;
    border: 1px solid #4a1d24;
    border-radius: 6px;
    padding: 12px;
}

.kt-scro-admin-label {
    display: block;
    color: #f87171;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.kt-scro-hint-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
}

.kt-scro-notice {
    padding: 12px 16px;
    border-radius: 6px;
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.9rem;
}

.kt-scro-notice-error {
    background: #450a0a;
    border: 1px solid #7f1d1d;
    color: #fca5a5;
}

.kt-scro-text-center {
    text-align: center;
}