@import '../../button-template.css'; .challenge-create-dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(3px); &.loading { pointer-events: none; opacity: 0.7; } } .challenge-create-dialog { background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 100%); border: 2px solid #00d5ff; border-radius: 8px; box-shadow: 0 0 20px rgba(0, 213, 255, 0.3), inset 0 0 10px rgba(0, 213, 255, 0.05); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; padding: 24px; color: #e0e0e0; } .dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(0, 213, 255, 0.2); h2 { margin: 0; color: #00d5ff; font-size: 24px; font-weight: 600; letter-spacing: 1px; } } .close-btn { background: none; border: none; font-size: 28px; color: #00d5ff; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; &:hover:not(:disabled) { color: #ffffff; transform: scale(1.1); } &:disabled { opacity: 0.5; cursor: not-allowed; } } .dialog-form { display: flex; flex-direction: column; gap: 16px; } .form-group { display: flex; flex-direction: column; gap: 8px; label { color: #b0b0d0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } input, select { background-color: rgba(15, 20, 50, 0.8); border: 1px solid rgba(0, 213, 255, 0.3); border-radius: 4px; color: #e0e0e0; padding: 10px 12px; font-size: 14px; font-family: 'Space Mono', monospace; transition: all 0.2s ease; &:focus { outline: none; border-color: #00d5ff; box-shadow: 0 0 10px rgba(0, 213, 255, 0.3); } &:disabled { opacity: 0.5; cursor: not-allowed; } option { background-color: #0a0e27; color: #e0e0e0; } } small { color: #ff6b6b; font-size: 12px; margin-top: 4px; } } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .form-col { display: flex; flex-direction: column; gap: 8px; label { color: #b0b0d0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } input { background-color: rgba(15, 20, 50, 0.8); border: 1px solid rgba(0, 213, 255, 0.3); border-radius: 4px; color: #e0e0e0; padding: 10px 12px; font-size: 14px; font-family: 'Space Mono', monospace; transition: all 0.2s ease; &:focus { outline: none; border-color: #00d5ff; box-shadow: 0 0 10px rgba(0, 213, 255, 0.3); } &:disabled { opacity: 0.5; cursor: not-allowed; } } } .preset-buttons { display: flex; flex-wrap: wrap; gap: 8px; } .preset-btn { padding: 8px 16px; background-color: rgba(0, 213, 255, 0.1); border: 1px solid #00d5ff; border-radius: 4px; color: #00d5ff; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; &:hover:not(:disabled) { background-color: rgba(0, 213, 255, 0.2); box-shadow: 0 0 10px rgba(0, 213, 255, 0.3); } &:disabled { opacity: 0.5; cursor: not-allowed; } } .error-message { background-color: rgba(255, 107, 107, 0.1); border: 1px solid #ff6b6b; border-radius: 4px; padding: 12px; color: #ff9999; font-size: 13px; margin-bottom: 8px; } .dialog-buttons { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(0, 213, 255, 0.2); button { padding: 10px 24px; font-size: 13px; font-weight: 600; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 0.5px; &.btn-secondary { background-color: transparent; border: 1px solid rgba(0, 213, 255, 0.3); color: #00d5ff; &:hover:not(:disabled) { background-color: rgba(0, 213, 255, 0.1); border-color: #00d5ff; } &:disabled { opacity: 0.5; cursor: not-allowed; } } &.btn-primary { background-color: #00d5ff; border: none; color: #0a0e27; &:hover:not(:disabled) { box-shadow: 0 0 20px rgba(0, 213, 255, 0.6); transform: translateY(-2px); } &:disabled { opacity: 0.5; cursor: not-allowed; } } } }