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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #2d2d2d;
  min-height: 100vh;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Login Screen */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #1c2344;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  width: 100%;
  background: #182145;
  color: white;
  font-weight: 600;
}

.btn-primary:hover {
  background: #5568d3;
}

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

.btn-secondary:hover {
  background: #5a6268;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
}

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

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

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-info:hover {
  background: #138496;
}

.btn-small {
  padding: 5px 10px;
  font-size: 12px;
}

.error-message {
  color: #dc3545;
  margin-top: 10px;
  text-align: center;
}

/* Dashboard */
.dashboard-content {
  max-width: 60%;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  background: #1a1a1a;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-user span {
  color: #ccc;
  font-weight: 500;
}

/* Notification Area */
.notification-area {
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.notification-header h3 {
  color: #333;
}

.notification-buttons {
  display: flex;
  gap: 8px;
}

.notification-list {
  max-height: 200px;
  overflow-y: auto;
}

.notification-item {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease-out;
}

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

.notification-item.success {
  background: #d4edda;
  border-left: 4px solid #28a745;
}

.notification-item.error {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
}

.notification-item.info {
  background: #d1ecf1;
  border-left: 4px solid #17a2b8;
}

.notification-item.warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

.notification-time {
  font-size: 12px;
  color: #666;
}

/* Container Panel - Two Column Layout */
.container-panel {
  margin: 20px 0;
  display: flex;
  gap: 20px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container-list-column {
  flex: 1;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.container-list-column h3,
.container-actions-column h3 {
  color: #333;
  margin-bottom: 15px;
}

.container-actions-column {
  flex: 1;
  padding-left: 20px;
}

#containers-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.container-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.container-item:hover {
  background: #f5f5f5;
}

.container-item.selected {
  background: #e3f2fd;
  border-color: #2196f3;
}

.container-item-name {
  font-weight: 500;
  color: #333;
}

.container-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.container-status.running {
  background: #d4edda;
  color: #28a745;
}

.container-status.stopped {
  background: #f8d7da;
  color: #dc3545;
}

.container-status.error {
  background: #fff3cd;
  color: #856404;
}

#selected-container-name {
  font-size: 18px;
  font-weight: 600;
  color: #666;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

#selected-container-name.active {
  color: #333;
  background: #e3f2fd;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.action-buttons button {
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
}

.action-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Output Panel */
.output-panel {
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.output-header h3 {
  color: #333;
}

#output-content {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 15px;
  border-radius: 5px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
}

#output-content:empty::before {
  content: 'Command output will appear here...';
  color: #777;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .container-grid {
    margin: 10px;
  }
  
  #containers-list {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    flex-direction: column;
    gap: 10px;
  }
}
