/* Estilos principales del plugin */
:root {
    --csb-success: #10b981;
    --csb-success-hover: #059669;
    --csb-wine: #230944;
    --csb-wine-light: #f1ecff;
    --csb-neutral: #6b7280;
    --csb-neutral-light: #f3f4f6;
    --csb-dark: #1f2937;
}

.csb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.csb-header {
    text-align: center;
    margin-bottom: 2rem;
}

.csb-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--csb-dark);
    margin-bottom: 0.5rem;
}

.csb-header p {
    color: var(--csb-neutral);
    font-size: 0.875rem;
}

.csb-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--csb-neutral);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.csb-back-button:hover {
    color: var(--csb-dark);
}

.csb-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.csb-legend-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e4dbff;
    box-shadow: 0 6px 12px rgba(35, 9, 68, 0.06);
}

.csb-legend-item.occupied {
    background: var(--csb-neutral-light);
    color: var(--csb-neutral);
}

.csb-legend-item.available {
    background: linear-gradient(145deg, #2d0d4a, #230944);
    color: #ffffff;
}

.csb-legend-item.selected {
    background: linear-gradient(145deg, #3f1673, #2d0d4b);
    color: #ffffff;
}

.csb-info-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.csb-info-box svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--csb-wine);
}

.csb-info-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--csb-wine);
}

.csb-screen {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

.csb-screen svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    color: var(--csb-neutral);
    margin-bottom: 0.5rem;
}

.csb-screen-text {
    font-size: 0.75rem;
    color: var(--csb-neutral);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.csb-success-message {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--csb-success);
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.csb-error-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 0.5rem;
    margin: 1rem 0;
    color: #dc2626;
}

.csb-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.csb-button-primary {
    background: linear-gradient(145deg, #3f1673, #2d0d4b);
    color: white;
}

.csb-button-primary:hover:not(:disabled) {
    background: linear-gradient(145deg, #4a1c82, #34116f);
}

.csb-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.csb-loading {
    text-align: center;
    padding: 2rem;
}

.csb-spinner {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--csb-neutral-light);
    border-top-color: var(--csb-wine);
    border-radius: 50%;
    animation: csb-spin 1s linear infinite;
}

@keyframes csb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para tickets */
.csb-tickets-list {
    margin: 30px 0;
    text-align: left;
}

.csb-tickets-list h3 {
    color: var(--csb-wine);
    margin-bottom: 20px;
    text-align: center;
}

.csb-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: var(--csb-neutral-light);
    border-radius: 8px;
    border-left: 4px solid var(--csb-wine);
}

.csb-ticket-info {
    display: flex;
    flex-direction: column;
}

.csb-ticket-info strong {
    color: var(--csb-dark);
    margin-bottom: 5px;
}

.csb-ticket-info span {
    color: var(--csb-neutral);
    font-size: 0.9rem;
}

.csb-ticket-actions {
    display: flex;
    gap: 10px;
}

.csb-button-download {
    background: #230944;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.csb-button-download:hover {
    background: #34116f;
    color: #ffffff;
}

.csb-button-whatsapp {
    background: #25d366;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.csb-button-whatsapp:hover {
    background: #20ba5a;
}

.csb-success-info {
    background: #f1ecff;
    border-left: 4px solid #230944;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: left;
}

.csb-button .csb-icon {
    display: inline-flex;
    width: 1.1rem;
    height: 1.1rem;
}

.csb-button .csb-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.csb-success-info ul {
    margin: 10px 0 0 20px;
}

.csb-success-info li {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .csb-container {
        padding: 1rem 0.5rem;
    }
    
    .csb-header h2 {
        font-size: 1.5rem;
    }
    
    .csb-legend {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .csb-ticket-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .csb-ticket-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .csb-button-download,
    .csb-button-whatsapp {
        width: 100%;
        text-align: center;
    }
}

