:root {
    --primary: #0056b3;
    --primary-light: #007bff;
    --secondary: #fbb034;
    --bg-dark: #121826;
    --bg-darker: #0d121c;
    --bg-card: #1f2937;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; width: 100%; }
.card { background: var(--bg-card); border-radius: 12px; padding: 24px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

/* Typography */
h1, h2, h3 { font-weight: 600; color: #fff; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* Forms & Inputs */
.form-group { display: flex; flex-direction: column; margin-bottom: 15px; }
label { font-size: 0.9rem; margin-bottom: 5px; color: var(--text-muted); font-weight: 500; }
input, select, textarea {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4); }
.btn-secondary { background: var(--bg-darker); border: 1px solid var(--border-color); color: var(--text-main); }
.btn-secondary:hover { background: var(--border-color); box-shadow: none; }
.btn-block { width: 100%; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.alert-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--danger); color: #fca5a5; }

/* Header Navbar */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.navbar-brand { font-size: 1.25rem; font-weight: bold; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.navbar-nav { display: flex; gap: 20px; align-items: center; }
.nav-link { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.nav-link:hover { color: #fff; }

/* Table / Lists */
.chamados-list { display: grid; gap: 15px; margin-top: 20px; }
.chamado-item {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    transition: 0.3s;
    text-decoration: none; color: inherit;
}
.chamado-item:hover { border-color: var(--primary-light); transform: translateY(-3px); }
.chamado-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase;}
.status-aberto { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.status-em_andamento { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-resolvido, .status-fechado { background: rgba(16, 185, 129, 0.2); color: #34d399; }

/* Chat Bubbles */
.chat-container { display: flex; flex-direction: column; gap: 15px; max-height: 60vh; overflow-y: auto; padding: 10px; margin-bottom: 20px; }
.bubble { max-width: 80%; padding: 12px 18px; border-radius: 18px; position: relative; line-height: 1.4; }
.bubble-ti { background: var(--bg-darker); border: 1px solid var(--border-color); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-lojista { background: var(--primary); align-self: flex-end; border-bottom-right-radius: 4px; color: #fff;}
.bubble-meta { font-size: 0.75rem; opacity: 0.7; margin-top: 5px; display: block; text-align: right; }
.bubble-img { max-width: 100%; border-radius: 8px; margin-top: 10px; cursor: pointer; }

/* Glass Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(circle at top right, #1f2937, #0d121c); }
.login-card { max-width: 400px; width: 100%; background: rgba(31, 41, 55, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
