/* =========================================
   1. VARIABLES & THEMES (RED THEME)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    /* Light Theme (School Deep Red) */
    --bg-color: #fcf4f4;
    --surface-color: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.85);
    --text-color: #2c1a1a;
    --text-muted: #735d5d;
    
    --hp-pink: #a81c1c; /* Deep Red */
    --hp-pink-glow: rgba(168, 28, 28, 0.3);
    --hp-orange: #d13030; /* Lighter Red */
    --hp-yellow: #f39c12;
    
    --hp-gradient: linear-gradient(135deg, var(--hp-pink) 0%, var(--hp-orange) 100%);
    --border-color: rgba(168,28,28,0.1);
    --shadow-sm: 0 6px 16px rgba(168,28,28,0.06);
    --shadow-lg: 0 12px 32px rgba(168,28,28,0.12);
    
    --input-bg: #fff5f5;
    --input-border: #f0c9c9;
    --surface-card: #ffffff;
}

[data-theme="dark"] {
    /* Dark Theme (School Deep Red) */
    --bg-color: #120a0a;
    --surface-color: #1c1111;
    --header-bg: rgba(28, 17, 17, 0.85);
    --surface-card: #251616;
    --text-color: #ffeaea;
    --text-muted: #a88a8a;
    
    --hp-pink: #ff4d4d;
    --hp-pink-glow: rgba(255, 77, 77, 0.4);
    --hp-orange: #ff7676;
    
    --border-color: rgba(255,77,77,0.15);
    --shadow-sm: 0 6px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.7);
    
    --input-bg: #251616;
    --input-border: #3b2222;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    padding-bottom: 50px;
    -webkit-tap-highlight-color: transparent;
}

/* Base Styles */
h1, h2, h3, h4, h5 { font-weight: 900; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Outfit', sans-serif; cursor: pointer; border: none; outline: none; }

/* Header */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 15px;
    z-index: 1000;
    width: calc(100% - 30px);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--hp-pink); }
.logo span { background: var(--hp-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.badge { background: var(--hp-gradient); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; }

/* Cards & Modals - Material 3 Rounded */
.card {
    background: var(--surface-card);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--hp-pink); }

/* Buttons */
.btn-primary {
    background: var(--hp-gradient);
    color: white;
    padding: 14px 24px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 16px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    text-align: center;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px var(--hp-pink-glow); }

.btn-secondary {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    padding: 14px 24px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 16px;
    transition: 0.3s ease;
}
.btn-secondary:hover { border-color: var(--hp-pink); color: var(--hp-pink); }

/* Inputs */
.input-text {
    width: 100%;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 18px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s ease;
}
.input-text:focus { border-color: var(--hp-pink); background: var(--surface-color); box-shadow: 0 0 0 4px var(--hp-pink-glow); outline: none; }

/* Warning Text */
.text-warning { color: var(--hp-orange); font-weight: 700; font-size: 14px; }
.encryption-notice {
    font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 15px;
}
