/* General Layout */
h1 {
  text-align: center;
  margin: 40px 0 40px 0;
  padding-top: 30px;  /* Add padding to account for logo */
}

h2 {
  padding-top: 20px;  /* Reduced from 30px */
  margin-left: 20px;
  margin-bottom: 10px;  /* Add this to control space below headers */
}

/* Input Elements */
.input-container {
  margin: 20px;
}

label {
  display: inline-block;
  width: 100px;
}

input {
  padding: 5px;
  width: 50px;
  background-color: var(--input-bg);
  color: var(--text-color);
  border: 1px solid var(--input-border);
  border-radius: 4px;
}

.error {
  color: #ff6b6b;
  font-size: 12px;
  display: none;
}

/* Buttons and Sections */
.import-section, .export-section {
    margin: 0px;
    padding: 5px 5px 2px 5px;  /* Reduced bottom padding */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 5px;  /* Add this to control space between sections */
}

.import-button, .export-button {
    padding: 8px 8px;
    margin: 0 0 5px 15px;  /* Added bottom margin */
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    cursor: pointer;
    font-size: 16px;
}

.import-button {
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.import-button:hover {
  background-color: var(--button-hover);
}

.selected-file {
    margin-left: 10px;
    padding: 4px 8px;
    font-style: italic;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    border-radius: 4px;
    display: inline-block;
    max-width: 700px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Multi-file display */
.multi-file-list {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
    background-color: var(--bg-secondary);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 5px;
    font-size: 12px;
    margin-bottom: 2px;
}

.file-item:hover {
    background-color: var(--bg-secondary);
}

/* Style for file count indicator */
.file-count {
    font-weight: bold;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

/* Logo */
.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
}

.logo-image {
  height: 60px;
  width: auto;
  display: block;
}

/* Status Indicators */
.import-status {
  display: inline-block;
  margin-left: 20px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
}

.import-status.success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.import-status.error {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid #dc3545;
}

/* Mission Name Styles */
#missionName {
  width: 300px;
}

.input-container label[for="missionName"] {
  width: 140px;
}

#missionNameError {
  color: #ff6b6b;
  font-size: 12px;
  display: none;
  margin-left: 10px;
}

/* Modal Dialog */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: var(--bg-color);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  width: 60%;
  max-width: 500px;
}

.close {
  color: var(--text-color);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #999;
}

.modal-input {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  box-sizing: border-box;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background-color: var(--input-bg);
  color: var(--text-color);
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.modal-button {
  padding: 8px 16px;
  margin-left: 10px;
  border-radius: 4px;
  background-color: var(--input-bg);
  color: var(--text-color);
  border: 1px solid var(--input-border);
  cursor: pointer;
}

/* Auth Styles */
.user-info-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
}

.user-info-container span {
  margin-right: 15px;
}

.user-info-container button {
  background-color: #4e4e4e;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
}

.user-info-container button:hover {
  background-color: #333;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--bg-color); /* Match your theme */
}

.login-container.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.login-box {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-logo {
  width: 100px;
  margin-bottom: 20px;
}

.login-button {
  background-color: #3c43a1;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-button:hover {
  background-color: #2a307a;
}

/* Add to your CSS file if not already there */
.login-error {
  color: #d9534f;
  background-color: rgba(217, 83, 79, 0.1);
  border: 1px solid rgba(217, 83, 79, 0.2);
  padding: 10px;
  border-radius: 4px;
  margin: 15px 0;
  font-size: 14px;
}

/* App container - hide by default */
.app-container {
  display: none; /* Change from opacity: 0 to completely hide it */
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.app-container.visible {
  display: block; /* Show the container */
  opacity: 1;
}

/* Add to your CSS file */
.electron-mode .login-container {
  display: none;
}

.electron-mode .user-info-container {
  background-color: #2d3e50; /* Different color for Electron version */
}

.electron-mode #logoutButton {
  display: none;
}

/* Add to your CSS file */
.file-hint {
  font-size: 12px;
  color: #888;
  margin-left: 10px;
  font-style: italic;
}

/* Add to your CSS file */
.button-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.clear-button {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.clear-button:hover {
  background-color: rgba(255, 0, 0, 0.1);
  border-color: #d9534f;
  color: #d9534f;
}

.clear-button:active {
  background-color: rgba(255, 0, 0, 0.2);
  transform: scale(0.97);
}

.clear-files-button {
  background-color: transparent;
  color: #d9534f;
  border: 1px solid #d9534f;
  padding: 3px 8px;
  margin-top: 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: block;
  transition: background-color 0.2s;
}

.clear-files-button:hover {
  background-color: rgba(255, 0, 0, 0.1);
}

/* Add to your CSS file */
.toggle-file-list {
  background: none;
  border: none;
  color: var(--link-color);
  cursor: pointer;
  padding: 2px 5px;
  margin-left: 5px;
  font-size: 12px;
}

.remove-file-button {
  background: none;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 16px;
  padding: 0 5px;
}

.remove-file-button:hover {
  background-color: rgba(255, 0, 0, 0.1);
  border-radius: 50%;
}