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

/* stack/style.css - Modern, Simple, Pastel (Light Blue & Pink) */
:root {
    --text-primary: #334155;
    --text-secondary: #64748b;
    --bg-body: #ffffff;
    --bg-surface: rgba(255, 255, 255, 0.7);
    --primary-blue: #bae6fd;
    --primary-pink: #fbcfe8;
    --btn-text: #0f172a;
    --gradient-bg: linear-gradient(135deg, #f0f9ff 0%, #fdf2f8 100%);
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --danger-text: #dc2626;
    --border: #e2e8f0;
    --focus-ring: rgba(37, 99, 235, 0.4); /* Blue focus ring */
}

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

body {
    font-family: 'Inter', 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    background-image: 
        radial-gradient(circle at top left, #f0f9ff, transparent 40%),
        radial-gradient(circle at bottom right, #fdf2f8, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05), 0 0 20px rgba(249, 168, 212, 0.1);
}

/* Typography */
h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Forms */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
input[type="text"],
input[type="password"],
input[type="url"] {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) inset, 0 0 0 1px var(--border);
    transition: all 0.3s ease;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="url"]:focus {
    outline: none;
    border-color: transparent;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px var(--focus-ring), 0 0 0 1px var(--primary-pink);
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring);
}
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}
.btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Alerts - Inline Message */
.alert {
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.alert-success {
    background-color: rgba(252, 231, 243, 0.9); /* light pink */
    color: #831843;
    border: 1px solid #fbcfe8;
}
.alert-error {
    background-color: rgba(239, 68, 68, 0.85);
    color: #ffffff;
    border: 1px solid rgba(220, 38, 38, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1px; /* for border effect */
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
tr:hover td {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Badges / Text */
.warning-text {
    color: var(--danger-text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding: 16px;
    background-color: rgba(254, 226, 226, 0.7);
    border-radius: 12px;
}

.text-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-primary);
}

/* Utilities */
.fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: none;
}
