.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 0 auto;
}

caption {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem;
    background: var(--orange);
    color: white;
}

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

th {
    background: var(--saffron);
    color: white;
    font-weight: 600;
}

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

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

/* Responsive styles */
@media screen and (max-width: 768px) {
    .table-responsive {
        margin: 1rem 0;
        border-radius: 8px;
        width: 100%;
    }

    table {
        font-size: 0.75rem; /* Smaller font size for mobile */
    }

    th, td {
        padding: 0.5rem; /* Reduced padding */
        white-space: nowrap; /* Prevent text wrapping */
    }

    caption {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    /* Make price columns more compact */
    td:not(:first-child) {
        text-align: center;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    table {
        font-size: 0.7rem; /* Even smaller font */
    }

    th, td {
        padding: 0.4rem 0.3rem; /* Further reduced padding */
    }
}

/* Accessibility improvements */
.registration-table, .workshop-table {
    caption-side: top;
}

th[scope="col"] {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Add visual feedback for interactive elements */
tbody tr {
    transition: background-color 0.3s;
}

/* Add these styles for the deadline text */
.deadline {
    font-size: 0.75em;
    color: #666;
    font-weight: normal;
    margin-top: 0.3rem;
}

/* Update the header cell padding */
th[scope="col"] {
    padding: 0.8rem 0.5rem;
    text-align: center;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .deadline {
        font-size: 0.7em;
    }
}

.upi-section {
    margin-top: 2rem;
    text-align: center;
}

.qr-code-container {
    margin: 1.5rem auto;
    max-width: 300px;
    background: #fff5f0;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.1);
}

.upi-qr-code {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
    border: 2px solid var(--orange);
    border-radius: 10px;
    padding: 10px;
    background: white;
}

.qr-code-container p {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.upi-id-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--orange);
}

.upi-id-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--orange);
}

#upiId {
    font-family: monospace;
    font-size: 1rem;
    color: var(--terracotta);
    font-weight: 500;
}

.copy-btn {
    background: var(--orange);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
}

.copy-btn i {
    font-size: 0.9rem;
}

/* Success message for copy */
.copy-success {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideIn 0.3s ease;
}

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

@media screen and (max-width: 768px) {
    .qr-code-container {
        max-width: 280px;
        padding: 1rem;
    }

    .upi-id-copy {
        flex-direction: column;
        gap: 0.5rem;
    }

    #upiId {
        font-size: 0.9rem;
    }
}

.alert-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-notice i {
    font-size: 1.5rem;
}

.workshop-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.workshop-card.disabled input {
    cursor: not-allowed;
} 