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

:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary: #00f2fe;
    --secondary: #4facfe;
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 254, 0.15), transparent 25%);
    background-attachment: fixed;
}

header {
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.05);
}

.generator-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary);
}

.btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #0b0f19;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.5);
}

.result-box {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 500px;
    display: none;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.key-display {
    background: rgba(0,0,0,0.6);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px dashed var(--primary);
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--primary);
    word-break: break-all;
    text-align: center;
    width: 100%;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary);
    color: var(--bg-color);
}

.stats-section {
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.stat-title {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    font-family: monospace;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.4);
    padding: 0.5rem;
    border-radius: 5px;
    word-break: break-all;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 50px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.code-block {
    background: #000;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    font-family: monospace;
    color: #a5d6ff;
    overflow-x: auto;
    line-height: 1.5;
}

.keyword { color: #ff7b72; }
.string { color: #a5d6ff; }
.comment { color: #8b949e; }

/* Modal and Tab styling */
.tab-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.tab {
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.admin-only {
    display: none;
}
