* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border: 2px solid #333;
    padding: 20px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}
.logo {
    width: 120px;
    height: 40px;
    background: #ddd;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.avatar {
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}
.layout {
    display: flex;
    gap: 20px;
}
.sidebar {
    width: 220px;
    border: 2px solid #333;
    flex-shrink: 0;
}
.sidebar-item {
    padding: 12px 15px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-item:hover {
    background: #f0f0f0;
}
.sidebar-item.active {
    background: #333;
    color: white;
}
.sidebar-section {
    padding: 10px 15px;
    background: #f0f0f0;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
}
.badge {
    background: #333;
    color: white;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: auto;
}
.main {
    flex: 1;
    border: 2px solid #333;
    padding: 20px;
    min-width: 0; /* Prevents flex item from expanding beyond container */
}
.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}
.breadcrumb {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}
.breadcrumb a {
    color: #333;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.stat-card {
    border: 2px solid #333;
    padding: 15px;
}
.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}
.stat-value {
    font-size: 28px;
    font-weight: bold;
}
.stat-change {
    font-size: 11px;
    margin-top: 5px;
}

/* Cards */
.card {
    border: 2px solid #333;
    margin-bottom: 20px;
}
.card-header {
    padding: 15px;
    border-bottom: 2px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}
.card-body {
    padding: 15px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}
th {
    background: #f0f0f0;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}
tr:hover {
    background: #f9f9f9;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: 2px solid #333;
    background: white;
    font-weight: bold;
    cursor: pointer;
}
.btn:hover {
    background: #f0f0f0;
}
.btn-primary {
    background: #333;
    color: white;
}
.btn-primary:hover {
    background: #555;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12px;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #333;
    font-size: 14px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Status */
.status {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #333;
    font-size: 11px;
    font-weight: bold;
}
.status-online {
    background: #d4edda;
}
.status-offline {
    background: #f8d7da;
}
.status-pending {
    background: #fff3cd;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}
.tab {
    padding: 12px 25px;
    border: 2px solid #333;
    border-bottom: none;
    margin-bottom: -2px;
    cursor: pointer;
    background: #f0f0f0;
}
.tab.active {
    background: white;
    border-bottom: 2px solid white;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-bar select {
    width: auto;
    min-width: 150px;
}

/* Alerts */
.alert {
    padding: 12px;
    border: 2px solid #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Display card */
.display-card {
    border: 2px solid #333;
}
.display-card-image {
    height: 100px;
    background: #ddd;
    border-bottom: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.display-card-type {
    position: absolute;
    top: 5px;
    left: 5px;
    background: white;
    padding: 2px 8px;
    border: 1px solid #333;
    font-size: 10px;
}
.display-card-status {
    position: absolute;
    top: 5px;
    right: 5px;
}
.display-card-body {
    padding: 10px;
}
.display-card-name {
    font-weight: bold;
    margin-bottom: 5px;
}
.display-card-location {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}
.display-card-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #ccc;
    font-size: 12px;
}

/* Timeline */
.timeline {
    padding-left: 20px;
    border-left: 2px solid #333;
}
.timeline-item {
    position: relative;
    padding: 0 0 20px 20px;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    background: white;
}
.timeline-item.done::before {
    background: #333;
}
.timeline-item.current::before {
    background: #fff3cd;
}
.timeline-title {
    font-weight: bold;
}
.timeline-date {
    font-size: 12px;
    color: #666;
}

/* Login specific */
.login-container {
    max-width: 450px;
    margin: 50px auto;
    background: white;
    border: 2px solid #333;
    padding: 40px;
}
.login-logo {
    width: 150px;
    height: 60px;
    background: #ddd;
    border: 2px solid #333;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.login-tabs {
    display: flex;
    margin-bottom: 30px;
}
.login-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    border: 2px solid #333;
    font-weight: bold;
    cursor: pointer;
    background: #f0f0f0;
}
.login-tab.active {
    background: #333;
    color: white;
}
.social-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #333;
    background: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}
.social-btn:hover {
    background: #f0f0f0;
}
.divider {
    text-align: center;
    margin: 20px 0;
    color: #666;
}
.note {
    background: #fffacd;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 12px;
    margin-top: 15px;
}

/* Chamados */
.chamado-card {
    border: 2px solid #333;
    padding: 15px;
    margin-bottom: 15px;
}
.chamado-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.chamado-id {
    font-size: 12px;
    color: #666;
}
.chamado-title {
    font-weight: bold;
}
.chamado-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #666;
}
.priority-high { color: red; font-weight: bold; }
.priority-medium { color: orange; }
.priority-low { color: green; }

/* Chat */
.chat-box {
    border: 2px solid #333;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    margin-bottom: 15px;
}
.chat-message {
    margin-bottom: 15px;
}
.chat-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}
.chat-avatar {
    width: 30px;
    height: 30px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}
.chat-name {
    font-weight: bold;
    font-size: 13px;
}
.chat-time {
    font-size: 11px;
    color: #666;
}
.chat-text {
    padding-left: 40px;
    font-size: 13px;
}

/* Placeholder */
.placeholder {
    background: #ddd;
    border: 2px dashed #999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

/* Ping log */
.ping-log {
    font-family: monospace;
    font-size: 11px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
}
.ping-ok { color: green; }
.ping-fail { color: red; }

/* Checkbox table */
.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.checkbox.checked::after {
    content: "✓";
    font-weight: bold;
}
