@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.portal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 60px 20px;
}

/* Header & Hero */
.portal-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    color: #ffffff;
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.portal-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #38bdf8;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 720px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.hero-stat-box .stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.hero-stat-box .stat-lbl {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* 3 App Cards Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.app-portal-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    position: relative;
}

.app-portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.card-top-stripe {
    height: 6px;
}
.stripe-syllabus { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.stripe-plan { background: linear-gradient(90deg, #059669, #10b981); }
.stripe-vijai { background: linear-gradient(90deg, #dc2626, #ef4444); }

.card-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.app-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.icon-syllabus { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
.icon-plan { background: linear-gradient(135deg, #059669, #10b981); }
.icon-vijai { background: linear-gradient(135deg, #dc2626, #ef4444); }

.app-badge-url {
    font-size: 0.72rem;
    font-family: monospace;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.app-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.app-feature-list {
    list-style: none;
    margin-bottom: 20px;
    font-size: 0.82rem;
}

.app-feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    margin-bottom: 6px;
}

.app-feature-list li i {
    font-size: 0.75rem;
}

.card-action-btns {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-portal-primary {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-portal-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.btn-portal-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-blue { background: #2563eb; }
.btn-blue:hover { background: #1d4ed8; }
.btn-green { background: #059669; }
.btn-green:hover { background: #047857; }
.btn-red { background: #dc2626; }
.btn-red:hover { background: #b91c1c; }

/* Table Section */
.card-table-wrap {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-table-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.portal-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.portal-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.portal-table tr:hover td {
    background: #f8fafc;
}

/* Footer */
.portal-footer {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}
