/* ==================== Buttons ==================== */

.to-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--to-space-2);
    padding: 12px 24px;
    font-family: inherit;
    font-size: var(--to-fs-sm);
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: var(--to-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.to-btn:disabled,
.to-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary */
.to-btn--primary {
    background: var(--to-primary);
    color: white;
}
.to-btn--primary:hover {
    background: var(--to-primary-light);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--to-shadow-md);
}

/* Accent */
.to-btn--accent {
    background: var(--to-accent);
    color: white;
}
.to-btn--accent:hover {
    background: #e0941b;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--to-shadow-md);
}

/* Outline */
.to-btn--outline {
    background: transparent;
    color: var(--to-primary);
    border: 1.5px solid var(--to-primary);
}
.to-btn--outline:hover {
    background: var(--to-primary);
    color: white;
}

/* Ghost */
.to-btn--ghost {
    background: transparent;
    color: var(--to-text);
    border: 1px solid var(--to-border);
}
.to-btn--ghost:hover {
    border-color: var(--to-primary-light);
    color: var(--to-primary);
    background: var(--to-primary-50);
}

/* Sizes */
.to-btn--sm { padding: 8px 16px; font-size: var(--to-fs-xs); }
.to-btn--lg { padding: 16px 32px; font-size: var(--to-fs-base); }
.to-btn--block { display: flex; width: 100%; }

/* ==================== Cards ==================== */

.to-card {
    background: var(--to-surface);
    border: 1px solid var(--to-border);
    border-radius: var(--to-radius-md);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.to-card:hover {
    box-shadow: var(--to-shadow-md);
    transform: translateY(-2px);
}

.to-card__body { padding: var(--to-space-5); }

/* ==================== Form Fields ==================== */

.to-field {
    margin-bottom: var(--to-space-4);
}

.to-field__label {
    display: block;
    font-size: var(--to-fs-xs);
    font-weight: 500;
    margin-bottom: var(--to-space-2);
    color: var(--to-text);
}

.to-field__input,
.to-field__select,
.to-field__textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: var(--to-fs-sm);
    color: var(--to-text);
    background: var(--to-surface);
    border: 1px solid var(--to-border);
    border-radius: var(--to-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.to-field__input:focus,
.to-field__select:focus,
.to-field__textarea:focus {
    outline: none;
    border-color: var(--to-primary);
    box-shadow: 0 0 0 3px var(--to-primary-50);
}

.to-field__textarea {
    min-height: 100px;
    resize: vertical;
    line-height: var(--to-line-normal);
}

/* ==================== Badge ==================== */

.to-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: var(--to-fs-xs);
    font-weight: 500;
    line-height: 1.4;
    border-radius: var(--to-radius-full);
    white-space: nowrap;
}

.to-badge--success { background: #E8F5EE; color: var(--to-success); }
.to-badge--warning { background: #FFF4E0; color: var(--to-warning); }
.to-badge--danger  { background: #FDEAEA; color: var(--to-danger);  }
.to-badge--info    { background: var(--to-primary-50); color: var(--to-primary); }

/* ==================== Notice ==================== */

.to-notice {
    padding: var(--to-space-3) var(--to-space-4);
    border-radius: var(--to-radius-sm);
    font-size: var(--to-fs-sm);
    border-right: 3px solid var(--to-primary);
    background: var(--to-primary-50);
    color: var(--to-primary-dark);
    margin-bottom: var(--to-space-4);
}

.to-notice--warning {
    border-color: var(--to-warning);
    background: #FFF4E0;
    color: #8B5A00;
}

.to-notice--danger {
    border-color: var(--to-danger);
    background: #FDEAEA;
    color: #8B1F1F;
}

/* ==================== Divider ==================== */

.to-divider {
    height: 1px;
    background: var(--to-border);
    border: none;
    margin: var(--to-space-5) 0;
}

.to-divider--dashed {
    background: none;
    border-top: 1px dashed var(--to-border);
}