:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --input-bg: rgba(15, 23, 42, 0.6);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    margin: 2rem auto;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

h1, h2, h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-color);
}
.btn-danger:hover {
    background: var(--danger-hover);
}
.btn-auto {
    width: auto;
}
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.card-body p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.card-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger-color);
    color: #fca5a5;
}

/* Password reveal toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-color);
    flex-grow: 1;
    font-family: monospace;
    font-size: 1.1rem;
}
.password-wrapper input:focus {
    outline: none;
    box-shadow: none;
}
.toggle-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: auto;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
}
.toggle-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: none;
}
.copy-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #93c5fd;
    width: auto;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}
.copy-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: none;
}

.meta-info {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 1rem;
}
