/**
 * Corridas e Inscrições - Public Styles
 */

/* Form Container */
.corridas-form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Event Info */
.corridas-event-info {
    background: #f9f9f9;
    border-left: 4px solid #2271b1;
    padding: 20px;
    margin-bottom: 30px;
}

.corridas-event-info h2 {
    margin-top: 0;
    color: #1d2327;
}

.event-description {
    margin: 15px 0;
    line-height: 1.6;
}

.event-details {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.event-details p {
    margin: 8px 0;
}

/* Messages */
.corridas-success,
.corridas-errors,
.corridas-error,
.corridas-info {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.corridas-success {
    background: #e7f5e7;
    border-color: #46b450;
    color: #155724;
}

.corridas-errors,
.corridas-error {
    background: #f8d7da;
    border-color: #dc3232;
    color: #721c24;
}

.corridas-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.corridas-success h3 {
    margin-top: 0;
    color: #155724;
}

.corridas-errors h4 {
    margin-top: 0;
    color: #721c24;
}

.corridas-errors ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

/* Confirmation */
.corridas-confirmation {
    margin-top: 15px;
}

.corridas-details {
    background: white;
    padding: 20px;
    border-radius: 4px;
    margin: 15px 0;
}

.corridas-details h4 {
    margin-top: 0;
    color: #1d2327;
}

.corridas-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.corridas-details li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.corridas-details li:last-child {
    border-bottom: none;
}

.corridas-info-text {
    background: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Registration Form */
.corridas-registration-form {
    background: white;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.corridas-registration-form h3 {
    margin-top: 0;
    color: #1d2327;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1d2327;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-row input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.form-row .description {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
}

.form-checkbox input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-submit {
    margin-top: 30px;
}

.corridas-submit-button {
    background: #2271b1;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.corridas-submit-button:hover {
    background: #135e96;
}

.corridas-submit-button:active {
    background: #0a4b78;
}

.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

/* Admin Panel Shortcode */
.corridas-admin-panel {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.corridas-admin-panel h2 {
    margin-top: 0;
    color: #1d2327;
}

.corridas-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 150px;
    background: #f0f6fc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #2271b1;
}

.stat-box h3 {
    font-size: 36px;
    margin: 0;
    color: #2271b1;
}

.stat-box p {
    margin: 5px 0 0 0;
    color: #666;
    font-weight: 600;
}

.corridas-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.corridas-table thead {
    background: #f9f9f9;
}

.corridas-table th,
.corridas-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.corridas-table th {
    font-weight: 600;
    color: #1d2327;
}

.corridas-table tbody tr:hover {
    background: #f9f9f9;
}

.corridas-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Buttons */
.button,
.button-primary {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button {
    background: #f6f7f7;
    color: #2c3338;
    border: 1px solid #dcdcde;
}

.button:hover {
    background: #f0f0f1;
    color: #2c3338;
}

.button-primary {
    background: #2271b1;
    color: white;
    border: 1px solid #2271b1;
}

.button-primary:hover {
    background: #135e96;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .corridas-form-container {
        padding: 10px;
    }
    
    .corridas-registration-form {
        padding: 20px;
    }
    
    .corridas-stats {
        flex-direction: column;
    }
    
    .stat-box {
        min-width: 100%;
    }
    
    .corridas-table {
        font-size: 14px;
    }
    
    .corridas-table th,
    .corridas-table td {
        padding: 8px;
    }
}

/* Loading State */
.corridas-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status indicators */
.status-ativo {
    color: #46b450;
    font-weight: 600;
}

.status-inativo {
    color: #999;
}

.status-encerrado {
    color: #dc3232;
}

