﻿/* =========================
   KGA UI SYSTEM
   ========================= */

/* ---------- Buttons ---------- */

.btn-edit {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}

    .btn-edit:hover {
        background: #16a34a !important;
        border-color: #16a34a !important;
        color: #ffffff !important;
    }

/* ==================================================
   Select / Dropdowns (Dark Theme)
   ================================================== */

select,
.form-select,
.form-control select {
    background: #1f2937;
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
}

    select:focus,
    .form-select:focus {
        border-color: #a3e635;
        box-shadow: 0 0 0 3px rgba(163,230,53,.15);
        outline: none;
    }

    select option {
        background: #1f2937;
        color: #f8fafc;
    }

    select optgroup {
        background: #111827;
        color: #a3e635;
        font-weight: 700;
    }

/* ==================================================
   Status Badges
   ================================================== */

.badge-intern {
    background: rgba(59,130,246,.15);
    border: 1px solid rgba(59,130,246,.35);
    color: #93c5fd;
}

.badge-mitglied {
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.35);
    color: #86efac;
}

.badge-neu {
    background: rgba(239,68,68,.18);
    border: 1px solid rgba(239,68,68,.45);
    color: #fca5a5;
}

.badge-intern,
.badge-mitglied,
.badge-neu {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

/* =========================
   MOBILE TABLE CARDS
   ========================= */

@media (max-width: 900px) {
    .table-wrap {
        overflow-x: hidden !important;
    }

    .table-custom {
        min-width: 0 !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 14px !important;
    }

        .table-custom thead {
            display: none !important;
        }

        .table-custom,
        .table-custom tbody,
        .table-custom tr,
        .table-custom td {
            display: block !important;
            width: 100% !important;
        }

            .table-custom tr {
                background: rgba(15, 23, 42, .85) !important;
                border: 1px solid rgba(148, 163, 184, .22) !important;
                border-radius: 16px !important;
                padding: 16px !important;
                margin-bottom: 14px !important;
            }

            .table-custom td {
                border: none !important;
                padding: 7px 0 !important;
                color: #f8fafc !important;
            }

                .table-custom td::before {
                    content: attr(data-label);
                    display: block;
                    color: #94a3b8;
                    font-size: 12px;
                    font-weight: 800;
                    margin-bottom: 3px;
                }

                .table-custom td.actions {
                    display: flex !important;
                    flex-direction: row !important;
                    gap: 10px !important;
                    width: 100% !important;
                    margin-top: 14px !important;
                    padding-top: 14px !important;
                }

                    .table-custom td.actions::before {
                        display: none !important;
                        content: none !important;
                    }

                    .table-custom td.actions > a,
                    .table-custom td.actions > form {
                        flex: 1 1 0 !important;
                        width: 50% !important;
                        min-width: 0 !important;
                        margin: 0 !important;
                    }

                    .table-custom td.actions > form,
                    .table-custom td.actions form.inline {
                        display: flex !important;
                    }

                    .table-custom td.actions .btn {
                        width: 100% !important;
                        min-height: 52px !important;
                        display: flex !important;
                        align-items: center !important;
                        justify-content: center !important;
                        white-space: nowrap !important;
                    }

                    .table-custom td.actions .btn-edit {
                        background: #22c55e !important;
                        border-color: #22c55e !important;
                        color: #ffffff !important;
                    }

                    .table-custom td.actions .btn-danger {
                        background: #ef4444 !important;
                        border-color: #ef4444 !important;
                        color: #ffffff !important;
                    }
}
