:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

header .user-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background: white;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

nav a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Cards & Forms */
.card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"], 
input[type="email"], 
input[type="password"], 
select, 
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

button, .btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
    text-align: center;
}

button:hover, .btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-danger { background-color: var(--accent-color); }
.btn-danger:hover { background-color: #c0392b; }

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f1f1f1;
    font-weight: 600;
    color: var(--primary-color);
}

tr:hover {
    background-color: #f9f9f9;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-aberto { background: #ffeaa7; color: #d35400; }
.status-atendimento { background: #74b9ff; color: #0984e3; }
.status-resolvido { background: #55efc4; color: #00b894; }
.status-cancelado { background: #fab1a0; color: #d63031; }

/* Chatbot Styles */
#chat-container {
    height: 400px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    background: #fdfdfd;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
}

.message.ai {
    background: #e1f5fe;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: #f1f1f1;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    margin-left: auto;
}

.chat-input-group {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #eee;
}

/* Utils */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
