/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.logo p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.1);
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-small {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.feature-box {
    padding: 40px 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-box i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 20px;
    display: block;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 22px;
}

.feature-box p {
    color: #666;
    line-height: 1.6;
}

/* Training Centers Grid */
.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.center-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.center-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.center-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.center-card:hover .center-image img {
    transform: scale(1.05);
}

.center-info {
    padding: 25px;
}

.center-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 20px;
}

.center-info p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.5;
}

.center-info i {
    margin-right: 8px;
    color: #3498db;
    width: 16px;
    text-align: center;
}

/* Booking Steps */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 120px;
}

.step span {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    margin-bottom: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step p {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.active span {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.step.active p {
    color: #2c3e50;
    font-weight: 600;
}

/* Booking Form */
.booking-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.form-step h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: white;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Availability Results */
.availability-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-left: 4px solid #28a745;
}

.availability-success i {
    margin-right: 15px;
    font-size: 24px;
}

.availability-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-left: 4px solid #dc3545;
}

.availability-error i {
    margin-right: 15px;
    font-size: 24px;
}

.booking-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

.booking-summary h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 20px;
}

.booking-summary p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-summary strong {
    color: #2c3e50;
    min-width: 120px;
}

/* Confirmation Page */
.confirmation {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.confirmation-header i {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 15px;
}

.confirmation-header h1 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 28px;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.confirmation-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.confirmation-error {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.confirmation-error h1 {
    color: #dc3545;
    margin-bottom: 20px;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.contact-info, .contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.contact-info h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.contact-info i {
    margin-right: 10px;
    color: #3498db;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.contact-map {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    background: rgba(0,0,0,0.1);
    margin-top: 30px;
    color: #bdc3c7;
}

/* Admin Styles */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

/* Admin Dashboard */
.admin-header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.admin-nav {
    background: #2c3e50;
    color: white;
    padding: 0;
}

.admin-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.admin-nav li {
    position: relative;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav a:hover, .admin-nav a.active {
    background: #34495e;
    transform: translateY(-1px);
}

.admin-content {
    padding: 30px;
}

/* Admin Content Header */
.admin-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stat-card i {
    font-size: 2em;
    margin-bottom: 15px;
    color: #3498db;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    display: block;
    line-height: 1;
}

.stat-label {
    color: #7f8c8d;
    margin-top: 8px;
    font-size: 14px;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    left: 0;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.confirmed {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-header h1 {
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: white;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
    display: block;
}

.no-data h3 {
    margin-bottom: 10px;
    color: #6c757d;
}

/* Text Utilities */
.text-muted {
    color: #6c757d !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }
    
    .centers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .booking-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .booking-steps::before {
        display: none;
    }
    
    .step {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        width: 100%;
    }
    
    .step span {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .booking-form {
        padding: 20px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-header {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .admin-nav ul {
        flex-direction: column;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .admin-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .admin-content {
        padding: 15px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
    
    .confirmation,
    .confirmation-error {
        padding: 20px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .feature-box {
        padding: 30px 20px;
    }
    
    .center-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .admin-header h1 {
        font-size: 20px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .form-control {
        padding: 10px;
    }
}

/* Print Styles */
@media print {
    .admin-nav,
    .admin-header .logout-btn,
    .action-buttons,
    .btn {
        display: none !important;
    }
    
    .admin-content {
        padding: 0 !important;
    }
    
    .table-responsive {
        box-shadow: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid;
    }
    
    .form-control {
        border: 2px solid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature-box:hover,
    .center-card:hover,
    .btn:hover {
        transform: none;
    }
}