/* ============================================================
   assets/css/style.css — SecmenTalep Custom Styles
   ============================================================ */

/* === Base === */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --success: #16a34a;
    --danger: #dc2626;
    --border-radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-hover: 0 8px 32px rgba(37,99,235,0.15);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Counter Animation === */
.counter-anim {
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 2ch;
}

/* === Navbar === */
.navbar-brand {
    font-size: 1.2rem;
    letter-spacing: -0.3px;
}

/* === Cards === */
.card {
    border-radius: var(--border-radius) !important;
    border: 1px solid #e2e8f0 !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-1px);
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Demand Cards === */
.demand-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: white;
    transition: all 0.2s ease;
}

.demand-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.demand-card .cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: white;
    opacity: 0.95;
}

/* === Vote Button === */
.vote-btn {
    transition: all 0.15s ease;
    border-radius: 999px !important;
}

.vote-btn:active {
    transform: scale(0.92);
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* === Subscription Lock Screen === */
.subscription-lock {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 2px dashed #c7d2fe;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
}

/* === Plan Cards === */
.plan-card {
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    background: white;
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.plan-price sup {
    font-size: 1rem;
    font-weight: 600;
    vertical-align: super;
}

/* === Admin Panel === */
.admin-sidebar-card {
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.admin-stat-row {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* === Tables === */
.table > thead > tr > th {
    background: #f8fafc;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

/* === Badges === */
.badge {
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* === Forms === */
.form-control, .form-select {
    border-radius: 8px !important;
    border-color: #cbd5e1;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* === Buttons === */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* === Avatar === */
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    font-weight: 700;
}

.avatar-md {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* === Section Title === */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

/* === Tabs === */
.nav-tabs .nav-link {
    color: #64748b;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

/* === Filter Bar === */
.filter-bar {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
}

/* === Status Badges === */
.status-badge-approved  { background: #dcfce7; color: #15803d; }
.status-badge-pending   { background: #fef3c7; color: #92400e; }
.status-badge-rejected  { background: #fee2e2; color: #b91c1c; }

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* === Avatars === */
.avatar-xs { width: 26px; height: 26px; min-width: 26px; font-size: 0.75rem; }
.avatar-sm { width: 32px; height: 32px; min-width: 32px; font-size: 0.85rem; }
.avatar-md { width: 40px; height: 40px; min-width: 40px; font-size: 1rem; }
.avatar-lg { width: 56px; height: 56px; min-width: 56px; font-size: 1.35rem; }

/* === Responsive === */
@media (max-width: 768px) {
    .stat-card .stat-number { font-size: 1.8rem; }
    .hero-section { padding: 3rem 0 !important; }
    .plan-price { font-size: 2rem; }
    
    /* Mobile Toasts & Modals */
    .toast-container {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: 92% !important;
        bottom: 1rem !important;
        padding: 0 !important;
    }
    .toast {
        width: 100% !important;
        border-radius: 12px !important;
    }
    .modal-dialog {
        margin: 1rem auto !important;
        max-width: 95% !important;
    }
    
    /* Mobile Tables & Cards */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    .navbar-nav .dropdown-menu {
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
}

/* === Print === */
@media print {
    .navbar, .footer, .btn, .filter-bar, .sidebar { display: none !important; }
    .card { border: 1px solid #ccc !important; box-shadow: none !important; }
    body { background: white; font-size: 12pt; }
}
