body {
    font-family: 'Courier New', monospace;
    background: #f8f8f8;
    margin: 2rem;
    color: #333;
    line-height: 1.4;
}

.header {
    border: 2px solid #666;
    padding: 1rem;
    background: #fff;
    margin-bottom: 1rem;
}

.header h2 {
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
}

.logo {
    display: block;
    margin: 10px;
    width: 250px;
}

.refresh-controls {
    margin-top: 10px;
    text-align: right;
}

.auth-container {
    border: 2px solid #999;
    padding: 2rem;
    background: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-container input[type="password"] {
    font-family: 'Courier New', monospace;
    padding: 8px 12px;
    width: 300px;
    font-size: 1rem;
    margin: 10px;
    border: 2px solid #999;
    background: #fff;
    color: #333;
}

.auth-container button {
    background: #e8e8e8;
    color: #333;
    border: 2px solid #999;
    padding: 8px 16px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.auth-container button:hover {
    background: #ddd;
    border-color: #666;
}

.downloads {
    border: 1px solid #999;
    padding: 1rem;
    background: #fff;
    margin-bottom: 1rem;
}

.download-btn {
    background: #e8e8e8;
    color: #333;
    border: 2px solid #999;
    padding: 8px 16px;
    margin: 0 5px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background: #ddd;
    border-color: #666;
    text-decoration: none;
}

.hidden {
    display: none;
}

.error {
    color: #cc0000;
    margin: 10px 0;
}

.search-container, .table-container {
    border: 1px solid #999;
    padding: 1rem;
    background: #fff;
    margin-bottom: 1rem;
}

input[type="text"] {
    font-family: 'Courier New', monospace;
    padding: 8px 12px;
    width: 400px;
    font-size: 1rem;
    margin-bottom: 20px;
    border: 2px solid #999;
    background: #fff;
    color: #333;
}

input[type="text"]:focus {
    outline: none;
    border-color: #666;
    background: #f9f9f9;
}

.tag {
    background: #e8e8e8;
    color: #333;
    border: 1px solid #999;
    padding: 2px 6px;
    margin: 0 2px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.tag:hover {
    background: #ddd;
    border-color: #666;
}

.tag.active {
    background: #666;
    color: #fff;
}

.clear-tags {
    background: #e8e8e8;
    color: #333;
    border: 2px solid #999;
    padding: 4px 8px;
    margin-left: 10px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.clear-tags:hover {
    background: #ddd;
    border-color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 2px solid #666;
    font-family: 'Courier New', monospace;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #999;
    vertical-align: top;
}

th {
    background: #e8e8e8;
    color: #333;
    cursor: pointer;
    font-weight: bold;
}

th:hover {
    background: #ddd;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr:hover {
    background: #f0f0f0;
}

.summary {
    font-size: 0.9rem;
    color: #555;
}

.copy-btn {
    background: #e8e8e8;
    color: #333;
    border: 2px solid #999;
    padding: 4px 8px;
    margin-left: 10px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    width: 60px;
}

.copy-btn:hover {
    background: #ddd;
    border-color: #666;
}

.copy-btn:active {
    background: #ccc;
}

a {
    color: #333;
    text-decoration: underline;
}

a:hover {
    color: #000;
}

/* Add this CSS to your existing styles */

.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;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
  margin: 0;
  color: #333;
}

.close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}

.close:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
  width: 85%;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group input[type="password"]:focus {
  border-color: #007bff;
  outline: none;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
}

.secret-requirements {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: small;
}

.secret-requirements h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.secret-requirements ul {
  margin: 0;
  padding-left: 20px;
}

.secret-requirements li {
  margin-bottom: 5px;
  color: #666;
}

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

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}

.progress-section {
  text-align: center;
}

.progress-bar-container {
  margin: 20px 0;
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #333;
  font-size: 12px;
}

.phase-status {
  text-align: left;
  margin: 20px 0;
}

.phase-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.phase-icon {
  margin-right: 10px;
  font-size: 16px;
}

.phase-item.active .phase-icon {
  animation: pulse 1s infinite;
}

.phase-item.complete .phase-icon::before {
  content: "✅";
}

.phase-item.error .phase-icon::before {
  content: "❌";
}

.phase-text {
  color: #666;
}

.phase-item.active .phase-text {
  color: #007bff;
  font-weight: bold;
}

.phase-item.complete .phase-text {
  color: #28a745;
}

.phase-item.error .phase-text {
  color: #dc3545;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.migration-details {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
}

.migration-log {
  font-family: monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

.migration-result {
  padding: 20px;
  border-radius: 4px;
  margin-top: 20px;
}

.migration-result.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.migration-result.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}