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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
}

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

.login-box {
    max-width: 400px;
    margin: 100px auto;
    background: #1e293b;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 120px;
}

h1 {
    text-align: center;
    color: #38bdf8;
    font-size: 24px;
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.header h1 {
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.card {
    background: #1e293b;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: #38bdf8;
    font-size: 18px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #38bdf8;
}

textarea {
    resize: vertical;
}

small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    background: #38bdf8;
    color: #0f172a;
    font-weight: 600;
}

.btn-primary:hover {
    background: #7dd3fc;
}

.btn-small {
    padding: 6px 12px;
    background: #334155;
    color: #e2e8f0;
    font-size: 12px;
}

.btn-small:hover {
    background: #475569;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #7f1d1d;
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.alert-success {
    background: #14532d;
    border: 1px solid #22c55e;
    color: #86efac;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    padding: 10px 8px;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
    font-weight: 500;
}

td {
    padding: 10px 8px;
    border-bottom: 1px solid #1e293b;
}

.msg-texto {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #94a3b8;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status-pendente {
    background: #713f12;
    color: #fde047;
}

.status-enviado {
    background: #14532d;
    color: #86efac;
}

.status-falha {
    background: #7f1d1d;
    color: #fca5a5;
}

.status-sem_dispositivo {
    background: #451a03;
    color: #fdba74;
}