/*
 * Flat button overrides — project design system
 * Replaces the theme's inset-shadow "raised" buttons with clean flat style.
 * Color palette: blue #3498db · green #27ae60 · red #e74c3c · orange #f39c12
 */

/* ── Base reset ─────────────────────────────────────────────────────── */
.btn {
    box-shadow: none !important;
    border-width: 0;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    outline: none !important;
}
.btn:active {
    transform: translateY(1px);
}

/* ── btn-primary ────────────────────────────────────────────────────── */
.btn-primary {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #2181c4 !important;
    border-color: #2181c4 !important;
    color: #fff !important;
}
.btn-primary:active,
.btn-primary.active {
    background-color: #1a6faa !important;
}

/* ── btn-info ───────────────────────────────────────────────────────── */
.btn-info {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: #fff !important;
}
.btn-info:hover,
.btn-info:focus {
    background-color: #2181c4 !important;
    border-color: #2181c4 !important;
    color: #fff !important;
}
.btn-info:active,
.btn-info.active {
    background-color: #1a6faa !important;
}

/* ── btn-success ────────────────────────────────────────────────────── */
.btn-success {
    background-color: #27ae60 !important;
    border-color: #27ae60 !important;
    color: #fff !important;
}
.btn-success:hover,
.btn-success:focus {
    background-color: #1e8c4d !important;
    border-color: #1e8c4d !important;
    color: #fff !important;
}

/* ── btn-danger ─────────────────────────────────────────────────────── */
.btn-danger {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: #fff !important;
}
.btn-danger:hover,
.btn-danger:focus {
    background-color: #c0392b !important;
    border-color: #c0392b !important;
    color: #fff !important;
}

/* ── btn-warning ────────────────────────────────────────────────────── */
.btn-warning {
    background-color: #f39c12 !important;
    border-color: #f39c12 !important;
    color: #fff !important;
}
.btn-warning:hover,
.btn-warning:focus {
    background-color: #d68910 !important;
    border-color: #d68910 !important;
    color: #fff !important;
}

/* ── btn-default ────────────────────────────────────────────────────── */
.btn-default {
    background-color: #f5f7fa !important;
    border: 1px solid #dce4ec !important;
    color: #5a6c7d !important;
}
.btn-default:hover,
.btn-default:focus {
    background-color: #eaf0f7 !important;
    border-color: #b8c8d8 !important;
    color: #2c3e50 !important;
}

/* ── btn-white ──────────────────────────────────────────────────────── */
.btn-white {
    background-color: #fff !important;
    border: 1px solid #dce4ec !important;
    color: #5a6c7d !important;
    box-shadow: none !important;
}
.btn-white:hover,
.btn-white:focus {
    background-color: #f4f8fc !important;
    border-color: #3498db !important;
    color: #3498db !important;
}
.btn-white:active {
    background-color: #eaf3fb !important;
}

/* ── btn-inverse / secondary ────────────────────────────────────────── */
.btn-inverse {
    background-color: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
}
.btn-inverse:hover,
.btn-inverse:focus {
    background-color: #1a252f !important;
    border-color: #1a252f !important;
    color: #fff !important;
}

/* ── disabled state ─────────────────────────────────────────────────── */
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Size corrections ───────────────────────────────────────────────── */
.btn-xs { padding: 3px 8px;  font-size: 11px; border-radius: 4px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 11px 20px; font-size: 15px; border-radius: 6px; }

/* ── btn-block micro-lift on hover ──────────────────────────────────── */
.btn-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}
.btn-block:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* ── Input-group buttons (no radius on inner edge) ──────────────────── */
.input-group-btn .btn {
    border-radius: 0 5px 5px 0;
}
.input-group-btn:first-child .btn {
    border-radius: 5px 0 0 5px;
}
