File size: 9,549 Bytes
59ec65a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{{ title }}</title>
  <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
  <style>
    :root {
      /* Palette maintained from your example */
      --bg-root: #f8fafc;
      --glass-bg: rgba(255, 255, 255, 0.75);
      --glass-surface: rgba(255, 255, 255, 0.4);
      
      --primary: #4f46e5;    /* Indigo 600 */
      --primary-light: #818cf8;
      --primary-dim: rgba(79, 70, 229, 0.08);
      --accent: #ec4899;     /* Pink 500 */
      
      --text-main: #0f172a;  /* Slate 900 */
      --text-muted: #64748b; /* Slate 500 */
      --success: #10b981;    /* Emerald 500 */
      --danger: #ef4444;     /* Red 500 */
      
      --font-main: 'Plus Jakarta Sans', sans-serif;
      --font-code: 'JetBrains Mono', monospace;
    }

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

    body {
      font-family: var(--font-main);
      background: #eef2f6;
      background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
      width: 100vw;
      height: 100vh;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* --- Layout Skeleton (Identical to reference) --- */
    .slide-wrap {
      width: 1920px;
      height: 1080px;
      background: var(--glass-bg);
      backdrop-filter: blur(20px);
      box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
      border-radius: 24px;
      overflow: hidden;
      position: relative;
      display: flex;
    }

    .sidebar-decor {
      width: 12px;
      height: 100%;
      background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
      flex-shrink: 0;
    }

    .slide {
      flex: 1;
      padding: 60px 80px;
      height: 100%;
      display: flex;
      flex-direction: column;
      z-index: 10;
      position: relative;
    }

    /* --- Typography --- */
    .header {
      margin-bottom: 40px;
      flex-shrink: 0;
      position: relative;
    }

    .header::after {
      content: '';
      position: absolute;
      bottom: -15px;
      left: 0;
      width: 80px;
      height: 4px;
      background: var(--primary);
      border-radius: 2px;
    }

    .title {
      font-size: 52px;
      font-weight: 800;
      color: var(--text-main);
      letter-spacing: -0.03em;
      line-height: 1.1;
      margin-bottom: 12px;
    }

    .subtitle {
      font-size: 22px;
      color: var(--text-muted);
      font-weight: 500;
    }

    /* --- Table Container --- */
    .table-container {
      background: var(--glass-surface);
      border: 1px solid rgba(255, 255, 255, 0.6);
      border-radius: 20px;
      box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        0 10px 30px rgba(0,0,0,0.03);
      flex: 1;
      overflow: hidden; /* Rounded corners for inner table */
      position: relative;
      display: flex;
      flex-direction: column;
    }

    /* Scrollable area if content is long */
    .table-scroll {
      width: 100%;
      height: 100%;
      overflow-y: auto;
      padding: 0;
    }

    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      text-align: left;
    }

    /* Table Header */
    thead {
      position: sticky;
      top: 0;
      z-index: 2;
      background: rgba(255,255,255,0.9);
      backdrop-filter: blur(10px);
    }

    th {
      padding: 24px 32px;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      font-weight: 700;
      border-bottom: 2px solid var(--primary-dim);
    }

    /* Table Body */
    td {
      padding: 20px 32px;
      color: var(--text-main);
      font-size: 18px;
      font-weight: 500;
      border-bottom: 1px solid rgba(0,0,0,0.04);
      transition: background 0.2s;
    }

    tr:last-child td {
      border-bottom: none;
    }

    tr:hover td {
      background: rgba(255, 255, 255, 0.5);
    }

    /* --- "Winner" / Highlighted Column Styling --- */
    /* This class is applied via Jinja if a column is marked highlighted */
    .col-highlight {
      background: rgba(79, 70, 229, 0.03);
      position: relative;
    }
    
    th.col-highlight {
      color: var(--primary);
      background: rgba(79, 70, 229, 0.08);
      border-bottom: 2px solid var(--primary);
    }

    td.col-highlight {
      font-weight: 700; /* Bolder text for the winner */
      background: rgba(79, 70, 229, 0.03);
    }

    /* "Best Choice" Badge for the header */
    .badge-best {
      display: inline-block;
      margin-left: 8px;
      padding: 4px 8px;
      font-size: 10px;
      background: var(--primary);
      color: white;
      border-radius: 4px;
      vertical-align: middle;
      transform: translateY(-2px);
    }

    /* Feature/Label Column (First Column) styling */
    td:first-child {
      font-weight: 600;
      color: var(--text-muted);
      width: 25%; /* Fixed width for labels */
      background: rgba(255,255,255,0.3); /* Slight dim */
    }

    /* --- Icons & Badges --- */
    .icon-check {
      color: var(--success);
      width: 24px;
      height: 24px;
      background: rgba(16, 185, 129, 0.1);
      border-radius: 50%;
      padding: 4px;
    }

    .icon-cross {
      color: var(--text-muted);
      opacity: 0.5;
      width: 24px;
      height: 24px;
    }

    .text-mono {
      font-family: var(--font-code);
      font-size: 0.9em;
      color: var(--primary);
      background: rgba(79, 70, 229, 0.1);
      padding: 4px 8px;
      border-radius: 6px;
    }

    /* --- Background Blobs & Floating Elements --- */
    .blob {
      position: absolute;
      filter: blur(80px);
      opacity: 0.4;
      z-index: 1;
    }
    .blob-1 { top: -10%; right: -5%; width: 600px; height: 600px; background: var(--primary-light); }
    .blob-2 { bottom: -10%; left: -5%; width: 500px; height: 500px; background: var(--accent); }

    .float-tag {
      position: absolute;
      bottom: 30px;
      right: 30px;
      display: flex;
      align-items: center;
      gap: 10px;
      background: #fff;
      padding: 8px 16px;
      border-radius: 50px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      z-index: 20;
    }
    
    .dot {
      width: 8px;
      height: 8px;
      background: var(--accent);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    .tag-text {
      font-family: var(--font-code);
      font-size: 12px;
      font-weight: 600;
      color: var(--text-main);
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
      70% { box-shadow: 0 0 0 6px rgba(236, 72, 153, 0); }
      100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
    }
  </style>
</head>
<body>
  <div class="slide-wrap">
    
    <div class="sidebar-decor"></div>

    <div class="blob blob-1"></div>
    <div class="blob blob-2"></div>

    <div class="slide">
      <div class="header">
        <h1 class="title">{{ title }}</h1>
        {% if subtitle %}
        <p class="subtitle">{{ subtitle }}</p>
        {% endif %}
      </div>

      <div class="table-container">
        <div class="table-scroll">
          <table>
            <thead>
              <tr>
                <th>Feature</th>
                
                {% for col in columns %}
                  <th class="{{ 'col-highlight' if loop.index0 == highlight_index else '' }}">
                    {{ col }}
                    {% if loop.index0 == highlight_index %}
                      <span class="badge-best">RECOMMENDED</span>
                    {% endif %}
                  </th>
                {% endfor %}
              </tr>
            </thead>
            <tbody>
              {% for row in rows %}
              <tr>
                <td>{{ row[0] }}</td>
                
                {% for cell in row[1:] %}
                  <td class="{{ 'col-highlight' if loop.index0 == highlight_index else '' }}">
                    
                    {% if cell is boolean %}
                      {% if cell %}
                        <svg class="icon-check" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M5 13l4 4L19 7"></path></svg>
                      {% else %}
                        <svg class="icon-cross" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 12H4"></path></svg>
                      {% endif %}
                    
                    {% elif cell == "Unlimited" or cell == "Enterprise" %}
                      <span style="color: var(--primary); font-weight: 800;">{{ cell }}</span>
                    
                    {% else %}
                      {{ cell }}
                    {% endif %}

                  </td>
                {% endfor %}
              </tr>
              {% endfor %}
            </tbody>
          </table>
        </div>
      </div>
    </div>

    <div class="float-tag">
      <div class="dot"></div>
      <span class="tag-text">{{ footer_tag or 'Comparison View' }}</span>
    </div>

  </div>
</body>
</html>