/* pSephizo custom styles layered on top of Tailwind CDN */

.app-gradient-bg {
    background:
        radial-gradient(60rem 40rem at 110% -10%, rgba(139, 92, 246, 0.12), transparent 60%),
        radial-gradient(50rem 35rem at -10% 110%, rgba(169, 112, 255, 0.08), transparent 60%);
}

.glass-card {
    background: rgba(21, 29, 46, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.glass-card-hover {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.glass-card-hover:hover {
    transform: translateY(-2px);
    border-color: rgba(169, 112, 255, 0.35);
    box-shadow: 0 14px 40px rgba(139, 92, 246, 0.15);
}

.hero-gradient {
    background: linear-gradient(115deg, #d9f99d 0%, #a7f3d0 45%, #fde68a 100%);
    color: #10241b;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #8B5CF6;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1.1rem;
    border-radius: 9999px;
    transition: background 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}
.btn-primary:hover { background: #A970FF; transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1.1rem;
    border-radius: 9999px;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 93, 98, 0.15);
    border: 1px solid rgba(239, 93, 98, 0.3);
    color: #fda4af;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1.1rem;
    border-radius: 9999px;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.btn-danger:hover { background: rgba(239, 93, 98, 0.28); }

.form-input {
    width: 100%;
    background: #0d1526;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.9rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.form-input::placeholder { color: #64748b; }
select.form-input option { background: #151D2E; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}
.form-hint { font-size: 0.72rem; color: #64748b; margin-top: 0.25rem; }

.progress-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    height: 6px;
}
.progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #8B5CF6, #C4A7FF);
    transition: width 0.4s ease;
}

.table-dark th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}
.table-dark td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}
.table-dark tbody tr { transition: background 0.12s ease; }
.table-dark tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table-dark tbody tr:last-child td { border-bottom: none; }

/* Dropdown action menus */
.action-menu { position: relative; }
.action-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 11rem;
    z-index: 40;
    padding: 0.4rem;
    border-radius: 1rem;
}
.action-menu-panel a, .action-menu-panel button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.8rem;
    border-radius: 0.6rem;
    font-size: 0.82rem;
    color: #cbd5e1;
}
.action-menu-panel a:hover, .action-menu-panel button:hover { background: rgba(255, 255, 255, 0.06); }
.action-menu-panel .danger { color: #fda4af; }

/* Scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.5); }

/* Sticky mobile action button */
.fab {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 45;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8B5CF6, #A970FF);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.45);
    font-size: 1.6rem;
    font-weight: 700;
}
@media (min-width: 768px) { .fab { display: none; } }

/* Print styles for reports and vouchers */
@media print {
    body { background: #fff !important; color: #111 !important; }
    .app-gradient-bg, aside, header, .no-print, .fab { display: none !important; }
    .lg\:ml-64, .md\:ml-20 { margin-left: 0 !important; }
    .glass-card { background: #fff !important; border: 1px solid #ddd !important; box-shadow: none !important; color: #111 !important; }
    .glass-card * { color: #111 !important; }
    main { padding: 0 !important; max-width: 100% !important; }
}
