:root { --bg-dark: #0f172a; --card-bg: #1e293b; --primary: #3b82f6; --primary-hover: #2563eb; --text-primary: #f8fafc; --text-secondary: #94a3b8; --border-color: #334155; --error: #ef4444; --success: #22c55e; --warning: #f59e0b; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-primary); line-height: 1.5; min-height: 100vh; overflow-x: hidden; } .bg-animations { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; } .blob { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%); border-radius: 50%; filter: blur(40px); } .blob-1 { top: -100px; left: -100px; animation: float 20s infinite alternate; } .blob-2 { bottom: -100px; right: -100px; animation: float 25s infinite alternate-reverse; } .blob-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.5; } @keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(100px, 50px); } } .main-wrapper { max-width: 1200px; margin: 0 auto; padding: 2rem; min-height: 100vh; } /* Auth Pages */ .auth-page { display: flex; align-items: center; justify-content: center; } .auth-card { background-color: var(--card-bg); padding: 2.5rem; border-radius: 1rem; width: 100%; max-width: 400px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color); } .auth-card h2 { margin-bottom: 1.5rem; text-align: center; font-size: 1.875rem; } .form-group { margin-bottom: 1.25rem; } .form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.875rem; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid var(--border-color); background-color: var(--bg-dark); color: var(--text-primary); outline: none; transition: border-color 0.2s; } .form-group input:focus { border-color: var(--primary); } .btn-primary { width: 100%; padding: 0.75rem; background-color: var(--primary); color: white; border: none; border-radius: 0.5rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s; } .btn-primary:hover { background-color: var(--primary-hover); } .auth-footer { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--text-secondary); } .auth-footer a { color: var(--primary); text-decoration: none; } .alert { padding: 0.75rem 1rem; border-radius: 0.5rem; margin-bottom: 1.25rem; font-size: 0.875rem; } .alert-error { background-color: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid var(--error); } .alert-success { background-color: rgba(34, 197, 94, 0.1); color: var(--success); border: 1px solid var(--success); } /* Dashboard / Index */ .navbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding: 1rem 0; border-bottom: 1px solid var(--border-color); } .logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); } .user-info { display: flex; align-items: center; gap: 1rem; } .user-info span { color: var(--text-secondary); } .logout-link { color: var(--error); text-decoration: none; font-size: 0.875rem; } .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; } .ticket-card { background-color: var(--card-bg); padding: 1.5rem; border-radius: 0.75rem; border: 1px solid var(--border-color); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; display: block; } .ticket-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); } .ticket-badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.75rem; } .badge-open { background-color: rgba(59, 130, 246, 0.1); color: #60a5fa; } .badge-in_progress { background-color: rgba(245, 158, 11, 0.1); color: #fbbf24; } .badge-awaiting_response { background-color: rgba(139, 92, 246, 0.1); color: #a78bfa; } .badge-closed { background-color: rgba(148, 163, 184, 0.1); color: #94a3b8; } .ticket-card h3 { margin-bottom: 0.5rem; font-size: 1.125rem; } .ticket-card p { color: var(--text-secondary); font-size: 0.875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .ticket-meta { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-secondary); } /* Chat Styles */ .ticket-detail-header { margin-bottom: 2rem; } .chat-box { background-color: var(--card-bg); border-radius: 1rem; border: 1px solid var(--border-color); display: flex; flex-direction: column; height: 600px; } .chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; } .message { max-width: 80%; padding: 0.75rem 1rem; border-radius: 0.75rem; position: relative; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message-info { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.25rem; } .message.mine { align-self: flex-end; background-color: var(--primary); color: white; } .message.other { align-self: flex-start; background-color: var(--bg-dark); border: 1px solid var(--border-color); } .chat-input-area { padding: 1rem; border-top: 1px solid var(--border-color); } .chat-form { display: flex; gap: 0.75rem; } .chat-input { flex: 1; background-color: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 0.75rem 1rem; color: var(--text-primary); outline: none; } .file-upload-btn { background-color: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 0.75rem; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; } /* Modal */ .modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: none; align-items: center; justify-content: center; z-index: 1000; } .modal { background-color: var(--card-bg); padding: 2rem; border-radius: 1rem; width: 90%; max-width: 500px; border: 1px solid var(--border-color); } /* Statistics Dashboard */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; } .stat-card { background-color: var(--card-bg); padding: 1.5rem; border-radius: 0.75rem; border: 1px solid var(--border-color); text-align: center; } .stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; } .stat-label { color: var(--text-secondary); font-size: 0.875rem; } /* Responsive */ @media (max-width: 768px) { .main-wrapper { padding: 1rem; } .ticket-grid { grid-template-columns: 1fr; } }