/* ==========================================================================
   ACCOUNT SYSTEM STYLES - Matching WECANGET Dark Theme
   ========================================================================== */

/* Account container styling */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) 1rem;
    min-height: calc(100vh - 300px);
}

/* Auth forms styling */
.auth-form {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* CAPTCHA styling */
.captcha-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(147, 197, 253, 0.1);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.captcha-input {
    font-size: 1.2rem !important;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background-color: #ef4444; width: 25%; }
.strength-fair { background-color: #f59e0b; width: 50%; }
.strength-good { background-color: #10b981; width: 75%; }
.strength-strong { background-color: #22c55e; width: 100%; }

/* Terms checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--primary);
}

.terms-checkbox label {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--text-2);
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-auth {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600)) !important;
    color: #062038 !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4) !important;
}

.btn-auth-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(96, 165, 250, 0.6) !important;
}

.btn-auth-secondary {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.btn-auth-secondary:hover {
    background: var(--primary) !important;
    color: #062038 !important;
    transform: translateY(-2px) !important;
}

/* Auth links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

/* Dashboard styling */
.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar */
.dashboard-sidebar {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-profile {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #062038;
    font-weight: bold;
}

.user-profile h3 {
    margin: 0.5rem 0 0.25rem;
    color: var(--text);
}

.user-profile .email {
    color: var(--muted);
    font-size: 0.9rem;
    word-break: break-all;
}

.dashboard-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-nav li {
    margin-bottom: 0.5rem;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-2);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: rgba(147, 197, 253, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

.dashboard-nav i {
    width: 20px;
    text-align: center;
}

/* Dashboard content */
.dashboard-content {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.8rem;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-2);
    font-size: 0.9rem;
}

/* Recent activity */
.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(147, 197, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.activity-content h4 {
    margin: 0 0 0.25rem;
    color: var(--text);
    font-size: 1rem;
}

.activity-content p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.9rem;
}

.activity-time {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Orders table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.orders-table th {
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.orders-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-2);
}

.orders-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.order-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.status-processing { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-completed { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-cancelled { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Downloads grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.download-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(147, 197, 253, 0.2);
}

.download-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.download-title h4 {
    margin: 0;
    color: var(--text);
}

.download-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.download-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-download {
    flex: 1;
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Verification page */
.verification-container {
    text-align: center;
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
}

.verification-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: #062038;
}

.verification-container h2 {
    margin-bottom: 1rem;
    color: var(--text);
}

.verification-container p {
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-content {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .account-container {
        padding: var(--space-lg) 1rem;
    }
    
    .auth-form {
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-table {
        display: block;
        overflow-x: auto;
    }
    
    .verification-container {
        padding: 2rem 1rem;
        margin: 2rem auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form,
.dashboard-sidebar,
.dashboard-content,
.verification-container {
    animation: fadeIn 0.5s ease-out;
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/error messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* ==========================================================================
   ACCOUNT NAVIGATION STYLES
   ========================================================================== */

/* Desktop navigation icons */
.nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Account dropdown specific styling */
.nav-list .dropdown-menu a i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    color: var(--primary);
}

/* Logout link styling in dropdown */
.nav-list .dropdown-menu a[href*="logout"] i {
    color: #ef4444;
}

/* Mobile account buttons */
.mobile-cta .btn {
    margin-bottom: 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-cta .btn i {
    font-size: 1rem;
}

/* Footer account links */
.footer-links a i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.footer-links a:hover i {
    color: var(--primary-600);
}

/* Ensure account links don't break mobile menu */
@media (max-width: 820px) {
    .nav-link i {
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    /* Center account buttons in mobile menu */
    .mobile-cta .btn {
        justify-content: center;
        padding: 1rem !important;
    }
    
    /* Adjust spacing for mobile account section */
    .mobile-cta > div {
        margin-bottom: 1rem;
    }
}

/* Make sure account dropdown aligns properly */
.nav-list .dropdown:hover .dropdown-menu {
    min-width: 200px;
}

/* Account link active states */
.nav-link[href*="/account/"]:not(.has-dropdown):hover {
    background: rgba(147, 197, 253, 0.1);
    color: var(--primary);
}

/* ==========================================================================
   END OF ACCOUNT NAVIGATION STYLES
   ========================================================================== */

/* ==========================================================================
   TICKET HANDLING SYSTEM STYLES RELATED TO submit-ticket.php
   ========================================================================== */

.ticket-form-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ticket-form .form-group {
    margin-bottom: 2rem;
}

.ticket-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.form-select, .form-input, .form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-help {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-info {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background: var(--input-bg);
    transition: border-color 0.3s;
}

.file-upload:hover .file-upload-info {
    border-color: var(--primary);
}

.file-upload-info i {
    font-size: 2rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.form-note p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-note i {
    color: var(--primary);
    margin-top: 0.2rem;
}

.alert {
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    color: #86efac;
}

.alert i {
    margin-right: 0.5rem;
}
/* ==========================================================================
   END OF TICKET HANDLING SYSTEM STYLES RELATED TO submit-ticket.php
   ========================================================================== */
/* ===================================================
   TICKET HANDLING STYLES RELATED TO tickets.php FILE
   ==================================================== */

/* Status Tabs */
.ticket-status-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.status-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-tab:hover {
    background: var(--border);
    color: var(--text);
}

.status-tab.active {
    background: var(--primary);
    color: white;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Status-specific colors */
.status-tab.status-open.active { background: #10b981; }
.status-tab.status-in-progress.active { background: #3b82f6; }
.status-tab.status-resolved.active { background: #f59e0b; }
.status-tab.status-closed.active { background: #6b7280; }

/* Category Filter */
.ticket-category-filter {
    margin-bottom: 2rem;
}

.filter-form {
    max-width: 300px;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
}

/* Tickets List */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ticket-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ticket-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ticket-number {
    font-weight: 600;
    color: var(--primary);
    font-family: monospace;
}

.ticket-category,
.ticket-priority,
.ticket-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Category badges */
.ticket-category.category-technical { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.ticket-category.category-billing { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.ticket-category.category-sales { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.ticket-category.category-general { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

/* Priority badges */
.ticket-priority.priority-low { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.ticket-priority.priority-medium { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.ticket-priority.priority-high { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.ticket-priority.priority-urgent { background: rgba(220, 38, 38, 0.2); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }

/* Status badges */
.ticket-status.status-open { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.ticket-status.status-in_progress { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.ticket-status.status-resolved { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.ticket-status.status-closed { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

.ticket-date {
    color: var(--muted);
    font-size: 0.9rem;
}

.ticket-body {
    margin-bottom: 1rem;
}

.ticket-subject {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}

.ticket-subject a {
    color: var(--text);
    text-decoration: none;
}

.ticket-subject a:hover {
    color: var(--primary);
}

.ticket-preview {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.ticket-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-ticket-action {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-ticket-action:hover {
    background: var(--border);
    color: var(--primary);
}

.ticket-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.ticket-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-info-item.warning {
    color: #f59e0b;
}

/* Pagination */
.ticket-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: var(--border);
    color: var(--primary);
}

.pagination-info {
    color: var(--muted);
    font-weight: 500;
}

/* Empty State for Tickets */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--border);
}

.empty-state i {
    font-size: 3rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ticket-pagination {
        flex-direction: column;
        gap: 1rem;
    }
}
/* ========================================================
   END OF TICKET HANDLING STYLES RELATED TO tickets.php FILE
   ======================================================== */
/* ===============================================
   TICKET VIEW STYLES RELATED TO ticket-view.php
   =============================================== */

/* Ticket Header */
.ticket-view-header {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.ticket-view-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ticket-view-subject {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ticket-view-subject h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
    flex: 1;
    min-width: 200px;
}

.ticket-view-category,
.ticket-view-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.ticket-view-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.date-item {
    font-size: 0.95rem;
    color: var(--muted);
}

.date-item strong {
    color: var(--text);
    margin-right: 0.5rem;
}

.date-item.warning {
    color: #f59e0b;
}

/* Messages Thread */
.ticket-messages-thread {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    max-height: 600px;
    overflow-y: auto;
}

.thread-title {
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1.25rem;
}

.empty-thread {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.empty-thread i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Message Items */
.message-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.message-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.2rem;
}

.message-customer .sender-avatar {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.message-admin .sender-avatar {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.sender-info {
    display: flex;
    flex-direction: column;
}

.sender-name {
    color: var(--text);
    font-weight: 600;
}

.sender-role {
    font-size: 0.85rem;
    color: var(--muted);
}

.message-time {
    font-size: 0.9rem;
    color: var(--muted);
}

.message-body {
    margin-left: 3.5rem;
}

.message-content {
    background: var(--input-bg);
    padding: 1.25rem;
    border-radius: 10px;
    border-top-left-radius: 0;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
}

.message-admin .message-content {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
}

.message-customer .message-content {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
}

/* Attachments */
.message-attachments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.message-attachments strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--input-bg);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.attachment-item:hover {
    background: var(--border);
    border-color: var(--primary);
    transform: translateX(5px);
}

.attachment-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.attachment-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-item small {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Reply Form */
.ticket-reply-form {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.reply-title {
    margin: 0 0 1.5rem 0;
    color: var(--text);
    font-size: 1.25rem;
}

.reply-form .form-group {
    margin-bottom: 1.5rem;
}

.reply-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.reply-form .form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    min-height: 150px;
    resize: vertical;
}

.reply-form .file-upload {
    margin-top: 0.5rem;
}

.form-note {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    color: #f59e0b;
}

.form-note p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-note i {
    margin-top: 0.2rem;
}

/* Notices */
.ticket-resolved-notice,
.ticket-closed-notice {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    border: 2px dashed var(--border);
}
.notice-content a.btn-auth {
    display: inline-block;
}

.notice-content {
    max-width: 500px;
    margin: 0 auto;
}

.notice-content i {
    font-size: 3rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    display: block;
}

.notice-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.notice-content p {
    color: var(--muted);
    line-height: 1.6;
}

.ticket-resolved-notice {
    border-color: rgba(245, 158, 11, 0.3);
}

.ticket-resolved-notice i {
    color: #f59e0b;
}

.ticket-closed-notice {
    border-color: rgba(107, 114, 128, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .ticket-view-subject {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-view-dates {
        grid-template-columns: 1fr;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-body {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .sender-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* =====================================================
   END OF TICKET VIEW STYLES RELATED TO ticket-view.php
   ===================================================== */
/* ==========================================================================
   END OF ACCOUNT SYSTEM STYLES
============================================================================== */