:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --light: #f8f9fa;
    --dark: #2d3748;
    --success: #68d391;
    --warning: #f6e05e;
    --error: #fc8181;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --glow-color: rgba(102, 126, 234, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 18s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 82%;
    animation-delay: -4s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 85%;
    left: 18%;
    animation-delay: -8s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 78%;
    animation-delay: -6s;
}

.shape:nth-child(5) {
    width: 90px;
    height: 90px;
    top: 50%;
    left: 12%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-35px) rotate(120deg) scale(1.05);
        opacity: 0.5;
    }
    66% {
        transform: translateY(25px) rotate(240deg) scale(0.95);
        opacity: 0.8;
    }
}

/* Glass Morphism Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
}

.logo:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 20px var(--glow-color);
}

.logo img {
    height: 45px;
    margin-right: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(10deg) scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.8rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.4rem;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover, 
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* Premium Status Container */
.status-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    position: relative;
}

.status-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 650px;
    color: white;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: cardAppear 0.8s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.status-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.status-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.status-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shine 4s infinite;
    animation-timing-function: ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.status-header h1 {
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 2.2rem;
    position: relative;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.status-header p {
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.status-body {
    padding: 3rem 2.5rem;
    position: relative;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    letter-spacing: -0.2px;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1.1rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 1rem;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15),
                inset 0 3px 8px rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 1.3rem;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

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

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

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
    letter-spacing: 1px;
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Enhanced Ticket Details */
.ticket-details {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease;
}

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

.ticket-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.detail-row {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.detail-row:hover {
    transform: translateX(10px);
}

.detail-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    min-width: 120px;
}

.detail-value {
    font-weight: 500;
    color: white;
    text-align: right;
    flex: 1;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.status-badge:hover::before {
    left: 100%;
}

.status-open { 
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.status-in-progress { 
    background: linear-gradient(135deg, #cce7ff, #99ceff);
    color: #004085;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.status-resolved { 
    background: linear-gradient(135deg, #d4edda, #a3e4b9);
    color: #155724;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.status-closed { 
    background: linear-gradient(135deg, #f8d7da, #f1aeb5);
    color: #721c24;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Enhanced Reply Section */
.reply-section {
    background: rgba(255, 255, 255, 0.08);
    border-left: 6px solid var(--primary);
    padding: 2rem;
    border-radius: 0 20px 20px 0;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.6s ease;
}

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

.reply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.reply-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-agent {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reply-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.reply-content {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.no-reply {
    background: rgba(255, 255, 255, 0.08);
    border-left: 6px solid var(--warning);
    padding: 2.5rem;
    border-radius: 0 20px 20px 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.no-reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.no-reply-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--warning);
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
}

.no-reply h3 {
    color: var(--warning);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.no-reply p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Enhanced Footer */
.footer {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer p {
    opacity: 0.9;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Loading Animation */
.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Timeline for Ticket Updates */
.timeline {
    margin-top: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 16px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 1.5rem 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        border-radius: 0 0 25px 25px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 1.2rem 2rem;
        color: var(--dark);
        border-radius: 0;
        font-weight: 600;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(102, 126, 234, 0.15);
        color: var(--gradient-start);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .status-body {
        padding: 2.5rem 2rem;
    }
    
    .status-header {
        padding: 2.5rem 2rem;
    }
    
    .status-header h1 {
        font-size: 2rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Print Styles */
@media print {
    .navbar, .footer, .submit-btn {
        display: none;
    }
    
    .status-card {
        box-shadow: none;
        background: white;
        color: black;
    }
    
    .status-header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
    }
}