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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background: #1a1a2e;
  min-height: 100vh;
  padding: 2rem;
  color: #e0e0e0;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.5rem;
  color: #667eea;
  font-weight: 600;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: #999;
}

input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #16213e;
  color: #e0e0e0;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #667eea;
}

textarea {
  resize: vertical;
  min-height: 200px;
}

small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #666;
}

.btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: #667eea;
  color: white;
}

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

.btn-secondary {
  background: transparent;
  color: #666;
  border: 1px solid #333;
}

.btn-secondary:hover {
  color: #999;
  border-color: #555;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
}

.form-actions .btn-primary {
  flex: 1;
}

.message {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  display: none;
}

.message.success {
  background: rgba(46, 125, 50, 0.15);
  color: #66bb6a;
  border: 1px solid rgba(46, 125, 50, 0.3);
  display: block;
}

.message.error {
  background: rgba(211, 47, 47, 0.15);
  color: #ef5350;
  border: 1px solid rgba(211, 47, 47, 0.3);
  display: block;
}

.message.loading {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.3);
  display: block;
}

/* ファイル添付 */
input[type="file"] {
  width: 100%;
  padding: 0.7rem;
  border: 1px dashed #444;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #16213e;
  color: #e0e0e0;
  cursor: pointer;
  transition: border-color 0.2s;
}

input[type="file"]:hover {
  border-color: #667eea;
}

input[type="file"]::file-selector-button {
  padding: 0.4rem 0.8rem;
  border: 1px solid #555;
  border-radius: 4px;
  background: #2a2a4a;
  color: #e0e0e0;
  font-size: 0.85rem;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background 0.15s;
}

input[type="file"]::file-selector-button:hover {
  background: #3a3a5a;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: #16213e;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 0.85rem;
}

.file-list-item .file-name {
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 0.5rem;
}

.file-list-item .file-size {
  color: #666;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.file-list-item .file-remove {
  background: none;
  border: none;
  color: #ef5350;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}

.file-list-item .file-remove:hover {
  color: #ff7043;
}

