* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header con usuario */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 300;
    margin: 0;
}

.header h1 i {
    color: #e74c3c;
    margin-right: 15px;
}

/* Info del usuario */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #3498db;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9em;
}

.user-role {
    font-size: 0.8em;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-role i.fa-crown {
    color: #f39c12;
}

.user-role i.fa-shield-alt {
    color: #27ae60;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 8px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.logout-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Estadísticas */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card i {
    font-size: 2em;
    color: #3498db;
}

.stat-card.open i {
    color: #27ae60;
}

.stat-card.closed i {
    color: #95a5a6;
}

.stat-card.claimed i {
    color: #f39c12;
}

.stat-card.assigned i {
    color: #9b59b6;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    display: block;
    color: #2c3e50;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contenido principal */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Filtros */
.filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filters h2 {
    color: #2c3e50;
    font-weight: 300;
    margin-bottom: 20px;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-dropdown label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.filter-dropdown label i {
    margin-right: 5px;
    color: #7f8c8d;
}

.filter-dropdown select {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9em;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-dropdown select:hover {
    border-color: #d5dbdb;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.filter-actions .btn {
    padding: 8px 16px;
    font-size: 0.85em;
}

/* Grid de tickets */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.ticket-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #3498db;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ticket-card[data-panel*="bugs"] {
    border-left-color: #e74c3c;
}

.ticket-card[data-panel*="reporte"] {
    border-left-color: #f39c12;
}

.ticket-card[data-claimed="true"] {
    border-left-color: #27ae60;
}

/* Header del ticket */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ticket-id {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.ticket-id i {
    color: #3498db;
    margin-right: 5px;
}

.status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status.open {
    background: #d5f4e6;
    color: #27ae60;
}

.status.claimed {
    background: #ffeaa7;
    color: #f39c12;
}

.status.closed {
    background: #fab1a0;
    color: #e17055;
}

/* Información del ticket */
.ticket-channel {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.ticket-channel i {
    color: #95a5a6;
    margin-right: 8px;
}

.ticket-meta {
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.meta-item i {
    width: 20px;
    margin-right: 10px;
    color: #95a5a6;
}

.meta-item.transcript-link {
    background: rgba(52, 152, 219, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.transcript-btn {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.transcript-btn:hover {
    color: #2980b9;
    text-decoration: none;
    transform: translateX(2px);
}

/* Acciones del ticket */
.ticket-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    min-width: 110px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

/* No tickets */
.no-tickets {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-tickets i {
    font-size: 4em;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.no-tickets h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #95a5a6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2c3e50;
    font-weight: 300;
}

.close {
    color: #95a5a6;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .filters {
        padding: 15px;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-dropdown {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .filter-dropdown select {
        min-width: auto;
        width: 100%;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .tickets-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-actions {
        flex-direction: column;
    }
    
    .btn {
        flex: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}