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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-options {
    margin: 30px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-google {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
    flex-shrink: 0;
}

.footer-text {
    font-size: 12px;
    color: #999;
    margin-top: 30px;
    line-height: 1.5;
}

/* Dashboard styles */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.build-info {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.user-info h2 {
    margin-bottom: 5px;
    color: #1a1a1a;
}

.user-email {
    color: #666;
    font-size: 14px;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-logout:hover {
    background: #c82333;
}

.dashboard-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-content h3 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    margin-bottom: 20px;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-copy {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.btn-copy:hover {
    background: #218838;
}

/* Content header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Instance cards */
.instance-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.instance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.instance-header h4 {
    margin: 0;
    color: #1a1a1a;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-online {
    background: #d4edda;
    color: #155724;
}

.status-offline {
    background: #f8d7da;
    color: #721c24;
}

.instance-details {
    margin-bottom: 15px;
}

.instance-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.instance-actions {
    display: flex;
    gap: 10px;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.input-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin: 10px 0 20px 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.token-display {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border: 2px solid #667eea;
}

.token-display code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #333;
    word-break: break-all;
}

.instructions {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.instructions ol {
    margin: 10px 0 10px 20px;
}

.instructions li {
    margin: 5px 0;
}

.note {
    margin-top: 15px;
    font-weight: 600;
    color: #856404;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Slug feedback */
.slug-feedback {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.slug-feedback.success {
    color: #28a745;
}

.slug-feedback.error {
    color: #dc3545;
}

.slug-feedback.checking {
    color: #667eea;
}

.slug-feedback.warning {
    color: #ffc107;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    background: #ccc;
}

/* Instance details modal */
#instance-details-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

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

/* Device styles */
.device-domain-group {
    margin-bottom: 30px;
}

.device-domain-title {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.device-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.device-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

.device-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.entity-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    max-height: 200px;
    object-fit: cover;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.device-header strong {
    color: #1a1a1a;
    font-size: 14px;
    flex: 1;
}

.device-state {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.device-state.state-on {
    background: #d4edda;
    color: #155724;
}

.device-state.state-off {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.device-state.state-unavailable {
    background: #f8d7da;
    color: #721c24;
}

.device-state.state-default {
    background: #d1ecf1;
    color: #0c5460;
}

.device-id {
    font-size: 11px;
    color: #6c757d;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.device-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.device-attr {
    font-size: 11px;
    padding: 3px 8px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
}

.empty-message, .loading, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* User list styles */
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-email {
    font-size: 13px;
    color: #6c757d;
}

.user-meta {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.role-badge.role-owner {
    background: #667eea;
    color: white;
}

.role-badge.role-manager {
    background: #6c757d;
    color: white;
}

.role-badge.role-readonly {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Invitation styles */
.invitation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.invitation-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.invitation-date {
    font-size: 12px;
    color: #6c757d;
}

.btn-copy-invite {
    padding: 8px 16px;
}

/* Collapsible section styles */
.collapsible-section {
    margin-top: 20px;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 10px 0;
    transition: color 0.2s ease;
}

.collapsible-header:hover {
    color: #667eea;
}

.collapse-icon {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 14px;
    min-width: 14px;
}

.collapse-icon.expanded {
    transform: rotate(90deg);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* History Modal Styles */
.modal-large {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-image {
    max-width: 90%;
    padding: 20px;
}

.history-filters {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.history-filters label {
    font-size: 0.85em;
    font-weight: 500;
    margin: 0;
}

.input-compact {
    padding: 4px 8px !important;
    font-size: 0.85em !important;
    height: auto !important;
    max-width: 180px;
}

.btn-compact {
    padding: 4px 10px !important;
    font-size: 0.8em !important;
    white-space: nowrap;
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.filter-row label {
    min-width: 60px;
    font-weight: 500;
}

.filter-row input {
    flex: 1;
}

.filter-row button {
    margin: 0;
}

.history-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.history-table tr:hover {
    background: #f9f9f9;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.motion-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
}

.motion-badge.motion {
    background: #ff5252;
    color: white;
}

.motion-badge.idle {
    background: #4caf50;
    color: white;
}

.motion-badge.unknown {
    background: #999;
    color: white;
}

.image-indicator {
    color: #667eea;
    cursor: pointer;
    text-decoration: none;
}

.image-indicator:hover {
    color: #5568d3;
    text-decoration: underline;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Additional History Modal Styles */
.modal-xlarge {
    max-width: 1400px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.history-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.history-tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.history-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.history-view {
    flex: 1;
    overflow-y: auto;
}

/* Timeline View Styles */
.timeline-layout {
    display: flex;
    height: 600px;
    gap: 0;
}

.timeline-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
    overflow: hidden;
}

.timeline-right {
    width: 500px;
    background: #222;
    display: flex;
    flex-direction: column;
}

.timeline-controls {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-nav {
    display: flex;
    gap: 10px;
}

.time-nav button,
.zoom-controls button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.time-nav button:hover,
.zoom-controls button:hover {
    background: #e0e0e0;
}

.zoom-controls {
    display: flex;
    gap: 5px;
}

.histogram-section {
    padding: 20px;
}

.histogram {
    display: flex;
    align-items: flex-end;
    height: 120px;
    gap: 2px;
    margin-bottom: 10px;
}

.histogram-bar {
    flex: 1;
    background: linear-gradient(to top, #667eea, #8a9ff8);
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    min-width: 2px;
    border-radius: 2px 2px 0 0;
}

.histogram-bar:hover {
    background: linear-gradient(to top, #5568d3, #667eea);
}

.histogram-bar.has-motion {
    background: linear-gradient(to top, #ff5252, #ff8a80);
}

.histogram-bar.has-motion:hover {
    background: linear-gradient(to top, #d32f2f, #ff5252);
}

.histogram-bar.selected {
    background: linear-gradient(to top, #4caf50, #81c784) !important;
}

.histogram-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.events-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.event-item {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid #eee;
}

.event-item:hover {
    background: #f9f9f9;
}

.event-item.selected {
    background: #e3f2fd;
    border-color: #667eea;
}

.event-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.event-state {
    font-size: 14px;
    font-weight: 500;
}

.event-motion {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 8px;
}

.event-motion.motion {
    background: #ffebee;
    color: #c62828;
}

.event-motion.idle {
    background: #e8f5e9;
    color: #2e7d32;
}

.image-header {
    padding: 15px;
    background: #333;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.image-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
    background: #222;
}

.image-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.image-nav {
    padding: 15px;
    background: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-nav button {
    background: #555;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.image-nav button:hover:not(:disabled) {
    background: #666;
}

.image-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.no-image-message {
    color: #999;
    text-align: center;
    padding: 40px;
}

/* ============================================================================
   ALERTS SYSTEM STYLES
   ============================================================================ */

.alerts-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 15px 20px;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.alerts-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.alerts-banner-icon {
    font-size: 24px;
    margin-right: 15px;
}

.alerts-banner-text {
    flex: 1;
}

.alerts-banner-actions {
    display: flex;
    gap: 10px;
}

.alert-rule-card, .alert-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.alert-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.alert-rule-status {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85em;
}

.alert-rule-status.enabled {
    background: #d4edda;
    color: #155724;
}

.alert-rule-status.disabled {
    background: #f8d7da;
    color: #721c24;
}

.alert-rule-details {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.alert-rule-actions, .alert-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.severity-low { border-left: 4px solid #28a745; }
.severity-medium { border-left: 4px solid #ffc107; }
.severity-high { border-left: 4px solid #fd7e14; }
.severity-critical { border-left: 4px solid #dc3545; }

.alert-card.silenced {
    opacity: 0.6;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85em;
}

.alert-severity {
    font-weight: bold;
}

.alert-silenced-badge {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-top: 8px;
    display: inline-block;
}

.checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
}

.checkbox-item {
    display: block;
    padding: 8px;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #f8f9fa;
}

.checkbox-item input {
    margin-right: 8px;
}

.modal-large .modal-content {
    max-width: 800px;
}

.alert-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.alert-detail-row {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.alert-detail-section {
    margin-top: 15px;
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
}

.severity-badge.severity-low { background: #d4edda; color: #155724; }
.severity-badge.severity-medium { background: #fff3cd; color: #856404; }
.severity-badge.severity-high { background: #f8d7da; color: #721c24; }
.severity-badge.severity-critical { background: #f8d7da; color: #721c24; border: 2px solid #721c24; }

.alerts-filters {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* LLM Response Tooltip */
.llm-icon {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    font-size: 18px;
}

.llm-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    min-width: 300px;
    max-width: 400px;
    white-space: normal;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.llm-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.llm-icon:hover .llm-tooltip,
.llm-icon:active .llm-tooltip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Push Notification Styles */
.notification-controls {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.notification-controls p {
    margin-bottom: 15px;
    color: #495057;
}

.notification-controls button {
    margin-right: 10px;
}

.device-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
    transition: box-shadow 0.2s;
}

.device-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.device-card strong {
    font-size: 16px;
    color: #212529;
}

.device-card small {
    color: #6c757d;
    font-size: 13px;
}

.collapsible-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.collapsible-header {
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.collapsible-header:hover {
    background: #e9ecef;
}

.collapsible-content {
    padding: 20px;
}

.collapse-icon {
    display: inline-block;
    width: 20px;
    transition: transform 0.2s;
}
