::-webkit-scrollbar { display: none; }

/* Clean Mobile Input Styling: Allow full backspace, caret positioning, and text editing in WebViews */
input, textarea, select, [contenteditable="true"], input[type="number"], input[type="text"], input[type="password"] {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    -webkit-user-modify: read-write !important;
    pointer-events: auto !important;
}

button, .no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.tab-content { 
    display: none; 
    animation: fadeIn 0.3s ease-in-out; 
}

.tab-content.active { 
    display: block; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(5px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.glass-panel { 
    background: rgba(31, 41, 55, 0.7); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border-top: 1px solid rgba(255,255,255,0.1); 
}

.drop-target-hover { 
    border-color: rgba(59, 130, 246, 0.7) !important; 
    background: rgba(59, 130, 246, 0.15) !important; 
    transform: scale(1.01); 
    transition: all 0.2s ease; 
}

.diploma-card { 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.diploma-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04); 
}

select option { 
    background-color: #030712 !important; 
    color: #f3f4f6 !important; 
}

@media (max-width: 768px) {
    .responsive-table-container {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        overflow-x: visible !important;
    }
    .mobile-responsive-table {
        min-width: 100% !important;
        display: block;
    }
    .mobile-responsive-table thead {
        display: none;
    }
    .mobile-responsive-table tbody {
        display: block;
        width: 100%;
    }
    .mobile-responsive-table tr {
        display: block;
        background: rgba(17, 24, 39, 0.75) !important;
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 1.25rem;
        padding: 1rem 1.1rem;
        margin-bottom: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    }
    .mobile-responsive-table td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        text-align: right !important;
        width: 100%;
        min-height: 2.2rem;
    }
    .mobile-responsive-table td:last-child {
        border-bottom: none !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0 !important;
        justify-content: stretch !important;
    }
    .mobile-responsive-table td:last-child > div {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.4rem;
    }
    .mobile-responsive-table td:last-child > div > button {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.45rem 0.4rem !important;
    }
    .mobile-responsive-table td:first-child {
        padding-top: 0 !important;
        font-size: 0.95rem;
    }
    .mobile-responsive-table td select {
        max-width: 160px;
        text-overflow: ellipsis;
    }
    .mobile-responsive-table td::before {
        content: attr(data-label);
        font-weight: 800;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #9ca3af;
        text-align: left;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
}
