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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
    position: relative;
}

.logo-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    max-width: 120px;
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    /* Force logo to display in original colors - remove all filters */
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    opacity: 1 !important;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 400;
}

@media (max-width: 480px) {
    .header {
        padding: 25px 20px;
    }
    
    .header-logo {
        max-width: 100px;
        max-height: 60px;
    }
    
    .header h1 {
        font-size: 1.6em;
        margin-bottom: 6px;
    }
    
    .subtitle {
        font-size: 0.95em;
    }
    
    .registration-form {
        padding: 30px 20px;
    }
    
    .form-group {
        margin-bottom: 22px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .message {
        margin: 20px 15px;
        padding: 14px 18px;
    }
}

/* Messages */
.message {
    margin: 25px 40px;
    padding: 16px 22px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    font-size: 0.95em;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .message {
        margin: 15px 10px;
        padding: 12px 15px;
        font-size: 0.9em;
    }
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Registration Form */
.registration-form {
    padding: 50px 60px;
    background: #fafafa;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: white;
    color: #333;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #d0d7de;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.form-group select option {
    padding: 12px;
    background: white;
}

@media (max-width: 480px) {
    .registration-form {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.95em;
    }
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
    background-color: #fefefe;
}

.form-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

@media (max-width: 480px) {
    .btn-submit {
        padding: 12px;
        font-size: 1em;
    }
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 40px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-card p {
    color: #666;
    font-weight: 500;
}

@media (max-width: 480px) {
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 2em;
    }
    
    .stat-card p {
        font-size: 0.9em;
    }
}

/* Table */
.table-container {
    padding: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.registrations-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 600px;
}

.registrations-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.registrations-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.registrations-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.registrations-table tbody tr:hover {
    background: #f8f9fa;
}

.registrations-table tbody tr:last-child {
    border-bottom: none;
}

.registrations-table td {
    padding: 15px;
    color: #555;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px !important;
    font-style: italic;
}

/* Payment Button */
.payment-form {
    display: inline-block;
}

.btn-payment {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    min-width: 100px;
}

@media (max-width: 480px) {
    .btn-payment {
        padding: 6px 12px;
        font-size: 0.85em;
        min-width: 80px;
    }
}

.btn-payment.paid {
    background: #28a745;
    color: white;
}

.btn-payment.paid:hover {
    background: #218838;
    transform: scale(1.05);
}

.btn-payment.unpaid {
    background: #dc3545;
    color: white;
}

.btn-payment.unpaid:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Footer Links */
.footer-links {
    padding: 20px 40px 40px;
    text-align: center;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 8px 0;
}

.footer-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .footer-links {
        padding: 15px 20px 30px;
    }
    
    .footer-links a {
        font-size: 0.9em;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .registration-form,
    .table-container {
        padding: 20px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .registrations-table {
        font-size: 0.9em;
    }
    
    .registrations-table th,
    .registrations-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        border-radius: 15px;
    }
    
    .table-container {
        padding: 15px 10px;
    }
    
    .registrations-table {
        font-size: 0.8em;
        min-width: 700px;
    }
    
    .registrations-table th,
    .registrations-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    .registrations-table th {
        font-size: 0.75em;
    }
    
    .stats {
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 5px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .subtitle {
        font-size: 0.9em;
    }
    
    .registration-form {
        padding: 15px 10px;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

