/* === UTM-Style Buttons === */
.btn {
    padding: 3px 12px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.1s;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(to bottom, #5a9bd5, #3a7abd);
    border-color: #2d6299;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #4a8bc5, #2d6aa9);
}

.btn-success {
    background: linear-gradient(to bottom, #6aae4e, #5a9e3e);
    border-color: #4a8832;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.btn-success:hover {
    background: linear-gradient(to bottom, #5a9e3e, #4a8832);
}

.btn-danger {
    background: linear-gradient(to bottom, #d04e3e, #c0392b);
    border-color: #a52f24;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #c0392b, #a52f24);
}

.btn-warning {
    background: linear-gradient(to bottom, #f0ad4e, #e67e22);
    border-color: #d35400;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.btn-warning:hover {
    background: linear-gradient(to bottom, #e67e22, #d35400);
}

.btn-secondary {
    background: linear-gradient(to bottom, #ffffff, #e8ecf0);
    border-color: var(--input-border);
    color: var(--text);
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, #f0f2f5, #dce0e5);
}

.btn-sm {
    padding: 1px 8px;
    font-size: 10px;
}

/* === UTM-Style Object Badges (type indicators) === */
.badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-blue {
    background: #dbeaf7;
    color: #2a6496;
    border-color: #b0cfe5;
}

.badge-green {
    background: #def2d6;
    color: #3c7a23;
    border-color: #b5dca3;
}

.badge-orange {
    background: #fdebd0;
    color: #9c6a12;
    border-color: #f0d4a0;
}

.badge-purple {
    background: #e8dff0;
    color: #6b3f8a;
    border-color: #d0bde0;
}

.badge-gray {
    background: #e8eaed;
    color: #555;
    border-color: #ced2d8;
}

.badge-red {
    background: #f8d7d3;
    color: #9b2c22;
    border-color: #e8b0aa;
}

.badge-teal {
    background: #d4f0ea;
    color: #1a7a5c;
    border-color: #a8d8cc;
}

/* === UTM-Style Info Cards (dashboard) === */
.card {
    background: var(--content-panel-bg);
    border: 1px solid var(--panel-border);
    padding: 0;
}

.card-title {
    background: linear-gradient(to bottom, #eef1f4, #dde2e8);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border);
}

.card-value {
    padding: 12px 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

/* === Page Header (UTM toolbar style) === */
.page-header {
    background: var(--content-panel-bg);
    border: 1px solid var(--panel-border);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.page-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

/* === Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 12px;
    background: var(--content-panel-bg);
    border: 1px solid var(--panel-border);
}

.empty-state p {
    margin-top: 4px;
}

/* === Toast Notifications === */
.toast-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast {
    padding: 6px 14px;
    border-radius: 2px;
    color: white;
    font-size: 11px;
    animation: slideIn 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    min-width: 220px;
    max-width: 350px;
    border: 1px solid transparent;
}

.toast-success {
    background: #5a9e3e;
    border-color: #4a8832;
}

.toast-error {
    background: #c0392b;
    border-color: #a52f24;
}

.toast-info {
    background: #3a7abd;
    border-color: #2d6299;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* === UTM-Style Toolbar === */
.toolbar {
    background: linear-gradient(to bottom, #f5f7f9, #e8ecf0);
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--panel-border);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.toolbar-separator {
    width: 1px;
    height: 18px;
    background: var(--border);
}

/* === UTM Object Icon (small colored squares before names) === */
.obj-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

.obj-icon.host     { background: #5b9bd5; }
.obj-icon.network  { background: #5a9e3e; }
.obj-icon.range    { background: #d4930a; }
.obj-icon.fqdn     { background: #8b5fb0; }
.obj-icon.mac      { background: #888; }
.obj-icon.service  { background: #e67e22; }
.obj-icon.group    { background: #3498db; }
.obj-icon.firewall { background: #c0392b; }

/* === Utility === */
.text-muted { color: var(--text-muted); }
