/* SiteRecord - Administrative UI Stylesheet */

/* Import canonical typography tokens */
@import url('./css/typography.css');

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    background-color: #f7f8fa;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.container-wide {
    max-width: 1200px;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    margin-bottom: 30px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin: 0;
}

.site-subtitle {
    font-size: 12px;
    color: #666;
    margin: 2px 0 0 0;
}

.site-nav {
    font-size: 13px;
}

.site-nav a {
    color: #555;
    text-decoration: none;
    margin-left: 20px;
}

.site-nav a:hover {
    color: #222;
    text-decoration: underline;
}

/* Main Content */
main {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 25px;
    margin-bottom: 30px;
}

/* Section Titles */
h1 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

h2:first-child {
    margin-top: 0;
}

/* Paragraphs */
p {
    margin: 10px 0;
    color: #444;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 13px;
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

tbody tr:hover {
    background-color: #f5f5f5;
}

/* Forms */
form {
    margin: 15px 0;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    color: #222;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #888;
}

.form-group {
    margin-bottom: 15px;
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-inline label {
    display: inline;
    margin-bottom: 0;
}

.form-inline select,
.form-inline input {
    width: auto;
}

/* Buttons */
button,
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #333;
    background-color: #e5e5e5;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    vertical-align: middle;
}

button:hover,
.btn:hover {
    background-color: #d5d5d5;
    text-decoration: none;
}

button:active,
.btn:active {
    background-color: #c5c5c5;
}

.btn-primary {
    background-color: #4a5568;
    border-color: #4a5568;
    color: #fff;
}

.btn-primary:hover {
    background-color: #3d4654;
}

.btn-danger {
    background-color: #9b2c2c;
    border-color: #9b2c2c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #822727;
}

/* Status Labels */
.status {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-new {
    background-color: #e2e8f0;
    color: #4a5568;
}

.status-acknowledged {
    background-color: #bee3f8;
    color: #2b6cb0;
}

.status-in_progress {
    background-color: #feebc8;
    color: #c05621;
}

.status-resolved {
    background-color: #c6f6d5;
    color: #276749;
}

.status-wont_fix {
    background-color: #cbd5e0;
    color: #2d3748;
}

.status-false_positive {
    background-color: #e9d8fd;
    color: #6b46c1;
}

/* Scan Status */
.scan-status-completed {
    color: #276749;
}

.scan-status-failed {
    color: #c53030;
}

.scan-status-running {
    color: #c05621;
}

/* Alerts / Messages */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-size: 13px;
}

.alert-success {
    background-color: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #276749;
}

.alert-error {
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.alert-info {
    background-color: #bee3f8;
    border: 1px solid #90cdf4;
    color: #2b6cb0;
}

/* Info Table (key-value pairs) */
.info-table {
    width: auto;
    min-width: 400px;
}

.info-table th {
    width: 180px;
    background-color: #f9fafb;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 15px;
}

.card h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.card p {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

/* Pre-formatted text */
pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Utility Classes */
.text-muted {
    color: #666;
}

.text-small {
    font-size: 12px;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Login/Register Page */
.auth-container {
    max-width: 400px;
    margin: 60px auto;
}

.auth-container main {
    padding: 30px;
}

.auth-container h1 {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.auth-container .site-subtitle {
    text-align: center;
    margin-bottom: 25px;
}

.auth-container .form-group {
    margin-bottom: 18px;
}

.form-group-checkbox {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #007bff;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    max-width: 100%;
}

.password-field {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding-right: 64px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px;
    border: 0;
    background: transparent;
    color: #555;
    border-radius: 3px;
    cursor: pointer;
    z-index: 2;
}

.auth-container .password-toggle {
    width: auto !important;
    min-width: 0 !important;
    padding: 4px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-container .password-toggle svg {
    display: block;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.password-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle[data-password-visible="1"] {
    color: #111;
}

.form-help {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.auth-container button.btn-primary {
    width: 100%;
    padding: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

/* System Check Page */
.system-check-table td:first-child {
    font-weight: 500;
    width: 200px;
}

.system-check-table .status-ok {
    color: #276749;
    font-weight: 600;
}

.system-check-table .status-fail {
    color: #c53030;
    font-weight: 600;
}

.system-check-table .status-warn {
    color: #c05621;
    font-weight: 600;
}

.system-check-table .status-none {
    color: #718096;
}

.system-check-table .status-info {
    color: #2b6cb0;
}

/* Issue Cards */
.issue-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.issue-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.issue-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.issue-impact {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
}

.issue-impact.impact-critical {
    background: #fed7d7;
    color: #c53030;
}

.issue-impact.impact-serious {
    background: #feebc8;
    color: #c05621;
}

.issue-impact.impact-moderate {
    background: #fefcbf;
    color: #975a16;
}

.issue-impact.impact-minor {
    background: #e2e8f0;
    color: #4a5568;
}

.issue-wcag {
    font-size: 12px;
    color: #4a5568;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 3px;
}

.issue-type {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 4px;
    word-break: break-word;
}

.issue-url {
    font-size: 12px;
    color: #718096;
    margin-bottom: 12px;
    word-break: break-all;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.issue-details {
    margin-top: 8px;
}

.issue-details-summary {
    cursor: pointer;
    font-size: 13px;
    color: #2b6cb0;
    user-select: none;
}

.issue-details-summary:hover {
    text-decoration: underline;
}

.issues-toolbar {
    margin-bottom: 12px;
}

.issues-toolbar-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.issues-toolbar .form-group {
    margin-bottom: 0;
}

.issues-toolbar input[type="text"],
.issues-toolbar select {
    max-width: 260px;
}

.issues-table-wrap {
    overflow-x: auto;
}

.issues-table {
    width: 100%;
}

.issues-sort {
    cursor: pointer;
}

.issues-col-page {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.issues-col-type {
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.issues-actions {
    white-space: nowrap;
}

.issue-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.issue-inline-form select {
    max-width: 160px;
}

.issue-inline-form .btn {
    padding: 6px 10px;
}

@media (max-width: 820px) {
    .issues-col-page,
    .issues-col-wcag {
        display: none;
    }
}

.issue-drawer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9998;
}

.issue-drawer.issue-drawer-visible {
    display: block;
}

.issue-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.issue-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(520px, 92vw);
    background: #fff;
    box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.issue-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.issue-drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.issue-drawer-body {
    padding: 16px;
    overflow-y: auto;
}

.issue-drawer-meta {
    font-size: 12px;
    color: #718096;
    margin-bottom: 12px;
    line-height: 1.4;
}

.issue-drawer-section {
    margin-bottom: 14px;
}

.issue-drawer-label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.issue-drawer-text {
    font-size: 13px;
    color: #2d3748;
    line-height: 1.5;
}

.issue-drawer-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
}

.issue-update-form {
    background: #f7fafc;
    padding: 12px;
    border-radius: 4px;
    margin-top: 8px;
}

.issue-form-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.issue-form-row label {
    min-width: 50px;
    font-size: 13px;
    color: #4a5568;
    padding-top: 6px;
}

.issue-form-row select {
    flex: 1;
    max-width: 200px;
}

.issue-form-row textarea {
    flex: 1;
    font-family: inherit;
    font-size: 13px;
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    resize: vertical;
    min-height: 50px;
}

.issue-form-row textarea:focus {
    outline: none;
    border-color: #4a5568;
}

/* Error Pages */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-page h1 {
    font-size: 120px;
    font-weight: 700;
    color: #cbd5e0;
    margin: 0;
    line-height: 1;
}

.error-page .error-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 16px 0 8px;
}

.error-page .error-message {
    color: #718096;
    margin: 8px 0;
}

.error-page .btn {
    margin-top: 24px;
}

/* Modal Dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.modal-overlay.modal-visible {
    opacity: 1;
}

.modal-overlay.modal-closing {
    opacity: 0;
}

.modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.15s ease;
    display: none; /* Hide modal by default */
}

.modal-visible .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 0;
}

.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.modal-info .modal-icon {
    background: #ebf8ff;
    color: #2b6cb0;
}

.modal-success .modal-icon {
    background: #f0fff4;
    color: #276749;
}

.modal-error .modal-icon {
    background: #fff5f5;
    color: #c53030;
}

.modal-warning .modal-icon,
.modal-confirm .modal-icon {
    background: #fffaf0;
    color: #c05621;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.modal-body {
    padding: 16px 20px;
}

.modal-body p {
    margin: 0;
    color: #4a5568;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 20px 20px;
}

.modal-footer .btn {
    min-width: 80px;
}

.btn-destructive {
    background: #c53030;
    color: #fff;
    border: none;
}

.btn-destructive:hover {
    background: #9b2c2c;
}

/* Schedule Form */
.schedule-form {
    background: #f7fafc;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

.form-row .form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
}

.form-row .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

/* Landing Page */
.landing-page {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.landing-header {
    padding: 20px 0;
}

.landing-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-nav a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
}

.landing-nav a:hover {
    color: #222;
}

.landing-logo {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.landing-nav a {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
}

.landing-nav a:hover {
    color: #2d3748;
}

.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.launch-badge {
    display: inline-block;
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    margin: 0 0 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 20px;
    color: #4a5568;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.waitlist-input-group input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
}

.waitlist-input-group input[type="email"]:focus {
    border-color: #4a5568;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.waitlist-note {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

.waitlist-message {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 6px;
    text-align: center;
}

.waitlist-success {
    background: #f0fff4;
    color: #276749;
}

.waitlist-error {
    background: #fff5f5;
    color: #c53030;
}

.features {
    padding: 60px 0 80px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 32px;
}

.feature-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    color: #4a5568;
    border-bottom: 1px solid #f7fafc;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.pricing-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
    margin: 0 0 12px 0;
}

.pricing-subtitle {
    font-size: 16px;
    color: #718096;
    text-align: center;
    margin: 0 0 48px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-tier {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 32px 28px;
    position: relative;
}

.pricing-tier.tier-featured {
    border: 2px solid #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 16px;
    border-radius: 12px;
}

.tier-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tier-name {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 12px 0;
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
}

.price-period {
    font-size: 15px;
    color: #718096;
}

.tier-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 24px 0;
    min-height: 66px;
}

.tier-inclusions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-inclusions li {
    font-size: 14px;
    color: #4a5568;
    padding: 10px 0;
    border-bottom: 1px solid #f7fafc;
    padding-left: 20px;
    position: relative;
}

.tier-inclusions li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: 600;
}

.tier-inclusions li:last-child {
    border-bottom: none;
}

.pricing-note {
    font-size: 13px;
    color: #718096;
    text-align: center;
    margin: 40px 0 0 0;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-tier.tier-featured {
        order: -1;
    }
}

.landing-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
}

.disclaimer {
    font-size: 13px;
    color: #718096;
    margin: 0 0 8px;
}

.copyright {
    font-size: 12px;
    color: #a0aec0;
    margin: 0;
}

/* Admin Panel */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    font-size: 13px;
    color: #718096;
    margin-top: 4px;
}

.admin-actions {
    margin-bottom: 32px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.admin-table th,
.admin-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    word-wrap: break-word;
    vertical-align: top;
}

.admin-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
    font-size: 12px;
}

.admin-table .notes-input {
    width: 100%;
    min-width: 120px;
    max-width: 140px;
    padding: 4px 6px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
    vertical-align: top;
    margin-top: 0;
}

.admin-table .notes-input:focus {
    outline: none;
    border-color: #4a5568;
}

.admin-table td {
    vertical-align: top;
}

.add-email-form {
    margin-top: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.form-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #4a5568;
}

.btn-success {
    background: #38a169;
    color: white;
    border: 1px solid #38a169;
}

.btn-success:hover {
    background: #2f855a;
    border-color: #2f855a;
}

.btn-info {
    background: #3182ce;
    color: white;
    border: 1px solid #3182ce;
}

.btn-info:hover {
    background: #2c5282;
    border-color: #2c5282;
}

.btn-small {
    padding: 4px 8px;
    font-size: 11px;
    margin: 1px;
}

.actions-cell {
    white-space: nowrap;
    width: 200px;
    min-width: 200px;
}

.actions-cell form {
    display: inline-block;
    margin: 1px;
}

.table-wrapper {
    overflow: visible;
    max-width: 100%;
}

.admin-table-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: visible;
}

/* Make container wider for admin screens */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-new {
    background: #ebf8ff;
    color: #2b6cb0;
}

.status-invited {
    background: #fefcbf;
    color: #975a16;
}

.status-registered {
    background: #f0fff4;
    color: #276749;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

.notes-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
}

.notes-input:focus {
    outline: none;
    border-color: #4a5568;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    margin-right: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .waitlist-input-group {
        flex-direction: column;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* State-Transition Disclosure Panel */
.action-wrapper {
    position: relative;
    display: inline-block;
}

.state-disclosure {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #ccc;
    min-width: 280px;
    max-width: 360px;
    font-size: 13px;
    line-height: 1.5;
    z-index: 10;
}

.action-wrapper:hover .state-disclosure,
.action-wrapper:focus-within .state-disclosure {
    display: block;
}

.state-disclosure-line {
    margin-bottom: 6px;
}

.state-disclosure-line:last-child {
    margin-bottom: 0;
}

.state-disclosure-label {
    font-weight: normal;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #888;
}
