/* Riptide Trial Manager - Custom Styles */

/* Shoelace Theme Customization - Riptide Branding */
:root {
    --sl-color-primary-50: #f0f9ff;
    --sl-color-primary-100: #e0f2fe;
    --sl-color-primary-200: #bae6fd;
    --sl-color-primary-300: #7dd3fc;
    --sl-color-primary-400: #38bdf8;
    --sl-color-primary-500: #0ea5e9;  /* Riptide blue */
    --sl-color-primary-600: #0284c7;
    --sl-color-primary-700: #0369a1;
    --sl-color-primary-800: #075985;
    --sl-color-primary-900: #0c4a6e;
    --sl-color-primary-950: #082f49;
    
    --sl-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --sl-border-radius-medium: 0.5rem;
    --sl-spacing-large: 1.5rem;
}

/* Global Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--sl-font-sans);
    background-color: #f8fafc;
    color: #334155;
}

/* HTMX Indicators */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-container {
    min-height: calc(100vh - 140px);
    padding: 2rem 1.5rem;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0ea5e9;
    text-decoration: none;
}

.navbar-brand sl-icon {
    font-size: 1.5rem;
}

.navbar-menu {
    display: flex;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Role Management */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.admin-header .text-muted {
    color: #64748b;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.admin-header-actions {
    display: flex;
    gap: 0.5rem;
}

.stats-summary {
    display: flex;
    gap: 2.5rem;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0ea5e9;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.25rem;
}

.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.capability-tags .badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.capability-category {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: all 0.2s;
}

.capability-category:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1);
}

.category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0ea5e9;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0ea5e9;
}

.capability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.5;
}

.capability-list li:last-child {
    border-bottom: none;
}

.capability-list li strong {
    color: #1e293b;
    font-weight: 600;
}

.capability-selection {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    max-height: 450px;
    overflow-y: auto;
}

.capability-category-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.capability-category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0f2fe;
}

.form-check {
    padding: 0.625rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.form-check:hover {
    background-color: #f0f9ff;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table thead {
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

.table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.15s;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.15s;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

.btn-primary:hover {
    background-color: #0284c7;
    border-color: #0284c7;
}

.btn-secondary {
    background-color: #64748b;
    color: white;
    border-color: #64748b;
}

.btn-secondary:hover {
    background-color: #475569;
    border-color: #475569;
}

.btn-outline-primary {
    background-color: transparent;
    color: #0ea5e9;
    border-color: #0ea5e9;
}

.btn-outline-primary:hover {
    background-color: #0ea5e9;
    color: white;
}

.btn-outline-info {
    background-color: transparent;
    color: #06b6d4;
    border-color: #06b6d4;
}

.btn-outline-info:hover {
    background-color: #06b6d4;
    color: white;
}

.btn-outline-danger {
    background-color: transparent;
    color: #ef4444;
    border-color: #ef4444;
}

.btn-outline-danger:hover {
    background-color: #ef4444;
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 0.375rem;
    white-space: nowrap;
}

.bg-info {
    background-color: #0ea5e9;
    color: white;
}

.bg-secondary {
    background-color: #94a3b8;
    color: white;
}

/* Form Controls */
.form-select,
.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1e293b;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-select:focus,
.form-control:focus {
    border-color: #0ea5e9;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: #475569;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #e0f2fe;
    border-color: #7dd3fc;
    color: #075985;
}

.form-check-input {
    cursor: pointer;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
}

.form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Admin Dashboard */
.admin-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.metric-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.metric-icon.primary {
    color: var(--sl-color-primary-500);
}

.metric-icon.success {
    color: var(--sl-color-success-500);
}

.metric-icon.warning {
    color: var(--sl-color-warning-500);
}

.metric-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.metric-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-footer {
    color: #64748b;
    font-size: 0.75rem;
}

/* Filters Card */
.filters-card {
    margin-bottom: 1.5rem;
}

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .filters {
        grid-template-columns: 1fr;
    }
}

/* Trials Table */
.trials-card sl-card::part(base) {
    padding: 0;
}

.trials-table {
    width: 100%;
    border-collapse: collapse;
}

.trials-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.trials-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.trials-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.trials-table tbody tr {
    transition: background-color 0.15s;
}

.trials-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Table Cells */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-weight: 600;
    color: #1e293b;
}

.user-info small {
    font-size: 0.75rem;
    color: #64748b;
}

.company-cell {
    display: flex;
    flex-direction: column;
}

.company-cell strong {
    font-weight: 500;
    color: #1e293b;
}

.company-cell small {
    font-size: 0.75rem;
    color: #64748b;
}

.expires-cell {
    display: flex;
    flex-direction: column;
}

.expires-cell span {
    font-weight: 500;
    color: #1e293b;
}

.expires-cell small {
    font-size: 0.75rem;
    color: #64748b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-state p {
    margin-top: 1rem;
    font-size: 1rem;
}

/* Trial Detail Modal */
.trial-detail-modal::part(panel) {
    max-width: 800px;
}

/* Trial Signup */
.trial-signup-container {
    max-width: 1400px;
    margin: 0 auto;
}

.signup-header {
    text-align: center;
    margin-bottom: 3rem;
}

.signup-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.signup-header .subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

.signup-layout {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 2rem;
    align-items: start;
}

/* Application Selection */
.application-selection h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.app-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.app-card {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.app-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.app-card-content {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    transition: all 0.2s;
}

.app-card:hover .app-card-content {
    border-color: var(--sl-color-primary-500);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.app-card.selected .app-card-content {
    border-color: var(--sl-color-primary-500);
    background: var(--sl-color-primary-50);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.app-card-content .app-icon,
.app-card-content .app-icon-placeholder {
    font-size: 2.5rem;
    color: var(--sl-color-primary-500);
    margin-bottom: 1rem;
}

.app-card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.app-card-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

/* Application Details */
.app-details {
    margin-top: 1rem;
}

.app-detail-card {
    background: white;
}

.app-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-detail-logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 1.5rem;
    align-self: center;
}

.app-detail-icon,
.app-detail-icon-placeholder {
    font-size: 3rem;
    color: var(--sl-color-primary-500);
    flex-shrink: 0;
}

.app-detail-header h3 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.app-detail-header p {
    font-size: 1.3125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.app-features h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.app-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1.3125rem;
    color: #334155;
}

.app-features .feature-icon {
    color: var(--sl-color-success-500);
    font-size: 1.875rem;
    flex-shrink: 0;
}

.app-resources {
    margin-top: 1rem;
}

.app-resources h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

/* Signup Form */
.signup-form-container {
    position: sticky;
    top: 2rem;
}

.signup-form-container h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.validation-error {
    display: block;
    color: var(--sl-color-danger-600);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.validation-summary {
    padding: 1rem;
    background: var(--sl-color-danger-50);
    border: 1px solid var(--sl-color-danger-200);
    border-radius: 0.5rem;
    color: var(--sl-color-danger-700);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
}

.submit-button {
    width: 100%;
}

.form-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    margin: 0;
}

.form-help sl-icon {
    color: var(--sl-color-success-500);
    font-size: 1rem;
}

/* Trial Success Page */
.trial-success-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.success-card {
    text-align: center;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sl-color-success-50);
    border-radius: 50%;
}

.success-icon sl-icon {
    font-size: 3rem;
    color: var(--sl-color-success-600);
}

.success-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.success-content .subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

.trial-info-card {
    width: 100%;
}

.trial-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-row sl-icon {
    font-size: 1.5rem;
    color: var(--sl-color-primary-500);
    flex-shrink: 0;
}

.info-row > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.info-row strong {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.info-row span {
    color: #64748b;
    font-size: 0.875rem;
}

.next-steps {
    width: 100%;
    text-align: left;
}

.next-steps h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.next-steps ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.next-steps li {
    counter-increment: step-counter;
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    position: relative;
}

.next-steps li::before {
    content: counter(step-counter);
    position: absolute;
    top: -10px;
    left: -10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sl-color-primary-500);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.next-steps sl-icon {
    font-size: 1.5rem;
    color: var(--sl-color-primary-500);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.next-steps li > div {
    flex: 1;
}

.next-steps strong {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.next-steps p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.support-info {
    width: 100%;
}

.additional-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Launch Page */
.launch-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.launch-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.logo-section .subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    margin-left: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}

/* Application Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Application Tiles */
.app-tile {
    transition: all 0.2s ease;
}

.app-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
}

.app-tile.active {
    border: 2px solid var(--sl-color-success-500);
}

.app-tile.expired {
    border: 2px solid var(--sl-color-danger-300);
    opacity: 0.85;
}

.app-tile.coming-soon {
    border: 2px solid var(--sl-color-neutral-300);
    opacity: 0.75;
}

.app-icon {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: white;
}

.app-icon-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sl-color-primary-500) 0%, var(--sl-color-primary-700) 100%);
    color: white;
    font-size: 4rem;
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.app-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    min-height: 3rem;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.app-actions sl-button {
    width: 100%;
}

.last-accessed,
.trial-ended,
.trial-info {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1rem 0 0.5rem 0;
}

.empty-state p {
    color: #64748b;
    margin: 0;
}

/* Team Invite Dialog */
.team-invite-dialog {
    --width: 500px;
}

.team-invite-dialog .form-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Menu Links */
sl-menu-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

sl-menu-item a:hover {
    color: inherit;
}

/* Responsive */
@media (max-width: 1024px) {
    .trials-table {
        font-size: 0.875rem;
    }
    
    .trials-table th,
    .trials-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .signup-layout {
        grid-template-columns: 1fr;
    }
    
    .signup-form-container {
        position: static;
    }
    
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .launch-page {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .app-cards {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons sl-button {
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .launch-page {
        padding: 1rem;
    }
    
    .launch-header {
        margin-bottom: 2rem;
    }
}
