.tdn-container {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    width: 80vw;
}

.tdn-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.tdn-title {
    color: #4a4a4a;
    margin-top: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tdn-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.tdn-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.tdn-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.tdn-table tr:hover td {
    background-color: #f8f9fa;
}

.tdn-btn {
    background: #4e73df;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tdn-btn:hover {
    background: #3a5ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tdn-btn-secondary {
    background: #6c757d;
}

.tdn-btn-secondary:hover {
    background: #5a6268;
}

.tdn-form-group {
    margin-bottom: 20px;
}

.tdn-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.tdn-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s;
}

.tdn-form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.tdn-alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tdn-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tdn-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tdn-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
}

.tdn-badge-primary {
    background: #d0e3ff;
    color: #004085;
}

/* Modal styles */
.tdn-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.tdn-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: tdn-modal-fadein 0.3s;
    margin-top: 200px;
}

@keyframes tdn-modal-fadein {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.tdn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.tdn-modal-title {
    margin: 0;
    font-size: 22px;
    color: #4a4a4a;
}

.tdn-modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.tdn-modal-close:hover {
    color: #333;
}

.tdn-flex-end {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.tdn-event-chip {
    display: inline-block;
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 16px;
    margin: 2px;
    font-size: 12px;
}

.tdn-search-box {
    margin-bottom: 20px;
}

.tdn-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}




/* Estilos para Select2 */
.select2-container {
    margin-bottom: 10px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 50px;
    padding: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007cba;
    color: white;
}

/* Asegurar que los selects en modales se vean bien */
.pitch-modal .select2-container,
.evento-modal .select2-container {
    z-index: 99999 !important;
}

.select2-dropdown {
    z-index: 99999 !important;
}


.select2-container .select2-selection--single {
    height: 50px !important;
    line-height: 40px;
}

body .select2-container .select2-dropdown{
    max-width: 50% !important;
}