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

body {
    font-family: 'Arial', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.admin-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Cover Image Section */
.cover-image-section {
    background: white;
    padding: 0;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cover-image-section img {
    width: 100%;
    height: auto;
    display: block;
}

.payment-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    border: 2px solid #ffc107;
    border-top: none;
    font-size: 0.95em;
    line-height: 1.6;
    text-align: center;
}

.payment-notice strong {
    color: #d4af37;
    font-size: 1.1em;
    display: inline-block;
    margin: 0 3px;
}

/* Packages Section */
.packages-section {
    background: white;
    padding: 40px 20px;
    margin: 0 -20px;
}

.packages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.packages-title {
    text-align: center;
    color: #1a5f1a;
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: bold;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 100%;
}

.package-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 3px solid transparent;
    text-align: center;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.men-package {
    border-color: #1a5f1a;
}

.women-package {
    border-color: #d4af37;
}

.junior-package {
    border-color: #2d7a2d;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
}

.package-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.package-card h3 {
    color: #1a5f1a;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.package-details {
    text-align: left;
}

.holes-info {
    background: #1a5f1a;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.junior-package .holes-info {
    background: #2d7a2d;
}

.schedule {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #d4af37;
}

.schedule p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #555;
}

.schedule strong {
    color: #1a5f1a;
}

.package-card .prize {
    color: #d4af37;
    font-weight: bold;
    font-size: 1.1em;
    margin: 15px 0;
    padding: 10px;
    background: #fffbf0;
    border-radius: 5px;
}

.clinic-desc {
    color: #2d7a2d;
    font-style: italic;
    margin: 15px 0;
    line-height: 1.6;
    font-size: 0.95em;
}

.package-card .fee {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #ddd;
    font-size: 1.05em;
    color: #333;
}

.package-card .fee strong {
    color: #1a5f1a;
    font-size: 1.2em;
}

/* Form Container */
.form-container {
    background: white;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
}

.form-container h3 {
    color: #1a5f1a;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a5f1a;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.fee-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid #1a5f1a;
}

.fee-summary p {
    font-size: 1.2em;
    color: #333;
}

.fee-summary strong {
    color: #1a5f1a;
    font-size: 1.3em;
}

/* Buttons */
.form-actions {
    margin-top: 25px;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a5f1a 0%, #2d7a2d 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d7a2d 0%, #3a8f3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-confirm {
    padding: 6px 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
}

.btn-confirm:hover {
    background: #218838;
}

.btn-delete {
    padding: 6px 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
}

.btn-delete:hover {
    background: #c82333;
}

/* Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a5f1a 0%, #2d7a2d 100%);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 0;
}

.footer p {
    margin: 10px 0;
    font-size: 0.95em;
}

.junior-clinic {
    margin-top: 15px;
    font-size: 0.9em;
    line-height: 1.8;
}

/* Success Page */
.success-container {
    background: white;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    font-size: 3em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-text {
    font-size: 1.2em;
    color: #666;
    margin: 20px 0;
}

.confirmation-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.action-buttons {
    margin-top: 30px;
}

/* Admin Styles */
.admin-login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-login-container h2 {
    color: #1a5f1a;
    text-align: center;
    margin-bottom: 30px;
}

.admin-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
    color: #1a5f1a;
    font-size: 1.5em;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

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

.stat-card h3 {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.stat-number {
    color: #1a5f1a;
    font-size: 2em;
    font-weight: bold;
}

.filters {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filters > div {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.btn-export {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-export:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.table-container {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.registrations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.registrations-table th {
    background: #1a5f1a;
    color: white;
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    white-space: nowrap;
    font-size: 11px;
}

.registrations-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    font-size: 12px;
}

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

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content h2 {
    color: #1a5f1a;
    margin-bottom: 20px;
}

/* Payment Settings */
.payment-settings {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payment-settings h3 {
    color: #1a5f1a;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.setting-label {
    font-weight: 600;
    color: #495057;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

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

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

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

.toggle-switch input:checked + .slider {
    background-color: #1a5f1a;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(30px);
}

.settings-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.settings-status.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.settings-status.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .packages-title {
        font-size: 1.5em;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tournament-info {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .filters {
        flex-direction: column;
    }
    
    .table-container {
        overflow-x: scroll;
    }
}
