/* ==============================================================================
   Zpringe Portal - Modern UI Stylesheet
   Domain: zpringe.com
   ============================================================================== */

:root {
    --bg-dark: #0a0f1d;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(31, 41, 55, 0.85);
    --bg-input: #111827;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #6366f1;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(99, 102, 241, 0.15);
    
    --accent: #8b5cf6;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    
    --font-heading: 'Plus Jakarta Sans', 'Prompt', sans-serif;
    --font-body: 'Prompt', 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==============================================================================
   Typography & Utility
   ============================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #818cf8;
}

.hidden {
    display: none !important;
}

/* ==============================================================================
   Buttons & Inputs
   ============================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.925rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    background: var(--danger);
    color: #ffffff;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.825rem;
}

.btn-block {
    width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.label-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background-color: #0d1322;
}

.form-control.is-invalid {
    border-color: var(--danger);
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ==============================================================================
   Login Card Specific
   ============================================================================== */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    text-align: center;
}

.brand-header {
    margin-bottom: 2rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.brand-icon {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.brand-title span {
    color: #818cf8;
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap .input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
}
.password-input-wrap .input-icon svg {
    width: 18px;
    height: 18px;
}

.password-input-wrap .password-input {
    padding-left: 2.75rem;
    padding-right: 3rem;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.btn-toggle-pwd {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.btn-toggle-pwd:hover {
    color: var(--text-primary);
}
.btn-toggle-pwd svg {
    width: 20px;
    height: 20px;
}

.btn-login {
    margin-top: 0.5rem;
    padding: 0.825rem 1.5rem;
    font-size: 1rem;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.785rem;
    color: var(--text-muted);
}
.security-indicator svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    text-align: left;
}
.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.alert-error {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.alert-info {
    background: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

/* ==============================================================================
   Portal Dashboard Layout
   ============================================================================== */
.portal-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-nav {
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 1.5rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.nav-logo-badge svg {
    width: 20px;
    height: 20px;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
}
.nav-title span {
    color: #818cf8;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.825rem;
}

.user-role-pill {
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.725rem;
    font-weight: 600;
    text-transform: uppercase;
}
.role-superadmin {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}
.role-user {
    background: var(--primary-light);
    color: #818cf8;
}

/* ==============================================================================
   Admin Navigation Tabs
   ============================================================================== */
.admin-tabs-bar {
    background: rgba(17, 24, 39, 0.6);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
}

.admin-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.tab-btn.active {
    color: #ffffff;
    background: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.3);
}
.tab-btn svg {
    width: 16px;
    height: 16px;
}

/* ==============================================================================
   Main Content Area
   ============================================================================== */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ==============================================================================
   Webapp Grid & Cards
   ============================================================================== */
.webapp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.webapp-card {
    --thumb-c1: #6366f1;
    --thumb-c2: #8b5cf6;
    --thumb-glow: rgba(99, 102, 241, 0.38);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.webapp-card:hover {
    transform: translateY(-5px);
    border-color: var(--thumb-c1);
    background: var(--bg-card-hover);
    box-shadow: 0 18px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px -4px var(--thumb-glow);
}
.webapp-card:hover .webapp-name {
    color: #818cf8;
}

/* Card Thumbnail Section (Vivid, Crisp & High-Contrast) */
.webapp-card-thumb {
    position: relative;
    width: 100%;
    height: 118px;
    background:
        radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--thumb-c1) 28%, transparent) 0%, transparent 75%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.92) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.65rem 0.9rem 0.75rem;
    overflow: hidden;
}

.modal-thumb-preview {
    height: 96px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.webapp-thumb-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 62%, var(--thumb-glow) 0%, transparent 68%);
    pointer-events: none;
    transition: all 0.35s ease;
}
.webapp-card:hover .webapp-thumb-glow {
    transform: scale(1.22);
    filter: brightness(1.2);
}

.webapp-thumb-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 14px 14px;
    mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
    pointer-events: none;
    opacity: 0.65;
}

.webapp-thumb-watermark {
    position: absolute;
    right: -12px;
    bottom: -18px;
    width: 104px;
    height: 104px;
    color: var(--thumb-c1);
    opacity: 0.11;
    transform: rotate(-14deg);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.webapp-thumb-watermark svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}
.webapp-card:hover .webapp-thumb-watermark {
    opacity: 0.2;
    transform: rotate(-6deg) scale(1.08);
}

.webapp-thumb-top {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    min-height: 22px;
}

.webapp-thumb-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: #f1f5f9;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.01em;
}

.webapp-thumb-center {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
}

.webapp-thumb-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--thumb-c1) 0%, var(--thumb-c2) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 20px -4px rgba(0, 0, 0, 0.55),
        0 0 20px -2px var(--thumb-glow),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.webapp-card:hover .webapp-thumb-badge {
    transform: scale(1.1) translateY(-2px);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow:
        0 12px 24px -4px rgba(0, 0, 0, 0.6),
        0 0 28px var(--thumb-glow),
        inset 0 2px 3px rgba(255, 255, 255, 0.55);
}

.webapp-thumb-badge svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    transition: transform 0.25s ease;
}

/* Card Body Section */
.webapp-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.webapp-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.webapp-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.725rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
}
.status-protected {
    background: var(--warning-bg);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.status-passthrough {
    background: var(--success-bg);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.webapp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.webapp-path {
    font-size: 0.775rem;
    color: var(--text-muted);
    font-family: monospace;
}

.webapp-launch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.webapp-card:hover .webapp-launch-btn {
    background: var(--primary-hover);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}
.webapp-launch-btn svg {
    width: 16px;
    height: 16px;
}

/* ==============================================================================
   Data Tables (Users & Passthroughs)
   ============================================================================== */
.table-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.875rem 1.25rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 1rem 1.25rem;
    font-size: 0.925rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-user-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* ==============================================================================
   Switch / Toggle Control
   ============================================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* ==============================================================================
   Modal Dialogs
   ============================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.modal-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-dialog {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: scale(0.95);
    transition: transform 0.25s ease;
    overflow: hidden;
    margin: auto;
}

.modal-backdrop.active .modal-dialog {
    transform: scale(1);
}

.modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.btn-close-modal:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
    max-height: calc(100vh - 12rem);
}

.modal-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--border-color);
}

/* ==============================================================================
   Toast Notifications
   ============================================================================== */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.toast-success {
    border-left: 4px solid var(--success);
}
.toast.toast-error {
    border-left: 4px solid var(--danger);
}
.toast.toast-info {
    border-left: 4px solid var(--primary);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        padding: 1.25rem 0.85rem;
    }
    .webapp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .webapp-card {
        border-radius: var(--radius-md);
    }
    .webapp-card-thumb {
        height: 105px;
        padding: 0.5rem 0.65rem 0.65rem;
    }
    .webapp-thumb-badge {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }
    .webapp-thumb-badge svg {
        width: 23px;
        height: 23px;
    }
    .webapp-thumb-watermark {
        width: 72px;
        height: 72px;
        right: -8px;
        bottom: -12px;
    }
    .webapp-thumb-cat {
        font-size: 0.65rem;
        padding: 0.1rem 0.45rem;
    }
    .webapp-thumb-status {
        font-size: 0.62rem;
        padding: 0.1rem 0.45rem;
    }
    .webapp-card-body {
        padding: 0.85rem 0.75rem 1rem;
    }
    .webapp-name {
        font-size: 0.95rem;
        line-height: 1.35;
    }
    .webapp-desc {
        font-size: 0.75rem;
        line-height: 1.35;
        margin-top: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .custom-table th, .custom-table td {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.65rem;
    }
    .webapp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
    }
    .webapp-card-thumb {
        height: 95px;
        padding: 0.4rem 0.5rem 0.5rem;
    }
    .webapp-thumb-badge {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
    .webapp-thumb-badge svg {
        width: 20px;
        height: 20px;
    }
    .webapp-card-body {
        padding: 0.7rem 0.6rem 0.85rem;
    }
    .webapp-name {
        font-size: 0.88rem;
    }
    .webapp-desc {
        font-size: 0.72rem;
    }
}
