/* Bubbly Theme Styles */
:root {
    --primary: #4650dd;
    --secondary: #6c757d;
    --success: #35b653;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
}

/* Typography */
body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--light);
}

/* Card Styles */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-heading {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--dark);
    vertical-align: top;
    border-color: #dee2e6;
}

.table > :not(caption) > * > * {
    padding: 0.75rem;
    border-bottom-width: 1px;
}

.table > thead {
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom: 2px solid #dee2e6;
}

.table > tbody > tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Form Styles */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--dark);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--dark);
    background-color: #fff;
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(70, 80, 221, 0.25);
}

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #3540d4;
    border-color: #3540d4;
}

/* Utilities */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Page Headers */
.content-header,
.device-map-header {
    padding: 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.content-header h1,
.device-map-header h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-header,
    .device-map-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .content-header h1,
    .device-map-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-header,
    .device-map-header {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .content-header h1,
    .device-map-header h1 {
        font-size: 1.25rem;
    }
}

/* Map Container Styles */
.content-wrapper {
    height: 100%;
}

.content-header {
    padding: 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.content-body {
    height: calc(100vh - 64px - 80px); /* viewport height - header - padding */
}

.device-map {
    width: 100%;
    height: 100%;
}

/* Responsive adjustments for map */
@media (max-width: 768px) {
    .content-header {
        padding: 1rem;
    }
    
    .content-body {
        height: calc(100vh - 64px - 60px);
    }
}

@media (max-width: 480px) {
    .content-header {
        padding: 0.75rem;
    }
    
    .content-body {
        height: calc(100vh - 64px - 40px);
    }
}