/* Ticket Management Styles - Modern Black Theme */
.ticket-section {
    padding: 4rem 2rem 4rem;
    min-height: 100vh;
    /* background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d1421 100%); */
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.ticket-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(229, 24, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.section__title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0a3b9, #bcaedc, #9abffd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: none;
}

.section__subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Tab Navigation */
.ticket-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    min-width: auto;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(229, 24, 55, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 24, 55, 0.2);
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, #f0a3b9, #bcaedc, #9abffd);
    color: #ffffff;
    border-color: #bcaedc;
    box-shadow: 0 15px 35px rgba(188, 174, 220, 0.3);
}

.tab-btn i {
    font-size: 1.3rem;
}

/* Tab Content */
.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 1rem;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Messages */
.auth-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(229, 24, 55, 0.1), rgba(102, 126, 234, 0.1));
    border: 1px solid rgba(229, 24, 55, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    margin: 0 auto;
    max-width: 600px;
}

.auth-message i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(135deg, #f0a3b9, #bcaedc, #9abffd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-message p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.auth-message a {
    background: linear-gradient(135deg, #f0a3b9, #bcaedc, #9abffd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.auth-message a:hover {
    border-bottom-color: #bcaedc;
}

/* Form Styles */
.ticket-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.3rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #bcaedc;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(188, 174, 220, 0.1);
    transform: translateY(-1px);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.button {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.button:not(.button--ghost) {
    background: linear-gradient(135deg, #f0a3b9, #bcaedc, #9abffd);
    color: white;
}

.button:not(.button--ghost):hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(188, 174, 220, 0.3);
}

.button--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.button--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Tickets List */
.tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tickets-header h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.tickets-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: linear-gradient(135deg, rgba(229, 24, 55, 0.2), rgba(102, 126, 234, 0.2));
    border: 1px solid rgba(229, 24, 55, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.7rem 1.3rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.tickets-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tickets-filters select,
.tickets-filters input {
    padding: 1rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    min-width: 180px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tickets-filters select:focus,
.tickets-filters input:focus {
    border-color: #e51837;
    box-shadow: 0 0 0 3px rgba(229, 24, 55, 0.1);
}

/* Ticket Cards */
.tickets-list {
    display: grid;
    gap: 2rem;
}

.ticket-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e51837, #667eea, #e51837);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ticket-card:hover {
    border-color: rgba(229, 24, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.ticket-card:hover::before {
    transform: scaleX(1);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.ticket-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.ticket-badges {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.ticket-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ticket-meta i {
    color: #e51837;
}

.ticket-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-id {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.view-details {
    color: #e51837;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.view-details:hover {
    color: #ff4569;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: rgba(33, 150, 243, 0.2);
    color: #42a5f5;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-badge.in_progress {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-badge.closed {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Priority Badges */
.priority-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.low {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.priority-badge.medium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.priority-badge.high {
    background: rgba(244, 67, 54, 0.2);
    color: #ef5350;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.priority-badge.urgent {
    background: rgba(156, 39, 176, 0.2);
    color: #ba68c8;
    border: 1px solid rgba(156, 39, 176, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Admin Panel Enhanced Styles */
.admin-tickets-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.admin-header {
    margin-bottom: 3rem;
}

.admin-header h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #e51837 50%, #667eea 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-stat-card {
    background: linear-gradient(135deg, rgba(229, 24, 55, 0.1), rgba(102, 126, 234, 0.1));
    border: 1px solid rgba(229, 24, 55, 0.2);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.8s ease;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(229, 24, 55, 0.2);
    border-color: rgba(229, 24, 55, 0.4);
}

.admin-stat-card:hover::before {
    left: 100%;
}

.admin-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: #e51837;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(229, 24, 55, 0.3);
}

.admin-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin Filters Enhanced */
.admin-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.admin-filters select,
.admin-filters input {
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    min-width: 200px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-filters input {
    flex: 1;
    min-width: 250px;
}

.admin-filters select:focus,
.admin-filters input:focus {
    outline: none;
    border-color: #e51837;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(229, 24, 55, 0.1);
    transform: translateY(-1px);
}

.admin-filters input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Admin Ticket Cards Enhanced */
.admin-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-ticket-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #e51837;
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.admin-ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e51837, #667eea, #e51837);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-ticket-card:hover::before {
    transform: scaleX(1);
}

.admin-ticket-card.scheduled-deletion {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.03);
    border-color: rgba(255, 152, 0, 0.1);
}

.admin-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.ticket-info {
    flex: 1;
}

.ticket-info .ticket-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.ticket-info .ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.ticket-info .ticket-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-info .ticket-meta i {
    color: #e51837;
    font-size: 1.1rem;
}

.deletion-notice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #ffb74d;
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

.deletion-notice i {
    color: #ff9800;
    font-size: 1.2rem;
}

/* Admin Ticket Actions Enhanced */
.admin-ticket-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    align-items: center;
}

.status-select {
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    min-width: 140px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.status-select:focus {
    outline: none;
    border-color: #e51837;
    box-shadow: 0 0 0 2px rgba(229, 24, 55, 0.1);
}

.status-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn.update {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
}

.action-btn.update:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.action-btn.delete {
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
}

.action-btn.delete:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

.action-btn.view {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    color: white;
}

.action-btn.view:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* My Tickets Section Enhanced */
.my-tickets-container {
    position: relative;
    z-index: 2;
}

.tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
}

.tickets-header h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #e51837 50%, #667eea 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tickets-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: linear-gradient(135deg, rgba(229, 24, 55, 0.15), rgba(102, 126, 234, 0.15));
    border: 1px solid rgba(229, 24, 55, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(229, 24, 55, 0.2);
}

.tickets-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}

.tickets-filters select {
    padding: 1rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    min-width: 180px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tickets-filters select:focus {
    outline: none;
    border-color: #e51837;
    box-shadow: 0 0 0 3px rgba(229, 24, 55, 0.1);
    transform: translateY(-1px);
}

/* Modal Enhancements */
.ticket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticket-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
}

.modal-container {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    position: relative;
    z-index: 3001;
    overflow: hidden;
    backdrop-filter: blur(30px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(-30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticket-modal.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 2.5rem;
    background: linear-gradient(135deg, #e51837, #ff4569);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.modal-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2.5rem;
    max-height: 60vh;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 24, 55, 0.5) rgba(255, 255, 255, 0.1);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e51837, #ff4569);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff4569, #e51837);
    box-shadow: 0 0 10px rgba(229, 24, 55, 0.3);
}

.ticket-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item strong {
    color: #e51837;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-full-description {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.ticket-full-description h4 {
    color: #e51837;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.ticket-full-description p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.ticket-id {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Confirm Modal Styles */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-modal.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.confirm-modal-container {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 4001;
    overflow: hidden;
    backdrop-filter: blur(30px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(-30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-modal.show .confirm-modal-container {
    transform: scale(1) translateY(0);
}

.confirm-modal-header {
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.confirm-modal-header.default {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
}

.confirm-modal-header.danger {
    background: linear-gradient(135deg, #f44336, #ef5350);
}

.confirm-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirm-modal-body {
    padding: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.confirm-modal-body p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.confirm-modal-footer {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.confirm-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.confirm-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.confirm-btn.confirm {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    color: white;
}

.confirm-btn.confirm.danger {
    background: linear-gradient(135deg, #f44336, #ef5350);
}

.confirm-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.confirm-btn.confirm.danger:hover {
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

/* Loading and Error States Enhanced */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.loading i {
    font-size: 3rem;
    color: #e51837;
    margin-bottom: 1.5rem;
    animation: spin 1s linear infinite;
}

.loading p {
    font-size: 1.1rem;
    margin: 0;
}

.error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: #ef5350;
    background: rgba(244, 67, 54, 0.05);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.no-tickets {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.no-tickets i {
    font-size: 4rem;
    color: #e51837;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.no-tickets h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-tickets p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.toast-error {
    background: linear-gradient(135deg, #f44336, #ef5350);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.toast i {
    font-size: 1.2rem;
}

/* Resolution Modal Styles */
.resolution-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resolution-modal.show {
    opacity: 1;
    visibility: visible;
}

.resolution-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
}

.resolution-modal-container {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    position: relative;
    z-index: 4001;
    overflow: hidden;
    backdrop-filter: blur(30px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(-30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.resolution-modal.show .resolution-modal-container {
    transform: scale(1) translateY(0);
}

.resolution-modal-header {
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.resolution-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.resolution-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.close-resolution-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.close-resolution-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.resolution-modal-body {
    padding: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(76, 175, 80, 0.5) rgba(255, 255, 255, 0.1);
    position: relative;
}

.resolution-modal-body::-webkit-scrollbar {
    width: 8px;
}

.resolution-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.resolution-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.resolution-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.resolution-modal-body>p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.resolution-textarea-container {
    position: relative;
    margin-bottom: 1rem;
}

#resolutionText {
    width: 100%;
    min-height: 120px;
    max-height: 300px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
    scrollbar-color: rgba(76, 175, 80, 0.5) rgba(255, 255, 255, 0.1);
}

#resolutionText::-webkit-scrollbar {
    width: 6px;
}

#resolutionText::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#resolutionText::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.6);
    border-radius: 3px;
}

#resolutionText::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.8);
}

#resolutionText::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

#resolutionText:focus {
    outline: none;
    border-color: #4caf50;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

.character-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.9) 80%, transparent 100%);
    z-index: 10;
}

#charCount {
    font-weight: 600;
    color: #4caf50;
    transition: color 0.3s ease;
}

#charCount.warning {
    color: #ff9800;
}

#charCount.danger {
    color: #f44336;
}

.character-count::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0 1rem;
}

.resolution-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #ffb74d;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.resolution-notice i {
    color: #ff9800;
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.resolution-notice p {
    margin: 0;
    line-height: 1.5;
}

.resolution-modal-footer {
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.resolution-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}

.resolution-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.resolution-btn:hover::before {
    left: 100%;
}

.resolution-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.resolution-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.resolution-btn.confirm {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
}

.resolution-btn.confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.resolution-btn.confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Enhanced scroll indicators for modal body */
.resolution-modal-body {
    background-image:
        radial-gradient(at top, rgba(76, 175, 80, 0.1), transparent 50%),
        radial-gradient(at bottom, rgba(76, 175, 80, 0.1), transparent 50%);
    background-size: 100% 20px;
    background-position: top, bottom;
    background-repeat: no-repeat;
    background-attachment: local;
}

/* Responsive enhancements for resolution modal */
@media (max-width: 768px) {
    .resolution-modal-container {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }

    .resolution-modal-header {
        padding: 1.5rem;
    }

    .resolution-modal-header h3 {
        font-size: 1.3rem;
    }

    .resolution-modal-body {
        padding: 1.5rem;
    }

    #resolutionText {
        min-height: 100px;
        max-height: 250px;
        padding: 1rem;
    }

    .resolution-modal-footer {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .resolution-btn {
        width: 100%;
        padding: 1.2rem;
    }

    .character-count {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .character-count::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .resolution-modal-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .resolution-modal-header {
        padding: 1rem;
        border-radius: 0;
    }

    .resolution-modal-body {
        padding: 1rem;
    }

    .resolution-modal-footer {
        padding: 1rem;
        border-radius: 0;
    }

    #resolutionText {
        min-height: 80px;
        max-height: 200px;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .resolution-notice {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}

/* Custom Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #e51837;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #ff4569;
}

/* Light mode text colors for ticket section */
html.light .section__subtitle {
    color: rgba(0, 0, 0, 0.8) !important;
}

html.light .tab-btn {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .auth-message {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .auth-message p {
    color: rgba(0, 0, 0, 0.8) !important;
}

html.light .ticket-form label {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .form-group input,
html.light .form-group select,
html.light .form-group textarea {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .form-group input::placeholder,
html.light .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

html.light .button--ghost {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .tickets-header h3 {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .tickets-stats span {
    color: rgba(0, 0, 0, 0.9) !important;
}

/* Additional light mode text styles for ticket section */
html.light .tab-content {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .tab-content h2,
html.light .tab-content h3,
html.light .tab-content h4 {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .tab-content p {
    color: rgba(0, 0, 0, 0.8) !important;
}

html.light .tab-content label {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .ticket-list-item {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .ticket-title {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .ticket-description {
    color: rgba(0, 0, 0, 0.7) !important;
}

html.light .ticket-status {
    color: rgba(0, 0, 0, 0.8) !important;
}

html.light .priority-badge {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .ticket-date {
    color: rgba(0, 0, 0, 0.6) !important;
}

html.light .empty-state {
    color: rgba(0, 0, 0, 0.7) !important;
}

html.light .empty-state h3 {
    color: rgba(0, 0, 0, 0.9) !important;
}

html.light .empty-state p {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Responsive Design Fixes */
@media (max-width: 768px) {
    .ticket-section {
        padding: 2rem 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .section__title {
        font-size: 2.5rem;
    }
    
    .section__subtitle {
        font-size: 1.1rem;
    }
    
    .ticket-tabs {
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .tab-content {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 16px;
    }
    
    .auth-message {
        padding: 2rem 1.5rem;
        margin: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .button {
        width: 100%;
        justify-content: center;
    }
    
    .tickets-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .tickets-stats {
        justify-content: center;
    }
    
    .tickets-filters {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .admin-filters {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .admin-filters input,
    .admin-filters select {
        min-width: auto;
        width: 100%;
    }
    
    .admin-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .admin-stat-card {
        padding: 1.5rem;
    }
    
    .admin-ticket-card {
        padding: 1.5rem;
    }
    
    .admin-ticket-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .status-select,
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ticket-section {
        padding: 1.5rem 0.75rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .tab-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    .tab-content {
        padding: 1rem;
        margin: 0 0.25rem;
    }
    
    .auth-message {
        padding: 1.5rem 1rem;
    }
    
    .auth-message i {
        font-size: 3rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
    }
    
    .ticket-card {
        padding: 1.5rem;
    }
    
    .admin-stat-number {
        font-size: 2rem;
    }
}

/* Text truncation utility classes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate-sm {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80px;
}

.text-truncate-md {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.text-truncate-lg {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Ticket specific truncation */
.ticket-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.ticket-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.ticket-user {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

@media screen and (max-width: 768px) {
    .ticket-title {
        max-width: 180px;
    }
    
    .ticket-description {
        max-width: 220px;
    }
    
    .ticket-user {
        max-width: 110px;
    }
}