/* Tickets Page Styles */

.tickets-hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tickets-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 20, 148, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tickets-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #FF1494 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tickets-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

/* Tickets Section */
.tickets-section {
    padding: 80px 0;
    background: #0a0a0a;
    min-height: calc(100vh - 400px);
}

.tickets-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tickets List Container */
.tickets-list-container {
    background: #1a1a1a;
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 20, 148, 0.2);
}

.tickets-header h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.tickets-header .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.tickets-header .btn-primary svg {
    width: 18px;
    height: 18px;
}

/* Tickets Filter */
.tickets-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 20, 148, 0.1);
    color: #FF1494;
    border-color: #FF1494;
}

.filter-btn.active {
    background: #FF1494;
    color: #fff;
    border-color: #FF1494;
}

/* Tickets List */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket-item:hover {
    background: rgba(255, 20, 148, 0.1);
    border-color: #FF1494;
    transform: translateX(4px);
}

.ticket-item.active {
    background: rgba(255, 20, 148, 0.15);
    border-color: #FF1494;
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ticket-id {
    font-size: 0.75rem;
    color: #FF1494;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-status.open {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.ticket-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.ticket-status.closed {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.ticket-subject {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.4;
}

.ticket-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.ticket-category {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ticket-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Ticket Details Container */
.ticket-details-container {
    background: #1a1a1a;
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 12px;
    padding: 32px;
    min-height: 600px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    text-align: center;
}

.empty-state svg {
    stroke: rgba(255, 20, 148, 0.3);
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* Ticket Details */
.ticket-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 20, 148, 0.2);
    margin-bottom: 24px;
}

.ticket-details-info {
    flex: 1;
}

.ticket-details-id {
    font-size: 0.85rem;
    color: #FF1494;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ticket-details-subject {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.ticket-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.ticket-details-meta-item strong {
    color: #fff;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 20, 148, 0.1);
    border: 1px solid rgba(255, 20, 148, 0.3);
    border-radius: 6px;
    color: #FF1494;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Messages */
.ticket-messages {
    margin-bottom: 32px;
}

.message {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.message.admin {
    background: rgba(255, 20, 148, 0.05);
    border-color: rgba(255, 20, 148, 0.3);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF1494 0%, #ff69b4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.message-author-info {
    display: flex;
    flex-direction: column;
}

.message-author-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.message-author-role {
    font-size: 0.75rem;
    color: #FF1494;
    text-transform: uppercase;
}

.message-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.message-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Reply Form */
.reply-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.reply-form h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 16px;
}

.reply-form textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 16px;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #FF1494;
    background: rgba(255, 20, 148, 0.05);
}

.reply-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.reply-form-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 20, 148, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.reply-form-actions .btn-secondary:hover {
    background: rgba(255, 20, 148, 0.1);
    color: #FF1494;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 20, 148, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 20, 148, 0.2);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.close-btn:hover {
    color: #FF1494;
    background: rgba(255, 20, 148, 0.1);
}

.modal form {
    padding: 24px;
}

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

.form-group label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF1494;
    background: rgba(255, 20, 148, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 0 24px 24px;
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 20, 148, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 20, 148, 0.1);
    color: #FF1494;
    border-color: #FF1494;
}

.btn-primary {
    padding: 12px 24px;
    background: #FF1494;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 20, 148, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .tickets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tickets-list-container {
        max-height: none;
    }

    .ticket-details-container {
        min-height: auto;
    }

    .empty-state {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .tickets-hero h1 {
        font-size: 2.5rem;
    }

    .tickets-hero p {
        font-size: 1rem;
    }

    .tickets-section {
        padding: 40px 0;
    }

    .tickets-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .tickets-header .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .ticket-details-subject {
        font-size: 1.4rem;
    }

    .ticket-details-container {
        padding: 20px;
    }

    .modal-content {
        margin: 20px;
    }

    .reply-form-actions {
        flex-direction: column;
    }

    .reply-form-actions button {
        width: 100%;
    }
}
