/* ============================================================
   BeeTrack - Styles CSS
   ============================================================ */

/* === Variables === */
:root {
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --primary-light: #FCD34D;
    --secondary: #3B82F6;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --black: #000000;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Utilities === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-sm {
    max-width: 600px;
}

.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }

/* === Header === */
.header {
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-center h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-800);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-link:hover {
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.back-link {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    position: relative;
    font-size: 1.25rem;
}

.btn-icon:hover {
    background: var(--gray-100);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

/* === User Menu === */
.user-menu {
    position: relative;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--gray-200);
}

.avatar.large {
    width: 64px;
    height: 64px;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem;
    z-index: 200;
}

.user-menu:hover .dropdown,
.dropdown:hover {
    display: block;
}

.dropdown-header {
    padding: 0.75rem;
}

.dropdown-header strong {
    display: block;
}

.dropdown-header small {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
}

.dropdown-item:hover {
    background: var(--gray-100);
    text-decoration: none;
}

/* === Main Content === */
.main-content {
    padding: 1.5rem 1rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

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

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* === Alerts Banner === */
.alerts-banner {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.alert-icon {
    font-size: 1.25rem;
}

/* === Hives Grid === */
.hives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.hive-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid var(--success);
}

.hive-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hive-card.offline {
    border-left-color: var(--gray-400);
}

.hive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.hive-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.hive-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
}

.hive-status.online {
    background: #D1FAE5;
    color: #065F46;
}

.hive-status.offline {
    background: var(--gray-200);
    color: var(--gray-600);
}

.hive-sensors {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sensor {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sensor-icon {
    font-size: 1rem;
}

.sensor-value {
    font-weight: 600;
    color: var(--gray-700);
}

.hive-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.shared-badge {
    background: var(--secondary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-lg {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 1.25rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* === Forms === */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.4rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.input-with-btn {
    display: flex;
    gap: 0.5rem;
}

.input-with-btn input {
    flex: 1;
}

/* === Messages === */
.error-message {
    background: #FEE2E2;
    color: #991B1B;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.success-message {
    background: #D1FAE5;
    color: #065F46;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.info-box {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.info-box.success {
    background: #D1FAE5;
    color: #065F46;
}

.info-box.warning {
    background: #FEF3C7;
    color: #92400E;
}

.info-box.error {
    background: #FEE2E2;
    color: #991B1B;
}

/* === Loading === */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner.large {
    width: 40px;
    height: 40px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Toast === */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--gray-800);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

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

/* === Login Page === */
.login-page {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.login-header .logo {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.login-header h1 {
    font-size: 2rem;
    color: var(--gray-800);
}

.login-header .subtitle {
    color: var(--gray-600);
}

.login-content {
    padding: 2rem;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.feature-icon {
    font-size: 1.25rem;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: var(--gray-500);
    font-size: 0.85rem;
}

#google-signin-container {
    display: flex;
    justify-content: center;
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--gray-600);
}

.login-footer {
    text-align: center;
    padding: 1rem 2rem 2rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* === Hive Detail Page === */
.status-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background: #D1FAE5;
}

.status-banner.offline {
    background: var(--gray-200);
}

.status-online {
    color: var(--success);
}

.status-offline {
    color: var(--gray-500);
}

#last-update {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.current-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.value-icon {
    font-size: 2rem;
}

.value-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.value-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
}

.value-unit {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.period-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.period-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover {
    border-color: var(--primary);
}

.period-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.charts-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.chart-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.chart-card canvas {
    height: 200px !important;
}

.stats-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stats-container h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.map-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.map-container h3 {
    margin-bottom: 1rem;
}

.events-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.events-container h3 {
    margin-bottom: 1rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--warning);
}

.event-item.critical {
    border-left-color: var(--danger);
    background: #FEF2F2;
}

.event-icon {
    font-size: 1.25rem;
}

.event-content {
    flex: 1;
}

.event-content strong {
    display: block;
    font-size: 0.9rem;
}

.event-content small {
    color: var(--gray-500);
}

/* === Settings Page === */
.settings-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.settings-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-info strong {
    display: block;
    font-size: 1.1rem;
}

.profile-info small {
    color: var(--gray-500);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info strong {
    display: block;
}

.setting-info small {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Switch Toggle */
.switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    border-radius: 28px;
    transition: 0.3s;
}

.slider::before {
    position: absolute;
    content: '';
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background: var(--primary);
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

.about-info {
    color: var(--gray-600);
}

.about-info p {
    margin-bottom: 0.5rem;
}

/* === Share Page === */
.share-page {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.share-container {
    width: 100%;
    max-width: 450px;
}

.share-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.share-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.share-header .logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.share-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.invite-icon, .error-icon, .success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.share-content h2 {
    margin-bottom: 0.5rem;
}

.share-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.invite-details {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.25rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.invite-hive {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.invite-permission {
    font-size: 0.9rem;
}

.permission.edit {
    color: var(--success);
}

.permission.read {
    color: var(--gray-600);
}

.auth-prompt {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Shares list */
.shares-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.share-info strong {
    display: block;
}

.share-info small {
    color: var(--gray-500);
}

/* Alerts list */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--warning);
}

.alert-item.temp_high, .alert-item.temp_low {
    border-left-color: var(--danger);
}

.alert-item.offline {
    border-left-color: var(--gray-500);
}

.alert-item.battery_low {
    border-left-color: var(--warning);
}

.alert-content strong {
    display: block;
}

.alert-content small {
    color: var(--gray-500);
}

/* === Danger Zone === */
.danger-zone {
    padding-top: 1rem;
}

.danger-zone h4 {
    color: var(--danger);
    margin-bottom: 0.75rem;
}

/* === Push Devices === */
.push-devices {
    margin-top: 1.5rem;
}

.push-devices h4 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.device-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.device-info {
    font-size: 0.9rem;
}

/* === Geofence Status === */
.geofence-status {
    margin-bottom: 1rem;
}

.geofence-main-status {
    margin-bottom: 1rem;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge.status-inside {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.status-outside {
    background: #FEE2E2;
    color: #991B1B;
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Geofence map in settings */
#geofence-map {
    border: 1px solid var(--gray-300);
}

/* === Responsive === */
@media (max-width: 640px) {
    .header {
        padding: 0.75rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .hives-grid {
        grid-template-columns: 1fr;
    }
    
    .current-values {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-height: 95vh;
    }
}
