/* app/static/styles.css */
body {
  font-family: 'IBM Plex Mono', monospace;
  background-color: #cfd7e8;
  color: #25262b;
  margin: 40px auto;
  max-width: 960px;
  line-height: 1.7;
}

h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #293745;
}

form {
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

label {
  display: block;
  margin: 20px 0 6px;
  font-weight: 600;
  color: #34495e;
}

label .hint {
  color: #999;
  font-weight: normal;
  font-size: 90%;
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

input[type="text"],
input[type="file"],
input[type="email"],
input[type="password"],
textarea {
  width: calc(100% - 30px);
  margin-right: 14px;
  padding: 12px 16px;
  border: 1px solid #dfe6e9;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2980b9;
  background-color: #f2edfa;
}

textarea {
  resize: vertical;
  font-family: 'IBM Plex Mono';
}

ul {
  margin: 0 0 10px;
  padding-left: 22px;
}

ul li {
  margin-bottom: 4px;
}

small {
  font-size: 13px;
  color: #7f8c8d;
}

.primary-btn {
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 25px;
  background-color: #6e43c4;
  color: white;
  border: none;
  padding: 16px 15px;
  font-size: 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.primary-btn .emoji {
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.primary-btn .text {
  display: flex;
  align-items: center;
}
.primary-btn:hover {
  background-color: #361a6e;
}

.cancel-btn {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.cancel-btn:hover {
  background-color: #f1b0b7;
}

.secondary-btn-out,
.secondary-btn {
  font-family: 'IBM Plex Mono', monospace;
  padding: 20px 25px;
  font-size: 27px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  border: 1px solid #ccc;
  background: #f5f5f5;
}

.secondary-btn-out:hover,
.secondary-btn:hover {
  background-color: #361a6e;
  color: #f6f5f7;
  border-color: #361a6e;
}

.secondary-btn-out{ 
  border: 2px solid #ccc;
  text-decoration: none; 
  font-size: 17px; 
  padding: 8px 16px;
}


.button-with-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.button-description {
  font-family: 'IBM Plex Mono', monospace;
  color: #34495e;
  font-weight: 600;
  font-size: 16px;
  margin-top: 10px;
}

#status {
  margin: 30px auto;
  font-weight: 600;
  text-align: center;
  font-size: 16px;
}

.preview-table {
  border-collapse: collapse;
  margin-top: none;
  width: 100%;
  font-size: 14px;
}

.preview-table th,
.preview-table td {
  border: 1px solid #dee2e6;
  padding: 5px 14px;
  text-align: left;
  max-width: 120px; /* Adjust width as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-table th {
  background-color: #f8f9fa;
  color: #2d3436;
}

#preview {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 10px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: none;
  padding: 10px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2d89ff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

.info-text {
  font-size: 14px;
  color: #666;
  margin-top: -10px;
  margin-bottom: 10px;
  line-height: 1.5;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.top-right {
  position: absolute;
  top: 0px;
  right: 20px;
  z-index: 1000;
  margin-top: 20px;
}

.template-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.template-tab {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.template-tab.active {
  background: #361a6e;
  color: white;
  border-color: #361a6e;
}
.template-tab:hover {
  background: #9277c9;
}