/**
 * Retix Customer Dashboard - Styles for ticket buyers
 * 
 * Clean, user-friendly interface for viewing purchased tickets
 */

/* Customer Dashboard Container */
.retix-customer-dashboard {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Dashboard Header */
.retix-customer-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
}

.retix-header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.retix-header-left h1 {
    margin: 0 0 10px 0 !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: white !important;
}

.retix-header-left p {
    margin: 0 !important;
    font-size: 1.1rem !important;
    opacity: 0.9 !important;
    color: white !important;
}

.retix-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.retix-user-name {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: white !important;
}

.retix-logout-btn {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.retix-logout-btn:hover {
    background: rgba(255,255,255,0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Filter Tabs */
.retix-ticket-filters {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    border-bottom: 2px solid #e9ecef !important;
    padding-bottom: 15px !important;
}

.retix-filter-btn {
    background: none !important;
    border: none !important;
    padding: 12px 20px !important;
    color: #6c757d !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.retix-filter-btn:hover,
.retix-filter-btn.active {
    background: #667eea !important;
    color: white !important;
}

/* Tickets Container */
.retix-tickets-container {
    min-height: 300px;
}

/* Customer Ticket Card */
.retix-customer-ticket {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.retix-customer-ticket:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.retix-customer-ticket.past-event {
    opacity: 0.7;
}

.retix-ticket-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.retix-ticket-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 10px 0;
}

.retix-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.retix-ticket-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.retix-ticket-meta-item i {
    color: #667eea;
}

.retix-ticket-body {
    padding: 20px;
}

.retix-ticket-details {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: center;
}

.retix-ticket-image {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

.retix-ticket-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.retix-ticket-image:hover img {
    transform: scale(1.05);
}

.retix-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.retix-ticket-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.retix-ticket-info-label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
}

.retix-ticket-info-value {
    color: #212529;
}

.retix-ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.retix-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.retix-btn-primary {
    background: #28a745;
    color: white;
}

.retix-btn-primary:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.retix-btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.retix-btn-outline:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

.retix-btn-disabled {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
}

/* Status Badges */
.retix-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.retix-status-upcoming {
    background: #d4edda;
    color: #155724;
}

.retix-status-past {
    background: #f8d7da;
    color: #721c24;
}

/* Loading State */
.retix-loading {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #6c757d !important;
    font-size: 1.1rem !important;
}



/* Ticket Details Section */
.retix-ticket-details-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.retix-ticket-details-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retix-ticket-details-title i {
    color: #f39c12;
}

.retix-ticket-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.retix-ticket-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ffeaa7;
}

.retix-ticket-detail-item:last-child {
    border-bottom: none;
}

.retix-ticket-detail-label {
    font-weight: 600;
    color: #856404;
    min-width: 120px;
}

.retix-ticket-detail-value {
    color: #212529;
    text-align: right;
}

/* Empty State */
.retix-empty-tickets {
    text-align: center !important;
    padding: 80px 20px !important;
    color: #6c757d !important;
}

.retix-empty-tickets i {
    font-size: 4rem !important;
    margin-bottom: 20px !important;
    color: #dee2e6 !important;
}

.retix-empty-tickets h3 {
    margin: 0 0 15px 0 !important;
    color: #495057 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.retix-empty-tickets p {
    margin: 0 0 25px 0 !important;
    font-size: 1.1rem !important;
}

/* Customer Authentication */
.retix-customer-auth {
    max-width: 500px;
    margin: 50px auto;
    padding: 0 20px;
}

.retix-auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.retix-auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.retix-auth-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.retix-auth-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.retix-auth-tabs {
    display: flex;
    background: #f8f9fa;
}

.retix-auth-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.retix-auth-tab.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.retix-auth-content {
    padding: 30px;
}

.retix-form-group {
    margin-bottom: 20px;
}

.retix-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.retix-form-group input[type="text"],
.retix-form-group input[type="email"],
.retix-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.retix-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.retix-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.retix-checkbox-label input[type="checkbox"] {
    margin: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d9e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.retix-checkbox-label:hover .checkmark {
    border-color: #667eea;
}

.retix-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.retix-checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.retix-auth-link {
    text-align: center;
    margin-top: 20px;
}

.retix-auth-link a {
    color: #667eea;
    text-decoration: none;
}

.retix-auth-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .retix-customer-dashboard {
        padding: 15px;
    }
    
    .retix-header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .retix-ticket-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .retix-ticket-details {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .retix-ticket-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .retix-ticket-actions {
        align-items: center;
    }
    
    .retix-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .retix-customer-auth {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .retix-auth-content {
        padding: 20px;
    }
}