/**
 * Estilos para el dashboard de usuario del plugin Copa Serranos Manager
 */

/* Estilos generales */
.csm-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.csm-dashboard-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    background-color: #226334;
    color: #fff;
    border-radius: 8px;
}

.csm-welcome-message {
    font-size: 16px;
    color: #fff;
}

/* Tabs */
.csm-dashboard-tabs {
    margin-top: 20px;
}

.csm-tab-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.csm-tab-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    margin-right: 5px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 5px 5px 0 0;
    color: #fff;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.csm-tab-button.active {
    background: #226334;
    border-bottom: 1px solid #226334;
    margin-bottom: -1px;
    color: #f2c94c;
}

.csm-tab-panel {
    display: none;
    padding: 20px;
    background: #226334;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 5px 5px;
    color: #fff;
}

.csm-tab-panel.active {
    display: block;
}

/* Formularios */
.csm-form {
    max-width: 800px;
}

.csm-form-row {
    margin-bottom: 15px;
}

.csm-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #fff;
}

.csm-form-row input[type="text"],
.csm-form-row input[type="email"],
.csm-form-row input[type="number"],
.csm-form-row input[type="date"],
.csm-form-row select,
.csm-form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.csm-form-row .description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.csm-form-row .required {
    color: #f2c94c;
}

.csm-form-submit {
    margin-top: 20px;
}

/* Botones */
.csm-button {
    display: inline-block;
    padding: 8px 16px;
    background: #f2c94c;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
}

.csm-button:hover {
    background: #e0b93e;
    color: #000;
}

.csm-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
}

.csm-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.csm-button-danger {
    background: #d63638;
}

.csm-button-danger:hover {
    background: #b32d2e;
}

/* Tablas */
.csm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #226334;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.csm-table th,
.csm-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.csm-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #fff;
}

.csm-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.csm-table .csm-actions {
    text-align: right;
}

.csm-table .csm-actions .csm-button {
    margin-left: 5px;
    padding: 4px 8px;
    font-size: 12px;
}

/* Notificaciones */
.csm-notifications-wrapper {
    margin-bottom: 30px;
    background-color: #226334;
    border-radius: 8px;
    padding: 15px;
}

.csm-notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.csm-notification {
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #f2c94c;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    color: #fff;
    border-radius: 0 4px 4px 0;
}

.csm-notification-info {
    border-left-color: #f2c94c;
    background: rgba(255, 255, 255, 0.1);
}

.csm-notification-success {
    border-left-color: #f2c94c;
    background: rgba(255, 255, 255, 0.1);
}

.csm-notification-warning {
    border-left-color: #f2c94c;
    background: rgba(255, 255, 255, 0.1);
}

.csm-notification-error {
    border-left-color: #d63638;
    background: rgba(255, 255, 255, 0.1);
}

.csm-notification-content {
    margin-bottom: 5px;
}

.csm-notification-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.csm-notification .csm-mark-read {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f2c94c;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
}

/* Mensajes */
.csm-messages {
    margin: 20px 0;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.csm-message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.csm-message-success {
    background: #226334;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-left: 4px solid #f2c94c;
}

.csm-message-error {
    background: #226334;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-left: 4px solid #d63638;
}

/* Mensaje de inscripciones cerradas */
.csm-registration-closed-notice {
    background: #226334;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
    border-left: 4px solid #f2c94c;
}

.csm-registration-closed {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #f2c94c;
    border-radius: 4px;
    font-size: 12px;
}

/* Información de inscripción */
.csm-registration-info {
    margin-top: 30px;
    padding: 20px;
    background: #226334;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
}

.csm-registration-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #f2c94c;
}

.csm-registration-details {
    margin-bottom: 20px;
}

.csm-registration-details p {
    margin: 8px 0;
}

.csm-cost-summary {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.csm-total-cost {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
}

.csm-total-cost span {
    font-weight: bold;
    color: #f2c94c;
    font-size: 20px;
}

/* Información del equipo */
.csm-team-info {
    display: flex;
    margin-bottom: 30px;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.csm-team-logo {
    width: 150px;
    margin-right: 30px;
}

.csm-team-logo img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.csm-team-details {
    flex: 1;
    color: #fff;
}

.csm-team-details h3 {
    margin-top: 0;
    color: #f2c94c;
}

.csm-team-details p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .csm-tab-header {
        flex-wrap: wrap;
    }
    
    .csm-tab-button {
        margin-bottom: 5px;
    }
    
    .csm-team-info {
        flex-direction: column;
    }
    
    .csm-team-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
}
