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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.header {
  background: #2c3e50;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
}

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

.platform-info {
  color: #bdc3c7;
  font-size: 14px;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-success {
  background: #27ae60;
  color: white;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-run {
  background: #f39c12;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
}

/* Main content */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: white;
  border-right: 1px solid #e0e0e0;
  padding: 20px;
  overflow-y: auto;
}

.sidebar h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.test-categories {
  margin-bottom: 30px;
}

.filter-item {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
}

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

.test-status-summary {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.status-counts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.count-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.count {
  font-weight: bold;
  font-size: 18px;
}

.label {
  color: #7f8c8d;
  font-size: 14px;
}

/* Test area */
.test-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.test-area h2 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #2c3e50;
}

.section-description {
  color: #7f8c8d;
  margin-bottom: 20px;
  font-size: 14px;
}

.tests-container {
  margin-bottom: 40px;
}

/* Test cards */
.test-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-left: 4px solid #e0e0e0;
  transition: all 0.2s;
}

.test-card.auto {
  border-left-color: #3498db;
}

.test-card.manual {
  border-left-color: #f39c12;
  background: #fffbf0;
}

.test-card.hybrid {
  border-left-color: #9b59b6;
}

.test-card.passed {
  border-left-color: #27ae60;
  background: #f0fff4;
}

.test-card.failed {
  border-left-color: #e74c3c;
  background: #fef5f5;
}

.test-card.running {
  border-left-color: #f39c12;
  background: #fffef7;
}

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

.test-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.test-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #7f8c8d;
}

.test-badge {
  background: #ecf0f1;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.test-description {
  color: #5d6d7e;
  margin-bottom: 15px;
  line-height: 1.4;
}

.test-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.status-indicator {
  font-size: 16px;
}

.status-text {
  font-weight: 500;
}

.status-details {
  color: #7f8c8d;
  font-size: 14px;
}

/* Instructions for manual tests */
.test-instructions {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}

.test-instructions h4 {
  margin-bottom: 10px;
  color: #495057;
  font-size: 14px;
  font-weight: 600;
}

.test-instructions ol {
  margin-left: 20px;
}

.test-instructions li {
  margin-bottom: 5px;
  line-height: 1.4;
}

/* Test actions */
.test-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.manual-verify {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fff3cd;
  border: 1px dashed #ffc107;
  border-radius: 6px;
  margin-top: 15px;
}

.manual-verify-text {
  flex: 1;
  font-weight: 500;
  color: #856404;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes flash-success {
  0%, 100% { background-color: transparent; }
  50% { background-color: #d4f4dd; }
}

@keyframes flash-error {
  0%, 100% { background-color: transparent; }
  50% { background-color: #f8d7da; }
}

.flash-success {
  animation: flash-success 0.6s ease-in-out;
}

.flash-error {
  animation: flash-error 0.6s ease-in-out;
}

.pulse {
  animation: pulse 1s infinite;
}

/* Event log */
.event-log {
  height: 150px;
  background: #2c3e50;
  color: white;
  border-top: 1px solid #34495e;
}

.event-log h3 {
  padding: 10px 20px;
  font-size: 14px;
  color: #bdc3c7;
  background: #34495e;
}

.log-content {
  height: calc(150px - 35px);
  overflow-y: auto;
  padding: 10px 20px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 12px;
}

.log-entry {
  margin-bottom: 5px;
  line-height: 1.3;
}

.timestamp {
  color: #95a5a6;
  margin-right: 10px;
}

.log-success {
  color: #2ecc71;
}

.log-error {
  color: #e74c3c;
}

.log-info {
  color: #3498db;
}

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

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  max-height: 80vh;
  width: 90%;
  overflow: hidden;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #7f8c8d;
}

.modal-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
  }
}