@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.1.0/sweetalert2.min.css');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css");

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: 'Poppins', sans-serif !important;
    min-height: 100vh;
}

.container {
    max-width: 1140px;
}

.btn-default {
    background-color: #1b6ec2;
    color: white;
}

.btn-default:hover {
    background-color: dodgerblue;
    color: whitesmoke;
}

.key-sensi {
    filter: blur(3px);
}

/* ----- Panel cards ----- */
.panel-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.panel-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.08) !important;
}
.panel-card-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border: none;
}
.panel-card-header-info {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
}

/* ----- Stat cards (dashboard) ----- */
.stat-card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,.1) !important;
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-card-balance .stat-icon { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.stat-card-keys .stat-icon { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.stat-card-role .stat-icon { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
.stat-card-action .stat-icon { background: rgba(59, 130, 246, 0.1); }
.stat-card-action:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(37, 99, 235, 0.08) 100%);
}
.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* ----- Alerts / toasts ----- */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.alert-success { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #166534; }
.alert-danger { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #991b1b; }
.alert-warning { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; }
.alert-secondary { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #475569; }

/* ----- Cards global ----- */
.card {
    border-radius: 12px;
}
.card-header:first-child {
    border-radius: 12px 12px 0 0;
}

/* ----- Copy button ----- */
.btn-copy {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}
.copied .btn-copy {
    background: #16a34a !important;
    color: #fff !important;
    border-color: #16a34a;
}

.list-group-borderless .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.list-group-borderless .list-group-item:last-child {
    border-bottom: none;
}