/* Custom styles for transitions and mobile tweaks */
body {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Glassmorphism utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile optimizations */
input, select, textarea {
    font-size: 16px; /* Prevent zoom on iOS */
}

/* Responsive tables for admin */
@media (max-width: 768px) {
    table.responsive-table {
        display: block;
        width: 100%;
    }
    table.responsive-table thead {
        display: none;
    }
    table.responsive-table tbody {
        display: block;
        width: 100%;
    }
    table.responsive-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        background-color: #fff;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
    table.responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #f3f4f6;
        text-align: right;
    }
    table.responsive-table td:last-child {
        border-bottom: none;
        justify-content: center;
        background-color: #f9fafb;
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
    }
    table.responsive-table td:last-child::before {
        display: none;
    }
    table.responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        margin-right: 1rem;
        text-align: left;
    }
}
