.sidebar{width:250px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;height:100vh;position:fixed;left:0;top:0;overflow-y:auto;box-shadow:2px 0 10px #0000001a}.sidebar-header{padding:20px;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-title{font-size:20px;font-weight:700;margin-bottom:4px}.sidebar-subtitle{font-size:12px;opacity:.8}.sidebar-nav{padding:20px 0}.nav-item{display:block;padding:12px 20px;color:#fff;text-decoration:none;transition:all .3s ease;border-left:3px solid transparent}.nav-item:hover{background-color:#ffffff1a;border-left-color:#fff}.nav-item.active{background-color:#fff3;border-left-color:#fff}.nav-item-icon{margin-right:12px;width:18px;height:18px}.nav-item-text{font-weight:500}.sidebar-footer{padding:20px;border-top:1px solid rgba(255,255,255,.1);text-align:center}@media (max-width: 768px){.sidebar{width:200px}.sidebar-title{font-size:18px}.nav-item{padding:10px 15px}}.dashboard{padding:2rem;background:linear-gradient(135deg,#f8fafc,#e2e8f0);min-height:100vh}.dashboard-header{margin-bottom:2rem}.dashboard-title{font-size:2.5rem;font-weight:700;color:#1e293b;margin-bottom:.5rem;text-shadow:0 2px 4px rgba(0,0,0,.1)}.dashboard-subtitle{font-size:1.1rem;color:#64748b;font-weight:400}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:1px solid rgba(255,255,255,.8);transition:all .3s ease;position:relative;overflow:hidden}.stat-card:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg,#3b82f6,#1d4ed8)}.stat-card.success:before{background:linear-gradient(180deg,#10b981,#059669)}.stat-card.warning:before{background:linear-gradient(180deg,#f59e0b,#d97706)}.stat-card.info:before{background:linear-gradient(180deg,#06b6d4,#0891b2)}.stat-card:hover{transform:translateY(-4px);box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.stat-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.stat-title{font-size:.875rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.stat-icon{width:2rem;height:2rem;color:#3b82f6}.stat-card.success .stat-icon{color:#10b981}.stat-card.warning .stat-icon{color:#f59e0b}.stat-card.info .stat-icon{color:#06b6d4}.stat-value{font-size:2.5rem;font-weight:700;color:#1e293b;margin-bottom:.5rem;line-height:1}.stat-change{font-size:.875rem;color:#10b981;font-weight:500}.alerts-section{background:#fff;border-radius:16px;box-shadow:0 4px 6px -1px #0000001a;margin-bottom:2rem;overflow:hidden}.alerts-header{padding:1.5rem;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#fef2f2,#fee2e2)}.alerts-title{font-size:1.25rem;font-weight:600;color:#dc2626;display:flex;align-items:center;gap:.5rem}.alerts-content{padding:1.5rem}.alerts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.alert-item{display:flex;align-items:center;padding:1rem;border-radius:12px;gap:.75rem}.alert-item.low-fuel{background:linear-gradient(135deg,#fef2f2,#fee2e2);border:1px solid #fecaca}.alert-item.high-temp{background:linear-gradient(135deg,#fff7ed,#fed7aa);border:1px solid #fed7aa}.alert-item.maintenance{background:linear-gradient(135deg,#fefce8,#fef3c7);border:1px solid #fde68a}.alert-icon{width:1.25rem;height:1.25rem;flex-shrink:0}.alert-item.low-fuel .alert-icon{color:#dc2626}.alert-item.high-temp .alert-icon{color:#ea580c}.alert-item.maintenance .alert-icon{color:#d97706}.alert-info h4{font-size:.875rem;font-weight:600;color:#374151;margin-bottom:.25rem}.alert-info p{font-size:.75rem;color:#6b7280}.charts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:1.5rem;margin-bottom:2rem}.chart-card{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a;border:1px solid rgba(255,255,255,.8)}.chart-title{font-size:1.25rem;font-weight:600;color:#1e293b;margin-bottom:1.5rem;text-align:center}.chart-container{height:300px;position:relative}.sensor-readings{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000001a}.sensor-readings h3{font-size:1.25rem;font-weight:600;color:#1e293b;margin-bottom:1rem}.sensor-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8fafc;border-radius:12px;margin-bottom:.75rem;transition:all .2s ease}.sensor-item:hover{background:#f1f5f9;transform:translate(4px)}.sensor-info h4{font-size:.875rem;font-weight:600;color:#1e293b;margin-bottom:.25rem}.sensor-info p{font-size:.75rem;color:#64748b}.sensor-value{text-align:right}.sensor-value .value{font-size:1rem;font-weight:700;color:#1e293b}.sensor-value .time{font-size:.75rem;color:#64748b;margin-top:.25rem}.machinery-table{background:#fff;border-radius:16px;box-shadow:0 4px 6px -1px #0000001a;overflow:hidden;margin-bottom:2rem}.machinery-header{padding:1.5rem;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#f8fafc,#e2e8f0)}.machinery-header h3{font-size:1.25rem;font-weight:600;color:#1e293b}.machinery-table table{width:100%;border-collapse:collapse}.machinery-table th{background:#f8fafc;padding:1rem 1.5rem;text-align:left;font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #e2e8f0}.machinery-table td{padding:1rem 1.5rem;border-bottom:1px solid #f1f5f9;font-size:.875rem;color:#374151}.machinery-table tr:hover{background:#f8fafc}.status-badge{display:inline-flex;align-items:center;padding:.25rem .75rem;border-radius:9999px;font-size:.75rem;font-weight:600;text-transform:capitalize}.status-badge.active{background:#dcfce7;color:#166534}.status-badge.idle{background:#fef3c7;color:#92400e}.status-badge.maintenance{background:#fee2e2;color:#991b1b}.recent-data-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:1.5rem;margin-bottom:2rem}.recent-section{background:#fff;border-radius:16px;box-shadow:0 4px 6px -1px #0000001a;overflow:hidden}.recent-header{padding:1.5rem;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#f8fafc,#e2e8f0)}.recent-header h3{font-size:1.25rem;font-weight:600;color:#1e293b}.recent-content{padding:1.5rem}.recent-item{padding:1rem;border-left:4px solid #10b981;margin-bottom:1rem;background:#f8fafc;border-radius:0 12px 12px 0;transition:all .2s ease}.recent-item:hover{background:#f1f5f9;transform:translate(4px)}.recent-item.activity{border-left-color:#3b82f6}.recent-item h4{font-size:.875rem;font-weight:600;color:#1e293b;margin-bottom:.5rem}.recent-item p{font-size:.75rem;color:#64748b;margin-bottom:.5rem;line-height:1.4}.recent-meta{display:flex;gap:1rem;font-size:.75rem;color:#6b7280}.loading{display:flex;justify-content:center;align-items:center;min-height:400px}.spinner{width:40px;height:40px;border:4px solid #e2e8f0;border-top:4px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}@media (max-width: 768px){.dashboard{padding:1rem}.stats-grid,.charts-grid,.recent-data-grid{grid-template-columns:1fr}.dashboard-title,.stat-value{font-size:2rem}}.machinery-page{padding:20px}.machinery-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.machinery-title{font-size:28px;font-weight:700;color:#111827;margin-bottom:8px}.machinery-subtitle{color:#6b7280;font-size:16px}.add-machinery-btn{display:flex;align-items:center;padding:12px 16px;background-color:#10b981;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s ease}.add-machinery-btn:hover{background-color:#059669}.add-machinery-btn svg{margin-right:8px;width:20px;height:20px}.status-filter{padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background-color:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.status-filter:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.machinery-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-bottom:30px}@media (min-width: 768px){.machinery-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width: 1024px){.machinery-grid{grid-template-columns:repeat(3,1fr)}}.machinery-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;transition:box-shadow .2s ease}.machinery-card:hover{box-shadow:0 4px 6px #0000001a}.machinery-card-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.machinery-card-title{font-size:18px;font-weight:600;color:#111827;margin-bottom:4px}.machinery-card-type{font-size:14px;color:#6b7280;text-transform:capitalize}.machinery-card-actions{display:flex;gap:8px}.action-btn{padding:8px;color:#9ca3af;background:none;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease}.action-btn.maintenance:hover{color:#ea580c}.machinery-card-content{display:flex;flex-direction:column;gap:12px}.machinery-info-item{display:flex;align-items:center;font-size:14px}.machinery-info-icon{width:16px;height:16px;color:#9ca3af;margin-right:8px}.machinery-info-text{color:#111827}.machinery-status-section{display:flex;align-items:center;justify-content:space-between}.status-badge{padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500}.status-badge.active{background-color:#d1fae5;color:#065f46}.status-badge.idle{background-color:#fef3c7;color:#92400e}.status-badge.maintenance{background-color:#fee2e2;color:#991b1b}.status-badge.unknown{background-color:#f3f4f6;color:#6b7280}.machinery-actions{display:flex;gap:8px}@media (max-width: 768px){.machinery-page{padding:15px}.machinery-header{flex-direction:column;align-items:flex-start;gap:16px}.machinery-grid{grid-template-columns:1fr}}.sensors-page{padding:20px}.sensors-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.sensors-title{font-size:28px;font-weight:700;color:#111827;margin-bottom:8px}.sensors-subtitle{color:#6b7280;font-size:16px}.add-sensor-btn{display:flex;align-items:center;padding:12px 16px;background-color:#10b981;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s ease}.add-sensor-btn:hover{background-color:#059669}.add-sensor-btn svg{margin-right:8px;width:20px;height:20px}.simulate-btn{display:flex;align-items:center;padding:12px 16px;background-color:#3b82f6;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s ease;margin-left:12px}.simulate-btn:hover{background-color:#2563eb}.simulate-btn svg{margin-right:8px;width:20px;height:20px}.header-actions{display:flex;align-items:center}.charts-section{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:30px}@media (max-width: 768px){.charts-section{grid-template-columns:1fr}}.chart-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a}.sensors-table{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a;margin-bottom:20px}.table-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.table-title{font-size:18px;font-weight:600;color:#111827}.table th{background-color:#f9fafb;font-weight:600;color:#374151;font-size:14px}.table td{font-size:14px;color:#111827}.sensor-type{padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500}.sensor-type.temperature{background-color:#fee2e2;color:#991b1b}.sensor-type.humidity{background-color:#dbeafe;color:#1e40af}.sensor-type.pressure{background-color:#d1fae5;color:#065f46}.sensor-type.fuel{background-color:#fef3c7;color:#92400e}.sensor-value{font-weight:600;color:#111827}.sensor-timestamp{color:#6b7280;font-size:12px}.action-buttons{display:flex;gap:8px}.modal-content{background:#fff;border-radius:12px;padding:24px;max-width:500px;width:90%;max-height:80vh;overflow-y:auto}@media (max-width: 768px){.sensors-page{padding:15px}.sensors-header{flex-direction:column;align-items:flex-start;gap:16px}.header-actions{width:100%;flex-direction:column;gap:12px}.simulate-btn{margin-left:0}.charts-section{grid-template-columns:1fr}}.farm-logs-page{padding:20px}.farm-logs-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.farm-logs-title{font-size:28px;font-weight:700;color:#111827;margin-bottom:8px}.farm-logs-subtitle{color:#6b7280;font-size:16px}.add-log-btn{display:flex;align-items:center;padding:12px 16px;background-color:#10b981;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s ease}.add-log-btn:hover{background-color:#059669}.add-log-btn svg{margin-right:8px;width:20px;height:20px}.location-filter{padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background-color:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.location-filter:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.logs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:20px;margin-bottom:20px}.log-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a;border-left:4px solid #10b981;transition:transform .2s ease,box-shadow .2s ease}.log-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.log-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.log-card-title{font-size:18px;font-weight:600;color:#111827;margin-bottom:8px;line-height:1.4}.log-card-content{color:#6b7280;font-size:14px;line-height:1.6;margin-bottom:16px}.log-card-actions{display:flex;gap:8px}.action-btn{padding:6px;color:#9ca3af;background:none;border:none;border-radius:6px;cursor:pointer;transition:all .2s ease}.action-btn:hover{background-color:#f3f4f6}.action-btn.edit:hover{color:#2563eb}.action-btn.delete:hover{color:#dc2626}.log-meta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.log-meta-item{display:flex;align-items:center;font-size:12px;color:#6b7280}.log-meta-icon{width:14px;height:14px;margin-right:6px;color:#9ca3af}.log-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.log-tag{padding:4px 8px;background-color:#f3f4f6;color:#374151;border-radius:12px;font-size:12px;font-weight:500}.log-tag.important{background-color:#fee2e2;color:#991b1b}.log-tag.maintenance{background-color:#fef3c7;color:#92400e}.log-tag.harvest{background-color:#d1fae5;color:#065f46}.log-tag.planting{background-color:#dbeafe;color:#1e40af}@media (max-width: 768px){.farm-logs-page{padding:15px}.farm-logs-header{flex-direction:column;align-items:flex-start;gap:16px}.logs-grid{grid-template-columns:1fr}.log-card{padding:20px}.log-card-header{flex-direction:column;gap:12px}.log-card-actions{align-self:flex-end}}.farm-activities-page{padding:20px}.farm-activities-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.farm-activities-title{font-size:28px;font-weight:700;color:#111827;margin-bottom:8px}.farm-activities-subtitle{color:#6b7280;font-size:16px}.add-activity-btn{display:flex;align-items:center;padding:12px 16px;background-color:#10b981;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s ease}.add-activity-btn:hover{background-color:#059669}.add-activity-btn svg{margin-right:8px;width:20px;height:20px}.filters-section{display:flex;flex-direction:column;gap:16px;margin-bottom:30px}@media (min-width: 640px){.filters-section{flex-direction:row}}.search-container{position:relative;flex:1}.search-input{width:100%;padding:12px 16px 12px 40px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:border-color .2s ease,box-shadow .2s ease}.search-input:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9ca3af;width:20px;height:20px}.type-filter{padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background-color:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.type-filter:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.activities-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:20px;margin-bottom:20px}.activity-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a;border-left:4px solid #10b981;transition:transform .2s ease,box-shadow .2s ease}.activity-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.activity-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.activity-card-title{font-size:18px;font-weight:600;color:#111827;margin-bottom:8px;line-height:1.4}.activity-card-description{color:#6b7280;font-size:14px;line-height:1.6;margin-bottom:16px}.activity-meta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.activity-meta-item{display:flex;align-items:center;font-size:12px;color:#6b7280}.activity-meta-icon{width:14px;height:14px;margin-right:6px;color:#9ca3af}.activity-type{padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500}.activity-type.harvesting{background-color:#d1fae5;color:#065f46}.activity-type.planting{background-color:#dbeafe;color:#1e40af}.activity-type.maintenance{background-color:#fef3c7;color:#92400e}.activity-type.irrigation{background-color:#e0e7ff;color:#3730a3}.activity-type.fertilization{background-color:#fce7f3;color:#be185d}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:24px;max-width:600px;width:90%;max-height:80vh;overflow-y:auto}.modal-close{background:none;border:none;font-size:20px;cursor:pointer;color:#6b7280;padding:4px;border-radius:4px;transition:background-color .2s ease}.modal-close:hover{background-color:#f3f4f6;color:#374151}.form-label{display:block;margin-bottom:4px;font-weight:500;color:#374151;font-size:14px}.form-input{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;transition:border-color .2s ease,box-shadow .2s ease}.form-input:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.form-textarea{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;min-height:100px;resize:vertical;transition:border-color .2s ease,box-shadow .2s ease}.form-textarea:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.form-select{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;background-color:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.form-select:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.btn{padding:8px 16px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-primary{background-color:#10b981;color:#fff}.btn-primary:hover{background-color:#059669}@media (max-width: 768px){.farm-activities-page{padding:15px}.farm-activities-header{flex-direction:column;align-items:flex-start;gap:16px}.activities-grid{grid-template-columns:1fr}.activity-card{padding:20px}.activity-card-header{flex-direction:column;gap:12px}}.analytics-page{padding:20px}.analytics-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.analytics-title{font-size:28px;font-weight:700;color:#111827;margin-bottom:8px}.analytics-subtitle{color:#6b7280;font-size:16px}.refresh-btn{display:flex;align-items:center;padding:12px 16px;background-color:#10b981;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:background-color .2s ease}.refresh-btn:hover{background-color:#059669}.refresh-btn svg{margin-right:8px;width:20px;height:20px}.overview-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:30px}.overview-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;transition:transform .2s ease,box-shadow .2s ease}.overview-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.overview-card-content{display:flex;align-items:center}.overview-card-icon{padding:12px;border-radius:8px;margin-right:16px}.overview-card-icon.blue{background-color:#dbeafe}.overview-card-icon.blue svg{color:#2563eb}.overview-card-icon.green{background-color:#d1fae5}.overview-card-icon.green svg{color:#10b981}.overview-card-icon.purple{background-color:#e9d5ff}.overview-card-icon.purple svg{color:#8b5cf6}.overview-card-icon.orange{background-color:#fed7aa}.overview-card-icon.orange svg{color:#f59e0b}.overview-card-info{flex:1}.overview-card-label{font-size:14px;font-weight:500;color:#6b7280;margin-bottom:4px}.overview-card-value{font-size:24px;font-weight:700;color:#111827}.charts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(500px,1fr));gap:20px;margin-bottom:30px}.chart-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb}.chart-title{font-size:18px;font-weight:600;color:#111827;margin-bottom:20px}.chart-container{height:256px}.alerts-section{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;margin-bottom:30px}.alerts-header{padding:24px;border-bottom:1px solid #e5e7eb}.alerts-title{font-size:18px;font-weight:600;color:#111827}.alerts-content{padding:24px}.alerts-list{display:flex;flex-direction:column;gap:16px}.alert-item{display:flex;align-items:flex-start;padding:16px;background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px}.alert-icon{width:20px;height:20px;color:#dc2626;margin-right:12px;margin-top:2px;flex-shrink:0}.alert-content{flex:1}.alert-type{font-size:14px;font-weight:500;color:#991b1b;margin-bottom:4px}.alert-message{font-size:14px;color:#b91c1c;margin-bottom:8px}.alert-timestamp{font-size:12px;color:#dc2626}.no-alerts{text-align:center;padding:32px}.no-alerts-icon{width:48px;height:48px;color:#10b981;margin:0 auto 16px}.no-alerts-text{color:#6b7280}.performance-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}.metric-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb}.metric-title{font-size:18px;font-weight:600;color:#111827;margin-bottom:20px}.metric-list{display:flex;flex-direction:column;gap:12px}.metric-item{display:flex;justify-content:space-between;align-items:center}.metric-label{font-size:14px;color:#6b7280}.metric-value{font-size:14px;font-weight:500;color:#111827}.loading{display:flex;justify-content:center;align-items:center;height:100%}.spinner{border:3px solid #f3f4f6;border-top:3px solid #10b981;border-radius:50%;width:48px;height:48px;animation:spin 1s linear infinite}@media (max-width: 768px){.analytics-page{padding:15px}.analytics-header{flex-direction:column;align-items:flex-start;gap:16px}.overview-cards,.charts-grid,.performance-metrics{grid-template-columns:1fr}.chart-container{height:200px}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f5}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.container{max-width:1200px;margin:0 auto;padding:0 20px}.btn{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;transition:all .2s ease}.btn-primary{background-color:#3b82f6;color:#fff}.btn-primary:hover{background-color:#2563eb}.btn-secondary{background-color:#6b7280;color:#fff}.btn-secondary:hover{background-color:#4b5563}.btn-danger{background-color:#ef4444;color:#fff}.btn-danger:hover{background-color:#dc2626}.card{background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:20px;margin-bottom:20px}.form-group{margin-bottom:16px}.form-label{display:block;margin-bottom:4px;font-weight:500;color:#374151}.form-input{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:4px;font-size:14px}.form-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.modal{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:8px;padding:24px;max-width:500px;width:90%;max-height:80vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-title{font-size:18px;font-weight:600;color:#111827}.modal-close{background:none;border:none;font-size:20px;cursor:pointer;color:#6b7280}.modal-close:hover{color:#374151}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;text-align:left;border-bottom:1px solid #e5e7eb}.table th{background-color:#f9fafb;font-weight:600;color:#374151}.table tr:hover{background-color:#f9fafb}.badge{padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500}.badge-success{background-color:#d1fae5;color:#065f46}.badge-warning{background-color:#fef3c7;color:#92400e}.badge-danger{background-color:#fee2e2;color:#991b1b}.badge-info{background-color:#dbeafe;color:#1e40af}.loading{display:flex;justify-content:center;align-items:center;padding:40px}.spinner{border:3px solid #f3f3f3;border-top:3px solid #3b82f6;border-radius:50%;width:30px;height:30px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.app-layout{display:flex;height:100vh;background-color:#f5f5f5}.main-content{flex:1;margin-left:250px;overflow:auto;padding:20px}@media (max-width: 768px){.main-content{margin-left:200px;padding:15px}}
